mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
5a96f2d99f
also fixed some compilation issues
74 lines
No EOL
1.9 KiB
Text
74 lines
No EOL
1.9 KiB
Text
plugins {
|
|
kotlin("jvm") version "1.6.21"
|
|
java
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "app.revanced"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
listOf("multidexlib2", "Apktool").forEach { repo ->
|
|
maven {
|
|
url = uri("https://maven.pkg.github.com/revanced/$repo")
|
|
credentials {
|
|
// DO NOT set these variables in the project's gradle.properties.
|
|
// Instead, you should set them in:
|
|
// Windows: %homepath%\.gradle\gradle.properties
|
|
// Linux: ~/.gradle/gradle.properties
|
|
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
|
|
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
|
|
api("xpp3:xpp3:1.1.4c")
|
|
api("org.apktool:apktool-lib:2.6.2-SNAPSHOT")
|
|
api("app.revanced:multidexlib2:2.5.2.r2")
|
|
api("org.smali:smali:2.5.2")
|
|
|
|
testImplementation(kotlin("test"))
|
|
implementation(kotlin("reflect"))
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
val isGitHubCI = System.getenv("GITHUB_ACTOR") != null
|
|
|
|
publishing {
|
|
repositories {
|
|
if (isGitHubCI) {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
credentials {
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
} else {
|
|
mavenLocal()
|
|
}
|
|
}
|
|
publications {
|
|
register<MavenPublication>("gpr") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
} |