revanced-patcher/build.gradle.kts

68 lines
1.7 KiB
Text
Raw Normal View History

2022-03-16 22:00:41 +01:00
plugins {
2023-03-31 17:19:40 +02:00
kotlin("jvm") version "1.8.10"
`maven-publish`
2022-03-16 22:00:41 +01:00
}
group = "app.revanced"
2022-03-16 22:00:41 +01:00
2022-06-14 00:54:22 +02:00
val githubUsername: String = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
val githubPassword: String = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
2022-03-16 22:00:41 +01:00
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/revanced/multidexlib2")
credentials {
2022-06-14 00:54:22 +02:00
username = githubUsername
password = githubPassword
}
}
2022-03-16 22:00:41 +01:00
}
dependencies {
implementation("xpp3:xpp3:1.1.4c")
implementation("app.revanced:smali:2.5.3-a3836654")
implementation("app.revanced:multidexlib2:2.5.3-a3836654")
2023-01-17 23:57:19 +01:00
implementation("app.revanced:apktool-lib:2.7.0")
2022-04-03 23:51:01 +02:00
2023-04-30 05:27:22 +02:00
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.20-RC")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.8.20-RC")
2022-06-20 17:07:04 +02:00
}
2022-03-18 20:46:24 +01:00
2022-04-08 22:49:37 +02:00
tasks {
test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
2022-04-08 22:49:37 +02:00
}
2022-09-08 14:41:42 +02:00
processResources {
expand("projectVersion" to project.version)
}
2022-04-08 22:49:37 +02:00
}
java {
withSourcesJar()
}
publishing {
repositories {
if (System.getenv("GITHUB_ACTOR") != null)
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"])
}
}
}