@@ -10,20 +10,19 @@ configFile.withReader {
10
10
// For those who want the bleeding edge
11
11
buildscript {
12
12
repositories {
13
+ maven { url = ' https://files.minecraftforge.net/maven' }
13
14
jcenter()
14
- maven {
15
- name = " forge"
16
- url = " http://files.minecraftforge.net/maven"
17
- }
15
+ mavenCentral()
18
16
}
19
17
dependencies {
20
- classpath ' net.minecraftforge.gradle: ForgeGradle:2.3-SNAPSHOT '
18
+ classpath group : ' net.minecraftforge.gradle' , name : ' ForgeGradle' , version : ' 3.+ ' , changing : true
21
19
}
22
20
}
23
21
apply plugin : ' java'
24
22
apply plugin : ' idea'
25
- apply plugin : ' net.minecraftforge.gradle.forge'
26
- apply plugin : ' maven'
23
+ apply plugin : ' net.minecraftforge.gradle'
24
+ apply plugin : ' maven-publish'
25
+ apply plugin : ' eclipse'
27
26
28
27
// /////////////////////////////////////////////////
29
28
// IDE Settings
@@ -40,24 +39,56 @@ idea {
40
39
version = (hasProperty(" CIRevision" ) ? CIRevision : config. mod_version)
41
40
group = config. group_name
42
41
archivesBaseName = " ${ config.mod_id} -${ config.minecraft_version} "
43
- sourceCompatibility = JavaVersion . VERSION_1_8
44
- targetCompatibility = JavaVersion . VERSION_1_8
42
+ sourceCompatibility = targetCompatibility = compileJava. sourceCompatibility = compileJava. targetCompatibility = ' 1.8' // Need this here so eclipse task generates correctly.
45
43
46
44
minecraft {
47
- version = config. minecraft_version + " -" + config. forge_version // grab latest forge
48
- runDir = " run"
45
+ mappings channel : " snapshot" , version : config. mcp_mappings
46
+ // version = config.minecraft_version + "-" + config.forge_version // grab latest forge
47
+ // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
48
+ accessTransformer = file(' src/main/resources/META-INF/tf_at.cfg' )
49
49
50
- mappings = config. mcp_mappings
51
- makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
50
+ // replace '@mod_version@', version
51
+ // replace '@mod_id@', config.mod_id
52
+ // replace '@ci_build@', hasProperty("CIRevision") ? 'true' : 'false'
52
53
53
- replace ' @mod_version@' , version
54
- replace ' @mod_id@' , config. mod_id
55
- replace ' @ci_build@' , hasProperty(" CIRevision" ) ? ' true' : ' false'
54
+ // replaceIn 'TwilightForestMod.java'
55
+ // replace '@VERSION@', project.version
56
56
57
- replaceIn ' TwilightForestMod.java'
58
- replace ' @VERSION@' , project. version
59
- }
57
+ runs {
58
+ client {
59
+ workingDirectory project. file(' run' )
60
+
61
+ // Recommended logging data for a userdev environment
62
+ property ' forge.logging.markers' , ' SCAN,REGISTRIES,REGISTRYDUMP'
63
+
64
+ // Recommended logging level for the console
65
+ property ' forge.logging.console.level' , ' debug'
66
+
67
+ mods {
68
+ twilightforest {
69
+ source sourceSets. main
70
+ }
71
+ }
72
+ }
73
+
74
+ server {
75
+ workingDirectory project. file(' run' )
76
+
77
+ // Recommended logging data for a userdev environment
78
+ property ' forge.logging.markers' , ' SCAN,REGISTRIES,REGISTRYDUMP'
79
+
80
+ // Recommended logging level for the console
81
+ property ' forge.logging.console.level' , ' debug'
60
82
83
+ mods {
84
+ twilightforest {
85
+ source sourceSets. main
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ /*
61
92
processResources {
62
93
//replaceIn 'assets/twilightforest/patchouli_books/guide/book.json'
63
94
//replace '@EDITION@', project.version
@@ -68,8 +99,8 @@ processResources {
68
99
69
100
// replace stuff in mcmod.info, nothing else
70
101
from(sourceSets.main.resources.srcDirs) {
71
- include ' **/* .info'
72
- // include '**/* .properties'
102
+ // include '.info'
103
+ //include '.properties'
73
104
include 'assets/twilightforest/patchouli_books/guide/book.json'
74
105
75
106
// replace version and mcversion
@@ -89,25 +120,22 @@ processResources {
89
120
exclude 'mcmod.info'
90
121
exclude 'assets/twilightforest/patchouli_books/guide/book.json'
91
122
}
92
- }
123
+ }*/
93
124
94
125
compileJava {
95
126
options. encoding = ' UTF-8'
96
127
}
97
128
98
129
jar {
99
130
classifier = ' universal'
100
- manifest {
101
- attributes ' FMLAT' : ' tf_at.cfg'
102
- }
103
131
}
104
132
105
133
repositories {
106
134
maven {
107
135
name ' progwm\' s Maven' // JEI + Mantle + TCon
108
136
url ' https://dvs1.progwml6.com/files/maven'
109
137
}
110
- maven {
138
+ /* maven {
111
139
name 'tterrag\'s Maven' // CTM
112
140
url 'https://maven.tterrag.com/'
113
141
}
@@ -122,14 +150,14 @@ repositories {
122
150
maven {
123
151
name 'Curseforge Maven' // Baubles + Thaumcraft
124
152
url 'https://minecraft.curseforge.com/api/maven/'
125
- }
153
+ }*/
126
154
}
127
155
128
156
dependencies {
129
157
// progwml6
130
- deobfCompile " mezz.jei:jei_ ${ minecraft_version} :${ jei_version} "
158
+ runtimeOnly fg . deobf( " mezz.jei:jei- ${ minecraft_version} :${ jei_version} " )
131
159
132
- deobfCompile " slimeknights.mantle:Mantle:${ minecraft_sub_version} -${ mantle_version} "
160
+ /* deobfCompile "slimeknights.mantle:Mantle:${minecraft_sub_version}-${mantle_version}"
133
161
deobfCompile "slimeknights:TConstruct:${minecraft_version}-${tcon_version}"
134
162
135
163
// tterrag
@@ -145,7 +173,9 @@ dependencies {
145
173
146
174
// curseforge
147
175
deobfCompile "baubles:Baubles:${minecraft_sub_version}:${baubles_version}"
148
- deobfCompile " thaumcraft:Thaumcraft:${ minecraft_version} :${ thaumcraft_version} "
176
+ deobfCompile "thaumcraft:Thaumcraft:${minecraft_version}:${thaumcraft_version}"*/
177
+
178
+ minecraft " net.minecraftforge:forge:${ project.minecraft_version} -${ project.forge_version} "
149
179
}
150
180
151
181
task createPom {
0 commit comments