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
+12 -14

No files matched your search

+1 -2
View File
@@ -28,8 +28,7 @@
[
"@semantic-release/exec",
{
"prepareCmd": "./gradlew generatePatchesList \
&& jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json \
"prepareCmd": "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"
}
],
+1 -1
View File
@@ -1,7 +1,7 @@
[versions]
morphe-patcher = "1.5.1"
#noinspection GradleDependency
smali = "b6365a84f4"
smali = "d92701d947"
gson = "2.14.0"
[libraries]
+9 -10
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")
}
}
@@ -31,7 +31,7 @@
* applicable to this file.
*/
package app.morphe.util
package util
import app.morphe.patcher.patch.Patch
import app.morphe.patcher.patch.loadPatchesFromJar