Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
46 lines
975 B
Kotlin
46 lines
975 B
Kotlin
group = "app.morphe"
|
|
|
|
patches {
|
|
about {
|
|
name = "XYZ Patches for use with Morphe"
|
|
description = "Example patches"
|
|
source = "[email protected]:MorpheApp/morphe-patches-template.git"
|
|
author = "Awesome dev"
|
|
contact = "na"
|
|
website = "https://morphe.software"
|
|
license = "GPLv3"
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs.add("-Xcontext-parameters")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Used by JsonGenerator.
|
|
implementation(libs.gson)
|
|
}
|
|
|
|
tasks {
|
|
register<JavaExec>("generatePatchesList") {
|
|
description = "Build patch with patch list"
|
|
|
|
dependsOn(build)
|
|
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
mainClass.set("app.morphe.util.PatchListGeneratorKt")
|
|
}
|
|
// Used by gradle-semantic-release-plugin.
|
|
publish {
|
|
dependsOn("generatePatchesList")
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs = listOf("-Xcontext-receivers")
|
|
}
|
|
}
|