mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-10-26 14:34:00 +00:00
Use unimixins ext for setting the core plugin
This commit is contained in:
1 parent
1f15b3ed3c
commit
439defbca4
21 files changed
+77
-16
No files matched your search
@@ -2,4 +2,5 @@ import org.gradle.api.provider.Property
|
||||
|
||||
interface UniMixinsExtension {
|
||||
val uniMixVersion: Property<String>
|
||||
val fmlCorePlugin: Property<String?>
|
||||
}
|
||||
@@ -65,13 +65,13 @@ class UniMixinsPlugin : Plugin<Project> {
|
||||
|
||||
val generateEmbeddedCorePluginFile = tasks.register("generateEmbeddedCorePluginFile") {
|
||||
it.doLast {
|
||||
if (project.hasProperty("FMLCorePlugin")) {
|
||||
val corePlugin = project.property("FMLCorePlugin") as String
|
||||
val fmlCorePlugin = unimixins.fmlCorePlugin.orNull
|
||||
if (fmlCorePlugin != null) {
|
||||
val dir = File(genDir.get().asFile, "META-INF")
|
||||
dir.mkdirs()
|
||||
|
||||
val embeddedFile = File(dir, "EmbeddedFMLCorePlugins.txt")
|
||||
embeddedFile.writeText(corePlugin)
|
||||
embeddedFile.writeText(fmlCorePlugin)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -106,7 +106,7 @@ class UniMixinsPlugin : Plugin<Project> {
|
||||
sJar.manifest { manifest ->
|
||||
manifest.attributes(mapOf(
|
||||
"Commit-ID" to versionDetails.gitHash,
|
||||
"FMLCorePlugin" to project.findProperty("FMLCorePlugin")
|
||||
"FMLCorePlugin" to unimixins.uniMixVersion.orNull
|
||||
).filterValues { it != null })
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":mixin", "shadowArtifact"))
|
||||
implementation(project(":compat", "shadowArtifact"))
|
||||
|
||||
@@ -11,6 +11,4 @@ subprojects {
|
||||
configure<UniMixinsExtension> {
|
||||
uniMixVersion = "0.15.3+mixin.0.8.7"
|
||||
}
|
||||
|
||||
apply(plugin = "unimixins")
|
||||
}
|
||||
@@ -1,3 +1,7 @@
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val shadowArtifact: Configuration by configurations.creating
|
||||
shadowArtifact.isCanBeConsumed = true
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
unimixins {
|
||||
fmlCorePlugin = "io.github.legacymoddingmc.unimixins.compat.CompatCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("org.spongepowered:mixin:0.8.5")
|
||||
shadow(project(":common", "shadowArtifact")) {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=io.github.legacymoddingmc.unimixins.compat.CompatCore
|
||||
@@ -1,3 +1,11 @@
|
||||
unimixins {
|
||||
fmlCorePlugin = "io.github.legacymoddingmc.unimixins.compatfuture.CompatFutureCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
configurations = listOf()
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=io.github.legacymoddingmc.unimixins.compatfuture.CompatFutureCore
|
||||
@@ -1,5 +1,13 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
unimixins {
|
||||
fmlCorePlugin = "com.falsepattern.gasstation.core.GasStationCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val gasstationVersion = "0.5.1"
|
||||
val gasMixVersion = "0.8.5-gasstation_7"
|
||||
version = "$version+$gasstationVersion"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=com.falsepattern.gasstation.core.GasStationCore
|
||||
@@ -1,6 +1,13 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
import org.gradle.kotlin.dsl.filter
|
||||
|
||||
unimixins {
|
||||
fmlCorePlugin = "com.gtnewhorizon.gtnhmixins.core.GTNHMixinsCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val gtnhMixinsVersion = "2.2.0"
|
||||
val mixinExtrasVersion = "0.1.1"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=com.gtnewhorizon.gtnhmixins.core.GTNHMixinsCore
|
||||
@@ -1,6 +1,13 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
import org.gradle.kotlin.dsl.unimixins
|
||||
|
||||
unimixins {
|
||||
fmlCorePlugin = "io.github.legacymoddingmc.unimixins.mixin.MixinCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val versionBase = version.toString()
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=io.github.legacymoddingmc.unimixins.mixin.MixinCore
|
||||
@@ -1,5 +1,13 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
unimixins {
|
||||
fmlCorePlugin = "io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "sponge"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=io.github.tox1cozz.mixinbooterlegacy.MixinBooterLegacyPlugin
|
||||
@@ -1,6 +1,14 @@
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
unimixins {
|
||||
fmlCorePlugin = "io.github.legacymoddingmc.unimixins.mixinextras.MixinExtrasCore"
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val mixinExtrasVersion = "0.4.1"
|
||||
val shadowSources by configurations.creating
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
FMLCorePlugin=io.github.legacymoddingmc.unimixins.mixinextras.MixinExtrasCore
|
||||
@@ -1,5 +1,8 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
import org.gradle.kotlin.dsl.filter
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
val mixingasmVersion = "0.3"
|
||||
version = "$version+$mixingasmVersion"
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
plugins {
|
||||
id("unimixins")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("org.spongepowered:mixin:0.8.5")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user