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

+1 -2
View File
@@ -28,8 +28,7 @@
[ [
"@semantic-release/exec", "@semantic-release/exec",
{ {
"prepareCmd": "./gradlew generatePatchesList \ "prepareCmd": "jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json \
&& jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json \
&& python3 .github/scripts/generate_patches_readme.py $GITHUB_REPOSITORY $GITHUB_REF_NAME patches-list.json README.md" && python3 .github/scripts/generate_patches_readme.py $GITHUB_REPOSITORY $GITHUB_REF_NAME patches-list.json README.md"
} }
], ],
+1 -1
View File
@@ -1,7 +1,7 @@
[versions] [versions]
morphe-patcher = "1.5.1" morphe-patcher = "1.5.1"
#noinspection GradleDependency #noinspection GradleDependency
smali = "b6365a84f4" smali = "d92701d947"
gson = "2.14.0" gson = "2.14.0"
[libraries] [libraries]
+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 { dependencies {
// Used by JsonGenerator. compileOnly(libs.gson)
implementation(libs.gson) patchListGeneratorClasspath(libs.gson)
} }
tasks { tasks {
@@ -29,17 +33,12 @@ tasks {
dependsOn(build) dependsOn(build)
classpath = sourceSets["main"].runtimeClasspath classpath = sourceSets["main"].runtimeClasspath + patchListGeneratorClasspath
mainClass.set("app.morphe.util.PatchListGeneratorKt") mainClass.set("util.PatchListGeneratorKt")
} }
// Used by gradle-semantic-release-plugin. // Used by gradle-semantic-release-plugin.
publish { publish {
dependsOn("generatePatchesList") dependsOn("generatePatchesList")
} }
} }
kotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
}
}
@@ -31,7 +31,7 @@
* applicable to this file. * applicable to this file.
*/ */
package app.morphe.util package util
import app.morphe.patcher.patch.Patch import app.morphe.patcher.patch.Patch
import app.morphe.patcher.patch.loadPatchesFromJar import app.morphe.patcher.patch.loadPatchesFromJar