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
|
|
|
}
|
|
|
|
|
2022-03-21 21:54:16 +01:00
|
|
|
group = "app.revanced"
|
2022-03-16 22:00:41 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib"))
|
2022-04-03 23:51:01 +02:00
|
|
|
|
|
|
|
implementation("com.github.lanchon.dexpatcher:multidexlib2:2.3.4.r2")
|
|
|
|
implementation("org.smali:smali:2.3.4")
|
|
|
|
|
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"])
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|