Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
ci: Do not include gson in MPP output
This commit is contained in:
1 parent
5617e22f05
commit
f5625e3549
4 files changed
+13
-15
No files matched your search
+10
-11
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user