Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Make RefMaps Great Again!
Browse files Browse the repository at this point in the history
Update GradleWrapper!
Make Mixin-Forge a CorePatch!
  • Loading branch information
EverNife committed Jan 25, 2020
1 parent b3ff2de commit b8c0464
Show file tree
Hide file tree
Showing 35 changed files with 52 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Mixin-Avaritia/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Avaritia-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-Avaritia/src/main/resources/mixins.avaritia.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@",
}
2 changes: 1 addition & 1 deletion Mixin-Baubles/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Baubles-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-Baubles/src/main/resources/mixins.baubles.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-Botania/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Botania-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-Botania/src/main/resources/mixins.botania.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-CarpentersBlocks/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "CarpentersBlocks-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-CoFH/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "CoFH-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-CoFH/src/main/resources/mixins.cofh.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-DraconicEvolution/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "DraconicEvolution-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-EnderIO/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "EnderIO-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-EnderIO/src/main/resources/mixins.enderio.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-ExtraUtilities/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "ExtraUtilities-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
3 changes: 2 additions & 1 deletion Mixin-Forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Forge-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand All @@ -16,6 +16,7 @@ jar {
manifest {
attributes(
'GRIMOIRE_PRIORITY': 99999,
'GRIMOIRE_COREPATCH': true
)
}
}
9 changes: 4 additions & 5 deletions Mixin-Forge/src/main/resources/mixins.forge.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"required": true,
"package": "io.github.crucible.grimoire.mixins.forge",
"mixins":[],
"server": [
"mixins":[
"MixinEntityThrowable",
"MixinTileEntity"
],
"server": [],
"client": [
"MixinItemStack",
"MixinRenderItem",
"MixinRenderManager"
],
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(PREINIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@",
"verbose": true
}
2 changes: 1 addition & 1 deletion Mixin-IC2/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "IC2-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-IC2/src/main/resources/mixins.industrialcraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-Mekanism/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Mekanism-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-Mekanism/src/main/resources/mixins.mekanism.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-MineFactoryReloaded/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "MineFactoryReloaded-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(DEFAULT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-NEI/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "NEI-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-NEI/src/main/resources/mixins.nei.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-OpenBlocks/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "OpenBlocks-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-OpenBlocks/src/main/resources/mixins.openblocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-Thaumcraft/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "Thaumcraft-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
2 changes: 1 addition & 1 deletion Mixin-Thaumcraft/src/main/resources/mixins.thaumcraft.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
2 changes: 1 addition & 1 deletion Mixin-ThaumicEnergistics/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description = "A coremod full of patches and fixes made from black magic and suffering."

archivesBaseName = "ThaumicEnergistics-Mixin"
version = "1.0.1a"
version = "1.0.1b"


dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"compatibilityLevel": "JAVA_8",
"minVersion": "0.7.11",
"target": "@env(INIT)",
"refmap":"grimoire.refmap.json"
"refmap":"@MIXIN_REFMAP_NAME@"
}
17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ buildscript {
}
}

subprojects {
import org.apache.tools.ant.filters.ReplaceTokens

allprojects {
apply plugin: 'java'
}

subprojects {
apply plugin: 'idea'
apply plugin: 'forge'
apply plugin: 'base'

minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
Expand Down Expand Up @@ -46,7 +52,8 @@ subprojects {

ext {
mixinSrg = new File(project.buildDir, 'mixins/mixin.grimoire.srg')
mixinRefMap = new File(project.buildDir, "mixins/grimoire.refmap.json")
mixinRefMapName = name.toLowerCase() + ".refmap.json"; //Sub-Project Name
mixinRefMap = new File(project.buildDir, "mixins/" + mixinRefMapName)
}

jar {
Expand All @@ -66,6 +73,12 @@ subprojects {
]
}

processResources{
eachFile{
filter ReplaceTokens, tokens:[MIXIN_REFMAP_NAME: mixinRefMapName]
}
}

task copySrgs(type: Copy, dependsOn: 'genSrgs') {
from plugins.getPlugin("forge").delayedFile('{SRG_DIR}')

Expand Down
Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip

0 comments on commit b8c0464

Please sign in to comment.