2022-04-10 19:36:51 +02:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.6.20"
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "app.revanced"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.pkg.github.com/ReVancedTeam/multidexlib2")
|
|
|
|
credentials {
|
|
|
|
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!
|
|
|
|
}
|
|
|
|
}
|
2022-04-15 23:40:09 +02:00
|
|
|
maven {
|
|
|
|
url = uri("https://jitpack.io")
|
|
|
|
}
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
2022-05-01 02:07:25 +02:00
|
|
|
val patchesDependency = "app.revanced:revanced-patches:+"
|
2022-04-10 22:21:57 +02:00
|
|
|
|
2022-04-10 19:36:51 +02:00
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib"))
|
2022-05-01 02:07:25 +02:00
|
|
|
implementation("app.revanced:revanced-patcher:+")
|
2022-04-10 22:21:57 +02:00
|
|
|
implementation(patchesDependency)
|
2022-05-01 02:07:25 +02:00
|
|
|
implementation("info.picocli:picocli:+")
|
|
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:+")
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
shadowJar {
|
2022-04-10 22:21:57 +02:00
|
|
|
dependencies {
|
|
|
|
exclude(dependency(patchesDependency))
|
|
|
|
}
|
2022-04-10 19:36:51 +02:00
|
|
|
manifest {
|
2022-05-01 02:07:25 +02:00
|
|
|
attributes("Main-Class" to "app.revanced.cli.Main")
|
2022-04-10 22:21:57 +02:00
|
|
|
attributes("Implementation-Title" to project.name)
|
|
|
|
attributes("Implementation-Version" to project.version)
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|