revanced-cli/build.gradle.kts

71 lines
2.1 KiB
Plaintext
Raw Normal View History

plugins {
2023-07-05 22:35:13 +02:00
kotlin("jvm") version "1.8.20"
id("com.github.johnrengelman.shadow") version "7.1.2"
}
group = "app.revanced"
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")
repositories {
mavenCentral()
mavenLocal()
2023-08-14 04:12:10 +02:00
google()
maven {
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
credentials {
username = githubUsername
password = githubPassword
}
}
maven { url = uri("https://jitpack.io") }
}
dependencies {
implementation("app.revanced:revanced-patcher:14.0.0")
2023-08-23 03:06:27 +02:00
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1")
2023-07-30 02:14:10 +02:00
implementation("info.picocli:picocli:4.7.3")
2023-08-14 04:12:10 +02:00
implementation("com.github.revanced:jadb:2531a28109") // Updated fork
2023-07-30 02:14:10 +02:00
implementation("com.android.tools.build:apksig:8.1.0")
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
2023-07-30 02:14:10 +02:00
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.3")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.8.20-RC")
2022-05-07 05:43:56 +02:00
}
2023-08-23 03:06:27 +02:00
kotlin { jvmToolchain(11) }
2023-05-08 01:15:27 +02:00
tasks {
test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
}
2023-08-23 03:06:27 +02:00
processResources {
expand("projectVersion" to project.version)
}
build {
dependsOn(shadowJar)
}
2023-08-23 03:06:27 +02:00
shadowJar {
manifest {
attributes("Main-Class" to "app.revanced.cli.main.MainKt")
}
minimize {
exclude(dependency("org.jetbrains.kotlin:.*"))
exclude(dependency("org.bouncycastle:.*"))
exclude(dependency("app.revanced:.*"))
}
}
// 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 03:06:27 +02:00
register<DefaultTask>("publish") { }
}