Files
twitter-patch/patches/build.gradle.kts
T
2026-08-21 14:30:50 +02:00

45 lines
1.0 KiB
Kotlin

group = "app.twitter"
patches {
about {
name = "X Patches"
description = "Local patches for X (Twitter)"
source = "local"
author = "local"
contact = "N/A"
website = "N/A"
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 = 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")
}
}