refactor: migration to picocli

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX
2022-05-01 02:07:25 +02:00
parent 58213781e1
commit f6d60a3460
11 changed files with 123 additions and 384 deletions

View File

@@ -20,35 +20,26 @@ repositories {
}
}
val patchesDependency = "app.revanced:revanced-patches:1.0.0-dev.4"
val patchesDependency = "app.revanced:revanced-patches:+"
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.4")
implementation("app.revanced:revanced-patcher:1.0.0-dev.8")
implementation("app.revanced:revanced-patcher:+")
implementation(patchesDependency)
implementation("com.google.code.gson:gson:2.9.0")
implementation("me.tongfei:progressbar:0.9.3")
implementation("com.github.li-wjohnson:jadb:master-SNAPSHOT") // using a fork instead.
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
implementation("info.picocli:picocli:+")
implementation("org.bouncycastle:bcpkix-jdk15on:+")
}
val cliMainClass = "app.revanced.cli.Main"
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
dependencies {
// This makes sure we link to the library, but don't include it.
// So, a "runtime only" dependency.
exclude(dependency(patchesDependency))
}
manifest {
attributes("Main-Class" to cliMainClass)
attributes("Main-Class" to "app.revanced.cli.Main")
attributes("Implementation-Title" to project.name)
attributes("Implementation-Version" to project.version)
}