mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2024-11-10 01:01:56 +01:00
68ea89f15e
BREAKING CHANGE: Package name was changed from "net.revanced" to "app.revanced"
56 lines
No EOL
1.6 KiB
Text
56 lines
No EOL
1.6 KiB
Text
plugins {
|
|
kotlin("jvm") version "1.6.10"
|
|
java
|
|
`maven-publish`
|
|
}
|
|
|
|
group = "app.revanced"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url = uri("https://maven.pkg.github.com/ReVancedTeam/revanced-patcher") // note the "r"!
|
|
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!
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
|
|
|
|
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("app.revanced:revanced-patcher:1.+") // use latest version.
|
|
}
|
|
|
|
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"])
|
|
}
|
|
}
|
|
} |