ci: Do not include gson in MPP output

This commit is contained in:
LisoUseInAIKyrios committed 2026-05-12 12:37:29 +02:00
1 parent 5617e22f05
commit f5625e3549
4 files changed
+13 -15

No files matched your search

+10 -11
View File
@@ -18,9 +18,13 @@ kotlin {
}
}
// 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 {
// Used by JsonGenerator.
implementation(libs.gson)
compileOnly(libs.gson)
patchListGeneratorClasspath(libs.gson)
}
tasks {
@@ -29,17 +33,12 @@ tasks {
dependsOn(build)
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("app.morphe.util.PatchListGeneratorKt")
classpath = sourceSets["main"].runtimeClasspath + patchListGeneratorClasspath
mainClass.set("util.PatchListGeneratorKt")
}
// Used by gradle-semantic-release-plugin.
publish {
dependsOn("generatePatchesList")
}
}
kotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
}