2022-04-10 19:36:51 +02:00
|
|
|
plugins {
|
2023-07-05 22:35:13 +02:00
|
|
|
kotlin("jvm") version "1.8.20"
|
2023-08-23 04:28:12 +02:00
|
|
|
alias(libs.plugins.shadow)
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "app.revanced"
|
|
|
|
|
|
|
|
dependencies {
|
2023-08-23 04:28:12 +02:00
|
|
|
implementation(libs.revanced.patcher)
|
|
|
|
implementation(libs.kotlin.reflect)
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
implementation(libs.picocli)
|
|
|
|
implementation(libs.jadb) // Updated fork
|
|
|
|
implementation(libs.apksig)
|
|
|
|
implementation(libs.bcpkix.jdk15on)
|
|
|
|
implementation(libs.jackson.module.kotlin)
|
|
|
|
testImplementation(libs.kotlin.test)
|
2022-05-07 05:43:56 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 03:06: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")
|
|
|
|
}
|
|
|
|
}
|
2023-08-23 03:06:27 +02:00
|
|
|
|
|
|
|
processResources {
|
|
|
|
expand("projectVersion" to project.version)
|
|
|
|
}
|
|
|
|
|
2022-04-10 19:36:51 +02:00
|
|
|
shadowJar {
|
|
|
|
manifest {
|
2023-08-23 14:50:32 +02:00
|
|
|
attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt")
|
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
|
|
|
}
|
2023-08-23 04:28:12 +02:00
|
|
|
|
2023-08-23 16:28:38 +02:00
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
|
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
|
2023-08-23 05:16:17 +02:00
|
|
|
register<DefaultTask>("publish") {
|
|
|
|
group = "publish"
|
|
|
|
description = "Dummy task"
|
2023-08-24 18:09:25 +02:00
|
|
|
dependsOn(build)
|
2023-08-23 05:16:17 +02:00
|
|
|
}
|
2022-06-14 01:21:29 +02:00
|
|
|
}
|