revanced-patches/build.gradle.kts

52 lines
1.5 KiB
Text
Raw Normal View History

2022-03-21 16:19:51 +01:00
plugins {
kotlin("jvm") version "1.6.10"
java
2022-03-21 16:19:51 +01:00
`maven-publish`
}
group = "app.revanced"
2022-03-21 16:19:51 +01:00
repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher") // note the "r"!
2022-03-21 16:19:51 +01:00
credentials {
// DO NOT set these variables in the project's gradle.properties.
// Instead, you should set them in:
// Windows: %homepath%\.gradle\gradle.properties
// Linux: ~/.gradle/gradle.properties
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") // DO NOT CHANGE!
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
2022-03-21 16:19:51 +01:00
}
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
2022-04-09 22:59:51 +02:00
implementation(files("P:\\Andere Dateien\\STUFF\\Coding\\Java\\revanced\\revanced-patcher\\build\\libs\\revanced-patcher-1.0.0-dev.8.jar")) // use latest version.
2022-04-07 22:41:55 +02:00
implementation("org.smali:dexlib2:2.5.2")
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patches") // note the "s"!
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
2022-03-21 16:19:51 +01:00
}