revanced-patcher/build.gradle.kts

53 lines
1.2 KiB
Text
Raw Normal View History

2022-03-16 22:00:41 +01:00
plugins {
kotlin("jvm") version "1.6.10"
java
`maven-publish`
2022-03-16 22:00:41 +01:00
}
group = "net.revanced"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
2022-03-18 20:46:24 +01:00
implementation("org.ow2.asm:asm:9.2")
2022-03-18 21:52:00 +01:00
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"))
2022-03-18 20:46:24 +01:00
}
tasks.test {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED")
}
2022-03-18 20:46:24 +01:00
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher")
credentials {
2022-03-20 20:32:17 +01:00
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}