2022-04-10 19:36:51 +02:00
|
|
|
plugins {
|
2022-05-24 00:17:02 +02:00
|
|
|
kotlin("jvm") version "1.6.21"
|
2022-04-10 19:36:51 +02:00
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
2022-05-07 05:43:56 +02:00
|
|
|
java
|
|
|
|
`maven-publish`
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "app.revanced"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-06-11 06:40:59 +02:00
|
|
|
google()
|
2022-04-10 19:36:51 +02:00
|
|
|
mavenLocal()
|
|
|
|
maven {
|
2022-05-07 01:23:20 +02:00
|
|
|
url = uri("https://maven.pkg.github.com/revanced/multidexlib2")
|
2022-04-10 19:36:51 +02:00
|
|
|
credentials {
|
|
|
|
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
|
2022-05-07 05:43:56 +02:00
|
|
|
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
}
|
2022-04-15 23:40:09 +02:00
|
|
|
maven {
|
|
|
|
url = uri("https://jitpack.io")
|
|
|
|
}
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-05-22 17:10:43 +02:00
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.21")
|
2022-06-05 08:14:59 +02:00
|
|
|
implementation("app.revanced:revanced-patcher:1.0.0")
|
2022-05-19 00:00:45 +02:00
|
|
|
|
2022-05-22 17:10:43 +02:00
|
|
|
implementation("info.picocli:picocli:4.6.3")
|
2022-06-11 06:40:59 +02:00
|
|
|
implementation("com.android.tools.build:apksig:7.2.1")
|
2022-05-05 01:43:35 +02:00
|
|
|
implementation("com.github.li-wjohnson:jadb:master-SNAPSHOT") // using a fork instead.
|
2022-05-22 17:10:43 +02:00
|
|
|
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
|
2022-05-07 05:43:56 +02:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
2022-04-10 19:36:51 +02:00
|
|
|
tasks {
|
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
shadowJar {
|
|
|
|
manifest {
|
2022-05-05 19:19:59 +02:00
|
|
|
attributes("Main-Class" to "app.revanced.cli.MainKt")
|
2022-04-10 22:21:57 +02:00
|
|
|
attributes("Implementation-Title" to project.name)
|
|
|
|
attributes("Implementation-Version" to project.version)
|
2022-04-10 19:36:51 +02:00
|
|
|
}
|
|
|
|
}
|
2022-05-07 01:23:20 +02:00
|
|
|
}
|
2022-05-07 05:43:56 +02:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "GitHubPackages"
|
|
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-cli")
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publications {
|
|
|
|
register<MavenPublication>("gpr") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
2022-05-27 12:25:44 +02:00
|
|
|
}
|