mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
plugins {
|
|
kotlin("jvm") version "1.6.10"
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "net.revanced"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation(kotlin("stdlib"))
|
|
implementation("org.ow2.asm:asm:9.2")
|
|
implementation("org.ow2.asm:asm-util:9.2")
|
|
implementation("org.ow2.asm:asm-tree:9.2")
|
|
implementation("org.ow2.asm:asm-commons:9.2")
|
|
implementation("io.github.microutils:kotlin-logging:2.1.21")
|
|
testImplementation("ch.qos.logback:logback-classic:1.2.11") // use your own logger!
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
testLogging {
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher")
|
|
credentials {
|
|
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
|
|
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
register<MavenPublication>("gpr") {
|
|
from(components["java"])
|
|
}
|
|
}
|
|
}
|