Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 04:59:34 +00:00
45 lines
1.1 KiB
Kotlin
45 lines
1.1 KiB
Kotlin
group = "app.template"
|
|
|
|
patches {
|
|
// TODO: Update this section with your project details.
|
|
about {
|
|
name = "UserXYZ Patches"
|
|
description = "Patches for apps I like"
|
|
source = "[email protected]:UserXYZ/morphe-patches.git"
|
|
author = "Awesome dev"
|
|
contact = "na"
|
|
website = "na"
|
|
license = "GPLv3"
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.add("-Xcontext-parameters")
|
|
}
|
|
}
|
|
|
|
// Separate configuration so gson is available at runtime for the
|
|
// generatePatchesList task but never bundled into the APK.
|
|
val patchListGeneratorClasspath: Configuration by configurations.creating
|
|
|
|
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")
|
|
}
|
|
} |