2022-03-16 22:00:41 +01:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.6.10"
|
2022-03-21 16:22:15 +01:00
|
|
|
java
|
2022-03-20 20:30:51 +01:00
|
|
|
`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")
|
2022-03-19 19:47:12 +01:00
|
|
|
implementation("io.github.microutils:kotlin-logging:2.1.21")
|
2022-03-19 21:58:31 +01:00
|
|
|
testImplementation("ch.qos.logback:logback-classic:1.2.11") // use your own logger!
|
2022-03-19 01:37:02 +01:00
|
|
|
testImplementation(kotlin("test"))
|
2022-03-18 20:46:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
2022-03-20 19:05:24 +01:00
|
|
|
testLogging {
|
|
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
|
|
}
|
2022-03-18 20:46:24 +01:00
|
|
|
}
|
2022-03-20 20:30:51 +01:00
|
|
|
|
2022-03-21 16:22:15 +01:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
2022-03-20 20:30:51 +01:00
|
|
|
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")
|
2022-03-20 20:30:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publications {
|
|
|
|
register<MavenPublication>("gpr") {
|
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|