Skip to content

Commit 1d9c51a

Browse files
committed
Add mixin lib
1 parent 992c509 commit 1d9c51a

File tree

2 files changed

+63
-46
lines changed

2 files changed

+63
-46
lines changed

build.gradle

Lines changed: 51 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,102 @@
11
buildscript {
22
repositories {
3+
jcenter()
34
maven {
45
name = "forge"
5-
url = "https://files.minecraftforge.net/maven"
6+
url = "http://files.minecraftforge.net/maven"
67
}
7-
jcenter()
8-
mavenCentral()
9-
/*
108
maven {
119
name = "sponge"
1210
url = "http://repo.spongepowered.org/maven"
1311
}
14-
*/
1512
}
1613
dependencies {
17-
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
18-
//classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
14+
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
15+
classpath 'org.spongepowered:mixingradle:0.4-SNAPSHOT'
1916
}
2017
}
2118

2219
apply plugin: 'net.minecraftforge.gradle.forge'
23-
//apply plugin: 'org.spongepowered.mixin'
20+
apply plugin: 'org.spongepowered.mixin'
2421

25-
version = "dev.0.6" + getBuildNumber()
22+
version = "dev.0.5" + getBuildNumber()
2623
group= "com.mcgoodtime.productionline"
2724
archivesBaseName = "ProductionLine"
2825

29-
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
26+
sourceCompatibility = 1.8
27+
targetCompatibility = 1.8
3028

3129
minecraft {
32-
version = "1.12.2-14.23.5.2847"
30+
version = "1.10.2-12.18.3.2221"
3331
runDir = "run"
34-
35-
// the mappings can be changed at any time, and must be in the following format.
36-
// snapshot_YYYYMMDD snapshot are built nightly.
37-
// stable_# stables are built at the discretion of the MCP team.
38-
// Use non-default mappings at your own risk. they may not always work.
39-
// simply re-run your setup task after changing the mappings to update your workspace.
40-
mappings = "snapshot_20171003"
41-
// makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
32+
mappings = "stable_29"
4233
}
4334

4435
repositories {
4536
maven {
4637
name = "ic2"
47-
url = "https://maven.ic2.player.to"
38+
url = "http://maven.ic2.player.to"
4839
}
4940
maven {
5041
name = "sponge"
5142
url = "http://repo.spongepowered.org/maven"
5243
}
5344
maven {
54-
name = "botania"
55-
url = "https://maven.blamejared.com/"
45+
name = "jei"
46+
url = "http://dvs1.progwml6.com/files/maven"
5647
}
57-
maven {
58-
name = "baubles"
59-
url = "https://maven.thiakil.com"
60-
}
61-
maven {
62-
name = "jei"
63-
url = "http://dvs1.progwml6.com/files/maven"
64-
}
6548
}
6649

6750
dependencies {
68-
compile 'net.industrial-craft:industrialcraft-2:2.8.209-ex112:dev' //adds ic2 to the dev env
69-
deobfCompile "vazkii.botania:Botania:r1.10-363.148"
70-
deobfCompile "com.azanor.baubles:Baubles:1.12-1.5.2"
71-
//compile ('org.spongepowered:mixin:0.6.+') {
72-
// exclude module: 'launchwrapper'
73-
//}
51+
compile ('org.spongepowered:mixin:0.6.+') {
52+
exclude module: 'launchwrapper'
53+
}
54+
deobfCompile 'net.industrial-craft:industrialcraft-2:2.6.161-ex110' //adds ic2 to the dev env
55+
compile 'mezz.jei:jei_1.10.2:3.14.4.404'
56+
}
57+
58+
jar {
59+
manifest {
60+
attributes (
61+
'FMLCorePlugin': 'com.mcgoodtime.productionline.core.coremod.PLCore',
62+
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
63+
'TweakOrder': 0,
64+
'MixinConfigs': 'mixins.productionline.core.json',
65+
'FMLCorePluginContainsFMLMod': true,
66+
'FMLAT': 'productionline_at.cfg',
67+
'ForceLoadAsMod': true
68+
)
69+
}
7470
}
7571

72+
mixin {
73+
// Specify "notch" or "searge" here
74+
defaultObfuscationEnv searge
75+
add sourceSets.main, "mixins.forge.refmap.json"
76+
}
77+
78+
compileJava {
79+
options.encoding = 'UTF-8'
80+
}
81+
82+
idea.module.inheritOutputDirs = true
83+
7684
processResources {
77-
// this will ensure that this task is redone when the versions change.
7885
inputs.property "version", project.version
7986
inputs.property "mcversion", project.minecraft.version
8087

81-
// replace stuff in mcmod.info, nothing else
82-
from(sourceSets.main.resources.srcDirs) {
88+
from (sourceSets.main.resources.srcDirs) {
8389
include 'mcmod.info'
84-
85-
// replace version and mcversion
86-
expand 'version':project.version, 'mcversion':project.minecraft.version
90+
expand 'version' : project.version, 'mcversion' : project.minecraft.version
8791
}
88-
89-
// copy everything else except the mcmod.info
90-
from(sourceSets.main.resources.srcDirs) {
92+
93+
from (sourceSets.main.resources.srcDirs) {
9194
exclude 'mcmod.info'
9295
}
9396
}
9497

9598
static def getBuildNumber() {
96-
return "$System.env.BUILD_NUMBER" != "null" ? "." + Integer.parseInt("$System.env.BUILD_NUMBER") : ""
99+
return "$System.env.BUILD_NUMBER" != "null" ? "." + Integer.parseInt("$System.env.BUILD_NUMBER") : ""
97100
}
101+
102+
tasks.jar.dependsOn "check"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"required": true,
3+
"minVersion": "0.6.15",
4+
"package": "com.mcgoodtime.productionline.mixin",
5+
"priority": 1111,
6+
"mixins": [
7+
"MixinTileEntityFurnace"
8+
],
9+
"compatibilityLevel": "JAVA_8",
10+
"client": [],
11+
"server": []
12+
}

0 commit comments

Comments
 (0)