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()
|
|
|
|
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-05-01 02:07:25 +02:00
|
|
|
implementation("app.revanced:revanced-patcher:+")
|
2022-05-19 00:00:45 +02:00
|
|
|
implementation("app.revanced:revanced-patches:+")
|
|
|
|
|
2022-05-22 17:10:43 +02:00
|
|
|
implementation("info.picocli:picocli:4.6.3")
|
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"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|