Skip to content

Commit

Permalink
Port all the modules
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Oct 19, 2023
1 parent 2e78938 commit 80e0723
Show file tree
Hide file tree
Showing 16 changed files with 85 additions and 72 deletions.
4 changes: 0 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ allprojects {
// For some reason this is needed when using Gradle 6.9 (but not if using 4.4.1)
repositories {
mavenLocal()
maven {
name 'Overmind forge repo mirror'
url 'https://gregtech.overminddl1.com/'
}
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
Expand Down
8 changes: 7 additions & 1 deletion module-compat/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "${rootDir}/module-conventions.gradle"

def mixinExtrasVersion = "0.1.1"

configurations.create("shadowMixinExtras")
Expand Down Expand Up @@ -29,7 +31,7 @@ task mixinExtrasJar(type: ShadowJar) {

shadowJar {
configurations = [project.configurations.shadow]
classifier = ''
archiveClassifier = 'dev'
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.compat.repackage.common'
relocate 'io.github.legacymoddingmc.unimixins.compat.stub.cpw', 'cpw'

Expand All @@ -51,3 +53,7 @@ shadowJar.dependsOn mixinExtrasJar

jar.dependsOn shadowJar
jar.enabled = false

tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.compat.Tags")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* This is only here to help Forge detect the mod.
*/
@Mod(modid = "unimixins-compat", version = "@VERSION@", acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-compat", version = "@VERSION@", acceptableRemoteVersions = "*")
@Mod(modid = "unimixins-compat", version = Tags.VERSION, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-compat", version = Tags.VERSION, acceptableRemoteVersions = "*")
public class CompatModule {
}
9 changes: 9 additions & 0 deletions module-devcompat/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
apply from: "${rootDir}/module-conventions.gradle"

dependencies {
compileOnly('org.spongepowered:mixin:0.8.5')
}

archivesBaseName = archivesBaseName.replace("-1.7.10", "-devcompat-1.7.10")

jar {
archiveClassifier = ''
manifest {
attributes (
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
Expand All @@ -14,3 +17,9 @@ jar {
)
}
}

tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.devcompat.Tags")
}

reobfJar.enabled = false
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* This is only here to help Forge detect the mod.
*/
@Mod(modid = "unimixins-devcompat", version = "@VERSION@", acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-devcompat", version = "@VERSION@", acceptableRemoteVersions = "*")
@Mod(modid = "unimixins-devcompat", version = Tags.VERSION, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-devcompat", version = Tags.VERSION, acceptableRemoteVersions = "*")
public class DevCompatModule {
}
18 changes: 13 additions & 5 deletions module-gasstation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "${rootDir}/module-conventions.gradle"

dependencies {
compileOnly("org.spongepowered:mixin:$gasMixVersion")
compileOnly project(':module-mixinbooterlegacy')
Expand All @@ -10,7 +12,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-gasstation-1.7.10")

shadowJar {
configurations = [project.configurations.shadow]
classifier = ''
archiveClassifier = ''
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.gasstation.repackage.common'

manifest {
Expand All @@ -29,13 +31,19 @@ jar {
dependsOn shadowJar
}

reobfJar.enabled = false

ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+" + ext.extraVersion

minecraft {
replace("GRADLETOKEN_MODID", "gasstation")
replace("GRADLETOKEN_MODNAME", "GasStation")
replace("GRADLETOKEN_VERSION", extraVersion)
replace("GRADLETOKEN_GROUPNAME", "com.falsepattern.gasstation")
injectedTags.put("MODID", "gasstation")
injectedTags.put("MODNAME", "GasStation")
injectedTags.put("VERSION", extraVersion)
injectedTags.put("GROUPNAME", "com.falsepattern.gasstation")
}

tasks.injectTags.configure {
outputClassName.set("com.falsepattern.gasstation.Tags")
}

This file was deleted.

13 changes: 9 additions & 4 deletions module-gtnhmixins/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "${rootDir}/module-conventions.gradle"

dependencies {
compileOnly('org.spongepowered:mixin:0.8.5')
shadow(project(":module-common")) {
Expand All @@ -10,7 +12,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-gtnhmixins-1.7.10")
apply plugin: "com.github.johnrengelman.shadow"

shadowJar {
classifier = ''
archiveClassifier = ''
configurations = [project.configurations.shadow]

relocate 'org.objectweb.asm', 'org.spongepowered.asm.lib'
Expand All @@ -32,12 +34,15 @@ jar {
enabled = false
}

reobfJar.enabled = false

ext.uniVersion = version
ext.extraModid = "gtnhmixins"
ext.mcversion = "1.7.10"
version += "+" + ext.extraVersion

minecraft {
replaceIn("GTNHMixins.java")
replace("GRADLETOKEN_VERSION", extraVersion)
minecraft.injectedTags.put("VERSION", extraVersion)

tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.gtnhmixins.Tags")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import io.github.legacymoddingmc.unimixins.gtnhmixins.Tags;

@Mod(modid = GTNHMixins.MODID, version = GTNHMixins.VERSION, name = GTNHMixins.NAME, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = GTNHMixins.MODID, version = GTNHMixins.VERSION, name = GTNHMixins.NAME, acceptableRemoteVersions = "*")
public class GTNHMixins {
public static final String NAME = "GTNHMixins";
public static final String MODID = "gtnhmixins";
public static final String VERSION = "GRADLETOKEN_VERSION";
public static final String VERSION = Tags.VERSION;
public static final Logger LOGGER = LogManager.getLogger(NAME);
}
12 changes: 9 additions & 3 deletions module-mixinbooterlegacy/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "${rootDir}/module-conventions.gradle"

repositories {
maven {
name = 'sponge'
Expand All @@ -20,7 +22,7 @@ archivesBaseName = archivesBaseName.replace("-1.7.10", "-mixinbooterlegacy-1.7.1
apply plugin: "com.github.johnrengelman.shadow"

shadowJar {
classifier = ''
archiveClassifier = ''
configurations = [project.configurations.shadow]

relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.mixinbooterlegacy.repackage.common'
Expand All @@ -40,10 +42,14 @@ jar {
enabled = false
}

reobfJar.enabled = false

ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+" + extraVersion

minecraft {
replace("@VERSION@", extraVersion)
minecraft.injectedTags.put("VERSION", extraVersion)

tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.mixinbooterlegacy.Tags")
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.SortingIndex;
import io.github.tox1cozz.mixinextras.MixinExtrasBootstrap;
import io.github.legacymoddingmc.unimixins.mixinbooterlegacy.MixinBooterLegacyModule;
import io.github.legacymoddingmc.unimixins.mixinbooterlegacy.Tags;
import net.minecraft.launchwrapper.Launch;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
Expand Down Expand Up @@ -83,8 +84,8 @@ public String getAccessTransformerClass() {
return null;
}

@Mod(modid = "mixinbooterlegacy", name = "MixinBooterLegacy", version = "@VERSION@", acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "mixinbooterlegacy", name = "MixinBooterLegacy", version = "@VERSION@", acceptableRemoteVersions = "*")
@Mod(modid = "mixinbooterlegacy", name = "MixinBooterLegacy", version = Tags.VERSION, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "mixinbooterlegacy", name = "MixinBooterLegacy", version = Tags.VERSION, acceptableRemoteVersions = "*")
public static class Container {

}
Expand Down
10 changes: 9 additions & 1 deletion module-mixinextras/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
apply from: "${rootDir}/module-conventions.gradle"

configurations {
shadowBridge
}
Expand All @@ -15,7 +17,7 @@ version += "+${extraVersion}"
apply plugin: "com.github.johnrengelman.shadow"

shadowJar {
classifier = ''
archiveClassifier = ''
configurations = [project.configurations.shadow]

relocate 'org.objectweb.asm', 'org.spongepowered.asm.lib'
Expand All @@ -34,3 +36,9 @@ jar {
enabled = false
dependsOn shadowJar
}

reobfJar.enabled = false

tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.mixinextras.Tags")
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
/**
* This is only here to help Forge detect the mod.
*/
@Mod(modid = "mixinextras", version = "@VERSION@", acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "mixinextras", version = "@VERSION@", acceptableRemoteVersions = "*")
@Mod(modid = "mixinextras", version = Tags.VERSION, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "mixinextras", version = Tags.VERSION, acceptableRemoteVersions = "*")
public class MixinExtrasModule {
}

21 changes: 0 additions & 21 deletions module-mixinextras/src/main/resources/LICENSE

This file was deleted.

15 changes: 10 additions & 5 deletions module-spongemixins/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
apply from: "${rootDir}/module-conventions.gradle"

dependencies {
compileOnly('org.spongepowered:mixin:0.8.5')
}

archivesBaseName = archivesBaseName.replace("-1.7.10", "-spongemixins-1.7.10")

jar {
shadowJar {
archiveClassifier = ''
configurations = []
relocate 'com.gtnewhorizon', 'ru.timeconqueror.spongemixins.repackage.com.gtnewhorizon'
manifest {
attributes (
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
Expand All @@ -14,10 +19,10 @@ jar {
}
}

minecraft {
srgExtra "PK: com/gtnewhorizon ru/timeconqueror/spongemixins/repackage/com/gtnewhorizon"
}

ext.uniVersion = version
ext.mcversion = "1.7.10"
version += "+gtnh." + ext.extraVersion

reobfJar.enabled = false
jar.dependsOn shadowJar
jar.enabled = false
14 changes: 7 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ pluginManagement {
}

include 'module-mixin'
// include 'module-compat'
// include 'module-devcompat'
include 'module-compat'
include 'module-devcompat'
include 'module-mixingasm'
// include 'module-spongemixins'
// include 'module-mixinbooterlegacy'
// include 'module-gasstation'
// include 'module-gtnhmixins'
// include 'module-mixinextras'
include 'module-spongemixins'
include 'module-mixinbooterlegacy'
include 'module-gasstation'
include 'module-gtnhmixins'
include 'module-mixinextras'
// include 'module-all'
include 'module-common'

0 comments on commit 80e0723

Please sign in to comment.