forked from PieKing1215/InvMove-Forge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
273 lines (224 loc) · 9.27 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
buildscript {
repositories {
maven {
name = "forge"
url = "https://files.minecraftforge.net/maven"
}
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
}
}
repositories {
maven {
name = "curseforge"
url = "https://minecraft.curseforge.com/api/maven/"
}
maven {
name = "cursemaven"
url = "https://www.cursemaven.com"
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'maven-publish'
version = '1.15.2-0.4.6'
group = 'me.pieking1215.invmove'
archivesBaseName = 'InvMove'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'snapshot', version: '20200514-1.15.1'
runs {
client {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
invmove {
source sourceSets.main
}
}
}
server {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
mods {
invmove {
source sourceSets.main
}
}
}
data {
workingDirectory project.file('run')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
args '--mod', 'invmove', '--all', '--output', file('src/generated/resources/')
mods {
invmove {
source sourceSets.main
}
}
}
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.15.2-31.2.31'
// Cloth Config API (Forge)
// www.curseforge.com/minecraft/mc-mods/cloth-config-forge
runtimeOnly fg.deobf("curse.maven:cloth-config-forge:2938583")
compileOnly fg.deobf("curse.maven:cloth-config-forge:2938583")
// Just Enough Items (JEI)
// www.curseforge.com/minecraft/mc-mods/jei
runtimeOnly fg.deobf("curse.maven:jei:2988823")
compileOnly fg.deobf("curse.maven:jei:2988823")
// Immersive Engineering
// www.curseforge.com/minecraft/mc-mods/immersive-engineering
//runtimeOnly fg.deobf("curse.maven:immersive-engineering:3003002")
compileOnly fg.deobf("curse.maven:immersive-engineering:3003002")
// Engineer's Decor
// www.curseforge.com/minecraft/mc-mods/engineers-decor
//runtimeOnly fg.deobf("curse.maven:engineers-decor:2991024")
compileOnly fg.deobf("curse.maven:engineers-decor:2991024")
// CC: Tweaked
// www.curseforge.com/minecraft/mc-mods/cc-tweaked
//runtimeOnly fg.deobf("curse.maven:cc-tweaked:2985036")
compileOnly fg.deobf("curse.maven:cc-tweaked:2985036")
// Music Maker Mod
// www.curseforge.com/minecraft/mc-mods/music-maker-mod
//runtimeOnly fg.deobf("curse.maven:music-maker-mod:2959062")
compileOnly fg.deobf("curse.maven:music-maker-mod:2959062")
// EmbellishCraft
// www.curseforge.com/minecraft/mc-mods/embellishcraft
//runtimeOnly fg.deobf("curse.maven:embellishcraft:2987545")
compileOnly fg.deobf("curse.maven:embellishcraft:2987545")
// Refined Storage
// www.curseforge.com/minecraft/mc-mods/refined-storage
//runtimeOnly fg.deobf("curse.maven:refined-storage:3002234")
compileOnly fg.deobf("curse.maven:refined-storage:3002234")
// MrCrayfish's Furniture Mod
// www.curseforge.com/minecraft/mc-mods/mrcrayfish-furniture-mod
//runtimeOnly fg.deobf("curse.maven:mrcrayfish-furniture-mod:2853267")
compileOnly fg.deobf("curse.maven:mrcrayfish-furniture-mod:2853267")
// Charm
// www.curseforge.com/minecraft/mc-mods/charm
//runtimeOnly fg.deobf("curse.maven:charm:2973470")
compileOnly fg.deobf("curse.maven:charm:2973470")
// Create
// www.curseforge.com/minecraft/mc-mods/create
//runtimeOnly fg.deobf("curse.maven:create:2979593")
compileOnly fg.deobf("curse.maven:create:2979593")
// Curios API
// www.curseforge.com/minecraft/mc-mods/curios
//runtimeOnly fg.deobf("curse.maven:curios:2972162")
compileOnly fg.deobf("curse.maven:curios:2972162")
// AutoRegLib
// www.curseforge.com/minecraft/mc-mods/autoreglib
//runtimeOnly fg.deobf("curse.maven:autoreglib:2911830")
compileOnly fg.deobf("curse.maven:autoreglib:2911830")
// Quark
// www.curseforge.com/minecraft/mc-mods/quark
//runtimeOnly fg.deobf("curse.maven:quark:2980651")
compileOnly fg.deobf("curse.maven:quark:2980651")
// Iron Chests
// www.curseforge.com/minecraft/mc-mods/iron-chests
//runtimeOnly fg.deobf("curse.maven:iron-chests:2898344")
compileOnly fg.deobf("curse.maven:iron-chests:2898344")
// Cooking for Blockheads
// www.curseforge.com/minecraft/mc-mods/cooking-for-blockheads
//runtimeOnly fg.deobf("curse.maven:cooking-for-blockheads:2986599")
compileOnly fg.deobf("curse.maven:cooking-for-blockheads:2986599")
// Patchouli
// www.curseforge.com/minecraft/mc-mods/patchouli
//runtimeOnly fg.deobf("curse.maven:patchouli:3000903")
compileOnly fg.deobf("curse.maven:patchouli:3000903")
// CodeChicken Lib 1.8.+
// www.curseforge.com/minecraft/mc-mods/codechicken-lib-1-8
//runtimeOnly fg.deobf("curse.maven:codechicken-lib-1-8:2969414")
//compileOnly fg.deobf("curse.maven:codechicken-lib-1-8:2969414")
// Botania
// www.curseforge.com/minecraft/mc-mods/botania
//runtimeOnly fg.deobf("curse.maven:botania:2993051")
compileOnly fg.deobf("curse.maven:botania:2993051")
// Ender Storage 1.8.+
// www.curseforge.com/minecraft/mc-mods/ender-storage-1-8
//runtimeOnly fg.deobf("curse.maven:ender-storage-1-8:2969923")
compileOnly fg.deobf("curse.maven:ender-storage-1-8:2969923")
// Mekanism
// www.curseforge.com/minecraft/mc-mods/mekanism
//runtimeOnly fg.deobf("curse.maven:mekanism:2996531")
compileOnly fg.deobf("curse.maven:mekanism:2996531")
// Mekanism Additions
// www.curseforge.com/minecraft/mc-mods/mekanism-additions
//runtimeOnly fg.deobf("curse.maven:mekanism-additions:2996535")
compileOnly fg.deobf("curse.maven:mekanism-additions:2996535")
// Mekanism Generators
// www.curseforge.com/minecraft/mc-mods/mekanism-generators
//runtimeOnly fg.deobf("curse.maven:mekanism-generators:2996533")
compileOnly fg.deobf("curse.maven:mekanism-generators:2996533")
// Mekanism Tools
// www.curseforge.com/minecraft/mc-mods/mekanism-tools
//runtimeOnly fg.deobf("curse.maven:mekanism-tools:2996534")
compileOnly fg.deobf("curse.maven:mekanism-tools:2996534")
// Titanium
// www.curseforge.com/minecraft/mc-mods/titanium
//runtimeOnly fg.deobf("curse.maven:titanium:2980252")
compileOnly fg.deobf("curse.maven:titanium:2980252")
// Industrial Foregoing
// www.curseforge.com/minecraft/mc-mods/industrial-foregoing
//runtimeOnly fg.deobf("curse.maven:industrial-foregoing:2980323")
compileOnly fg.deobf("curse.maven:industrial-foregoing:2980323")
// Waystones
// www.curseforge.com/minecraft/mc-mods/waystones
//runtimeOnly fg.deobf("curse.maven:waystones:2991235")
compileOnly fg.deobf("curse.maven:waystones:2991235")
// Locks
// www.curseforge.com/minecraft/mc-mods/locks
//runtimeOnly fg.deobf("curse.maven:locks:3012847")
compileOnly fg.deobf("curse.maven:locks:3012847")
// utility / testing
// GameMenuModOption
// www.curseforge.com/minecraft/mc-mods/gamemenumodoption
runtimeOnly fg.deobf("curse.maven:gamemenumodoption:2990175")
// Commands4Configs
// www.curseforge.com/minecraft/mc-mods/commands4configs/files/3002158
// for testing https://github.com/PieKing1215/InvMove/issues/2
//runtimeOnly fg.deobf("curse.maven:commands4configs:3002158")
// Abnormals Core
// www.curseforge.com/minecraft/mc-mods/abnormals-core
// for Buzzier Bees
//runtimeOnly fg.deobf("curse.maven:abnormals-core:2980113")
// Buzzier Bees
// www.curseforge.com/minecraft/mc-mods/buzzier-bees
// for testing modded signs that don't extend EditSignScreen
//runtimeOnly fg.deobf("curse.maven:buzzier-bees:2988910")
}
jar {
manifest {
attributes([
"Specification-Title": "invmove",
"Specification-Vendor": "pieking1215",
"Specification-Version": "1", // We are version 1 of ourselves
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"pieking1215",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
// Example configuration to allow publishing using the maven-publish task
// This is the preferred method to reobfuscate your jar file
jar.finalizedBy('reobfJar')
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}