mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
57 lines
1.1 KiB
Text
57 lines
1.1 KiB
Text
plugins {
|
|
kotlin("jvm") version "1.8.20"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "app.revanced"
|
|
|
|
dependencies {
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
implementation(libs.xpp3)
|
|
implementation(libs.smali)
|
|
implementation(libs.multidexlib2)
|
|
implementation(libs.apktool.lib)
|
|
implementation(libs.kotlin.reflect)
|
|
|
|
compileOnly(libs.android)
|
|
|
|
testImplementation(libs.kotlin.test)
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
}
|
|
}
|
|
|
|
processResources {
|
|
expand("projectVersion" to project.version)
|
|
}
|
|
}
|
|
|
|
kotlin { jvmToolchain(11) }
|
|
|
|
java {
|
|
withSourcesJar()
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
credentials {
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("gpr") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|