mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-11-19 01:59:25 +01:00
3776ab9a0b
# Conflicts: # src/main/kotlin/app/revanced/cli/MainCommand.kt
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
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!
|
|
}
|
|
}
|
|
maven {
|
|
url = uri("https://jitpack.io")
|
|
}
|
|
}
|
|
|
|
val patchesDependency = "app.revanced:revanced-patches:1.0.0-dev.4"
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
implementation("app.revanced:revanced-patcher:+")
|
|
implementation(patchesDependency)
|
|
implementation("info.picocli:picocli:+")
|
|
|
|
implementation("me.tongfei:progressbar:+")
|
|
implementation("com.github.li-wjohnson:jadb:master-SNAPSHOT") // using a fork instead.
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:+")
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
shadowJar {
|
|
dependencies {
|
|
exclude(dependency(patchesDependency))
|
|
}
|
|
manifest {
|
|
attributes("Main-Class" to "app.revanced.cli.MainKt")
|
|
attributes("Implementation-Title" to project.name)
|
|
attributes("Implementation-Version" to project.version)
|
|
}
|
|
}
|
|
} |