2022-04-10 19:36:51 +02:00
|
|
|
plugins {
|
2023-03-31 17:19:41 +02:00
|
|
|
kotlin("jvm") version "1.8.10"
|
2022-04-10 19:36:51 +02:00
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "app.revanced"
|
|
|
|
|
2022-06-14 01:11:54 +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-04-10 19:36:51 +02:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-06-26 15:16:06 +02:00
|
|
|
mavenLocal()
|
2022-04-15 23:40:09 +02:00
|
|
|
maven {
|
2022-06-14 01:11:54 +02:00
|
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
|
|
credentials {
|
|
|
|
username = githubUsername
|
|
|
|
password = githubPassword
|
|
|
|
}
|
2022-04-15 23:40:09 +02:00
|
|
|
}
|
2022-06-14 01:11:54 +02:00
|
|
|
maven { url = uri("https://jitpack.io") }
|
|
|
|
google()
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-04-30 05:27:23 +02:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.20-RC")
|
2022-06-21 22:18:35 +02:00
|
|
|
|
2023-05-15 12:23:28 +02:00
|
|
|
implementation("app.revanced:revanced-patcher:9.0.0")
|
2023-04-03 03:04:07 +02:00
|
|
|
implementation("info.picocli:picocli:4.7.1")
|
2023-05-03 08:29:28 +02:00
|
|
|
implementation("com.github.revanced:jadb:2531a28109") // updated fork
|
2023-04-30 05:27:23 +02:00
|
|
|
implementation("com.android.tools.build:apksig:8.1.0-alpha09")
|
2022-05-22 17:10:43 +02:00
|
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
2023-05-01 05:23:17 +02:00
|
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.+")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test:1.8.20-RC")
|
2022-05-07 05:43:56 +02:00
|
|
|
}
|
|
|
|
|
2023-05-08 01:15:27 +02:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain(11)
|
|
|
|
}
|
|
|
|
|
2022-04-10 19:36:51 +02:00
|
|
|
tasks {
|
2023-05-01 05:23:17 +02:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
|
|
}
|
|
|
|
}
|
2022-04-10 19:36:51 +02:00
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
shadowJar {
|
|
|
|
manifest {
|
2022-06-11 07:45:58 +02:00
|
|
|
attributes("Main-Class" to "app.revanced.cli.main.MainKt")
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
2022-12-15 12:44:05 +01:00
|
|
|
minimize {
|
|
|
|
exclude(dependency("org.jetbrains.kotlin:.*"))
|
2022-12-15 23:24:44 +01:00
|
|
|
exclude(dependency("org.bouncycastle:.*"))
|
2022-12-16 01:23:37 +01:00
|
|
|
exclude(dependency("app.revanced:.*"))
|
2022-12-15 12:44:05 +01:00
|
|
|
}
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
2022-06-16 12:09:12 +02:00
|
|
|
// Dummy task to fix the Gradle semantic-release plugin.
|
|
|
|
// Remove this if you forked it to support building only.
|
|
|
|
// Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435
|
|
|
|
register<DefaultTask>("publish") {
|
|
|
|
group = "publish"
|
|
|
|
description = "Dummy task"
|
|
|
|
dependsOn(build)
|
|
|
|
}
|
2022-06-14 01:21:29 +02:00
|
|
|
}
|