|
1 | 1 | buildscript {
|
2 | 2 | repositories {
|
| 3 | + jcenter() |
3 | 4 | maven {
|
4 | 5 | name = "forge"
|
5 |
| - url = "https://files.minecraftforge.net/maven" |
| 6 | + url = "http://files.minecraftforge.net/maven" |
6 | 7 | }
|
7 |
| - jcenter() |
8 |
| - mavenCentral() |
9 |
| - /* |
10 | 8 | maven {
|
11 | 9 | name = "sponge"
|
12 | 10 | url = "http://repo.spongepowered.org/maven"
|
13 | 11 | }
|
14 |
| - */ |
15 | 12 | }
|
16 | 13 | 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' |
19 | 16 | }
|
20 | 17 | }
|
21 | 18 |
|
22 | 19 | apply plugin: 'net.minecraftforge.gradle.forge'
|
23 |
| -//apply plugin: 'org.spongepowered.mixin' |
| 20 | +apply plugin: 'org.spongepowered.mixin' |
24 | 21 |
|
25 |
| -version = "dev.0.6" + getBuildNumber() |
| 22 | +version = "dev.0.5" + getBuildNumber() |
26 | 23 | group= "com.mcgoodtime.productionline"
|
27 | 24 | archivesBaseName = "ProductionLine"
|
28 | 25 |
|
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 |
30 | 28 |
|
31 | 29 | minecraft {
|
32 |
| - version = "1.12.2-14.23.5.2847" |
| 30 | + version = "1.10.2-12.18.3.2221" |
33 | 31 | 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" |
42 | 33 | }
|
43 | 34 |
|
44 | 35 | repositories {
|
45 | 36 | maven {
|
46 | 37 | name = "ic2"
|
47 |
| - url = "https://maven.ic2.player.to" |
| 38 | + url = "http://maven.ic2.player.to" |
48 | 39 | }
|
49 | 40 | maven {
|
50 | 41 | name = "sponge"
|
51 | 42 | url = "http://repo.spongepowered.org/maven"
|
52 | 43 | }
|
53 | 44 | maven {
|
54 |
| - name = "botania" |
55 |
| - url = "https://maven.blamejared.com/" |
| 45 | + name = "jei" |
| 46 | + url = "http://dvs1.progwml6.com/files/maven" |
56 | 47 | }
|
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 |
| - } |
65 | 48 | }
|
66 | 49 |
|
67 | 50 | 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 | + } |
74 | 70 | }
|
75 | 71 |
|
| 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 | + |
76 | 84 | processResources {
|
77 |
| - // this will ensure that this task is redone when the versions change. |
78 | 85 | inputs.property "version", project.version
|
79 | 86 | inputs.property "mcversion", project.minecraft.version
|
80 | 87 |
|
81 |
| - // replace stuff in mcmod.info, nothing else |
82 |
| - from(sourceSets.main.resources.srcDirs) { |
| 88 | + from (sourceSets.main.resources.srcDirs) { |
83 | 89 | 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 |
87 | 91 | }
|
88 |
| - |
89 |
| - // copy everything else except the mcmod.info |
90 |
| - from(sourceSets.main.resources.srcDirs) { |
| 92 | + |
| 93 | + from (sourceSets.main.resources.srcDirs) { |
91 | 94 | exclude 'mcmod.info'
|
92 | 95 | }
|
93 | 96 | }
|
94 | 97 |
|
95 | 98 | 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") : "" |
97 | 100 | }
|
| 101 | + |
| 102 | +tasks.jar.dependsOn "check" |
0 commit comments