mirror of
https://github.com/revanced/revanced-cli.git
synced 2024-12-04 09:22:54 +01:00
3f5345af6e
* feat: Patch Options CLI implementation * fix: remove leftover log message
56 lines
1.7 KiB
Plaintext
56 lines
1.7 KiB
Plaintext
plugins {
|
|
kotlin("jvm") version "1.7.0"
|
|
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()
|
|
maven {
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
credentials {
|
|
username = githubUsername
|
|
password = githubPassword
|
|
}
|
|
}
|
|
maven { url = uri("https://jitpack.io") }
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("reflect"))
|
|
|
|
implementation("app.revanced:revanced-patcher:4.2.3")
|
|
implementation("info.picocli:picocli:4.6.3")
|
|
implementation("com.android.tools.build:apksig:7.2.1")
|
|
implementation("com.github.revanced:jadb:master-SNAPSHOT") // updated fork
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
|
implementation("cc.ekblad:4koma:1.1.0")
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
shadowJar {
|
|
manifest {
|
|
attributes("Main-Class" to "app.revanced.cli.main.MainKt")
|
|
attributes("Implementation-Title" to project.name)
|
|
attributes("Implementation-Version" to project.version)
|
|
}
|
|
}
|
|
// 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)
|
|
}
|
|
}
|