mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-29 14:14:36 +02:00
55 lines
1.3 KiB
Plaintext
55 lines
1.3 KiB
Plaintext
group = "app.revanced"
|
|
|
|
patches {
|
|
about {
|
|
name = "ReVanced Patches"
|
|
description = "Patches for ReVanced"
|
|
source = "git@github.com:revanced/revanced-patches.git"
|
|
author = "ReVanced"
|
|
contact = "contact@revanced.app"
|
|
website = "https://revanced.app"
|
|
license = "GNU General Public License v3.0"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Used by JsonGenerator.
|
|
implementation(libs.gson)
|
|
}
|
|
|
|
tasks {
|
|
jar {
|
|
exclude("app/revanced/generator")
|
|
}
|
|
register<JavaExec>("generatePatchesFiles") {
|
|
description = "Generate patches files"
|
|
|
|
dependsOn(build)
|
|
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
mainClass.set("app.revanced.generator.MainKt")
|
|
}
|
|
// Used by gradle-semantic-release-plugin.
|
|
publish {
|
|
dependsOn("generatePatchesFiles")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs = listOf("-Xcontext-receivers")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "GitHubPackages"
|
|
url = uri("https://maven.pkg.github.com/inotia00/revanced-patches")
|
|
credentials {
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
password = System.getenv("GITHUB_TOKEN")
|
|
}
|
|
}
|
|
}
|
|
} |