patches/build.gradle.kts
Rama main · réplica de lectura del repositorio original.
group = "app.anondev.patches.zotero"
patches {
about {
name = "Anondev Zotero Patches"
description = "Self-hosted sync for the Zotero Android app — choose your server domain when patching."
source = "https://github.com/raphaelbahat/zotero-self-hosted-sync"
author = "anondev"
contact = "na"
website = "na"
license = "GPLv3"
}
}
// Separate configuration so gson is available at runtime for the
// generatePatchesList task but never bundled into the APK.
val patchListGeneratorClasspath = configurations.create("patchListGeneratorClasspath")
dependencies {
compileOnly(libs.gson)
patchListGeneratorClasspath(libs.gson)
}
tasks {
register<JavaExec>("generatePatchesList") {
description = "Build patch with patch list"
dependsOn(build)
classpath = sourceSets["main"].runtimeClasspath + patchListGeneratorClasspath
mainClass.set("util.PatchListGeneratorKt")
}
// Used by gradle-semantic-release-plugin.
publish {
dependsOn("generatePatchesList")
}
}