revanced-patcher/build.gradle.kts

65 lines
1.5 KiB
Text
Raw Normal View History

2022-03-16 22:00:41 +01:00
plugins {
2022-06-14 00:54:22 +02:00
kotlin("jvm") version "1.7.0"
java
`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("org.smali:smali:2.5.2")
implementation("app.revanced:multidexlib2:2.5.2.r2")
implementation("org.apktool:apktool-lib:2.6.9-SNAPSHOT")
2022-04-03 23:51:01 +02:00
testImplementation(kotlin("test"))
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
}
}
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"])
}
}
}