This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
189 lines (159 loc) · 6.72 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
// For those who want the bleeding edge
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3.4'
}
}
plugins {
id 'com.matthewprenger.cursegradle' version '1.2.0'
id "com.github.ben-manes.versions" version "0.21.0" // Provides dependencyUpdates task.
}
buildDir = "build"
apply plugin: 'net.minecraftforge.gradle.forge'
version = mc_version + "-" + mod_version
group = "org.squiddev"
archivesBaseName = "plethora"
minecraft {
version = "${project.mc_version}-${project.forge_version}"
runDir = "run"
mappings = "snapshot_20180814"
replace '${mod_version}', project.mod_version
replace '${mc_version}', project.mc_version
replace '${cct_version}', project.cct_version
replace '${forge_version}', project.forge_version
}
jar {
manifest {
attributes(
'FMLAT': 'Plethora_at.cfg',
)
}
exclude "**/*.java"
}
configurations {
integrationMod
compileOnly.extendsFrom integrationMod
testCompile.extendsFrom integrationMod
testCompile.extendsFrom forgeGradleGradleStart
}
repositories {
jcenter()
maven { url "https://www.cursemaven.com" } // Applied Energistics + Industrial Forgering
maven { url 'http://chickenbones.net/maven/' } // CBMP
maven { url 'http://dvs1.progwml6.com/files/maven/' } // JEI + Tinker's
maven { url 'http://dyonovan.com/maven2/' } // Industrial Foregoing
maven { url 'http://maven.ic2.player.to/' } // IC2 + Forestry
maven { url 'https://dl.bintray.com/squiddev/maven/' } // ConfigGen (why do I use this still?)
maven { url 'https://maven.amadornes.com/' } // Multipart
maven { url 'https://maven.blamejared.com/' } // Botania
maven { url 'https://maven.cil.li/' } // OpenComputers
maven { url 'https://maven.covers1624.net/' } // CoFH
maven { url 'https://maven.k-4u.nl/' } // McJty's mods
maven { url 'https://maven.mcmoddev.com/' } // Tesla
maven { url 'https://maven.shadowfacts.net' } // Forgelin
maven { url 'https://mod-buildcraft.com/maven/' } // Buildcraft
maven { url 'https://maven.hellfiredev.net/' } // Astral Sorcery
maven { url 'https://squiddev.cc/maven/' } // CC: Tweaked
maven { url 'https://minecraft.curseforge.com/api/maven/' } // Everything else
}
dependencies {
deobfCompile "org.squiddev:cc-tweaked-${mc_version}:${cct_version}"
compile "mezz.jei:jei_1.12.2:4.15.0.268"
// External mods with maven dependencies. Have fun when the next version of Minecraft drops!
integrationMod "curse.maven:applied-energistics-2-223794:2747063"
integrationMod "codechicken:ChickenASM:1.12-1.0.2.9"
integrationMod "codechicken:CodeChickenLib:1.12.2-3.2.2.354:universal"
integrationMod("codechicken:ForgeMultipart:1.12.2-2.6.1.81:universal") { exclude group: "codechicken" }
integrationMod "cofh:CoFHCore:1.12.2-4.6.2.25:universal"
integrationMod "cofh:RedstoneFlux:1.12-2.1.0.7:universal"
integrationMod "cofh:ThermalExpansion:1.12.2-5.5.3.41:universal"
integrationMod "cofh:ThermalFoundation:1.12.2-2.6.2.26:universal"
integrationMod "cofh:CoFHWorld:1.12.2-1.3.0.6:universal"
integrationMod("curse.maven:industrialforegoing-266515:2745321") { exclude group: "mezz.jei" }
compileOnly ("com.enderio:EnderIO:1.12.2-5.0.43") { transitive = false }
compileOnly "com.enderio.core:EnderCore:1.12.2-0.5.57" // EnderCore appears to crash in a development environment.
integrationMod("com.github.mcjty:mcjtylib:1.12-3.5.0") { transitive = false }
integrationMod("com.github.mcjty:rftools:1.12-7.70") { transitive = false }
integrationMod("com.github.mcjty:xnet:1.12-1.8.0") { transitive = false }
integrationMod "com.mod-buildcraft:buildcraft-all:7.99.22"
integrationMod "hellfirepvp.astralsorcery:astralsorcery:1.12.2-1.10.18-v129"
integrationMod "li.cil.oc:OpenComputers:MC1.12.2-1.7.5.192"
integrationMod "MCMultiPart2:MCMultiPart:2.5.3"
integrationMod "net.darkhax.tesla:Tesla-1.12.2:1.0.63"
integrationMod "net.industrial-craft:industrialcraft-2:2.8.146-ex112"
integrationMod "net.sengir.forestry:forestry_1.12.2:5.8.2.387:api"
integrationMod "net.sengir.forestry:forestry_1.12.2:5.8.2.387"
integrationMod "refinedstorage:refinedstorage:1.6.13-364"
integrationMod "slimeknights:TConstruct:1.12.2-2.12.0.116"
integrationMod "slimeknights.mantle:Mantle:1.12-1.3.3.51"
integrationMod "vazkii.botania:Botania:r1.10-362.77"
integrationMod "net.ndrei:tesla-core-lib:1.12.2-1.0.15.16:deobf"
// All the Curse mods
integrationMod "baubles:Baubles:1.12:1.5.2"
integrationMod "storage-drawers:StorageDrawers:1.12.2:5.3.8"
integrationMod "chameleon:Chameleon:1.12:4.1.3"
integrationMod "blockcraftery:blockcraftery:1.12.2:1.2.0"
integrationMod "mysticallib:mysticallib:1.12.2:1.1.1"
integrationMod "roost:roost:1.12:1.3.0"
integrationMod "chickens:chickens:6.0.4"
integrationMod "hatchery:hatchery:1.12.2:2.2.1"
integrationMod "cyclic:Cyclic:1.12.2:1.19.9"
integrationMod "extra-utilities:extrautils2:1.12:1.9.9"
integrationMod "not-enough-wands:notenoughwands:1.12:1.8.1"
integrationMod "buildcraft:buildcraft:all:7.99.24.4"
compileOnly('org.squiddev:ConfigGen:1.2.5') { exclude group: 'net.minecraftforge' }
// compileOnly "org.squiddev:forgelint:0.1.1"
compileOnly "com.google.errorprone:error_prone_annotations:2.0.21"
testCompile 'junit:junit:4.11'
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "mod_version", project.mod_version
inputs.property "mc_version", project.mc_version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'mod_version': mod_version, 'mc_version': mc_version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint" << "-Xlint:-rawtypes" << "-Xlint:-processing" << "-parameters"
}
}
// Not quite ready for common usage, but helped a lot in checking stuff
// compileJava { options.compilerArgs << "-Xplugin:ForgeLint" }
// Added for mods that have per-player data, e.g. Astral Sorcery
runClient {
args '--username', 'PlethoraDev'
}
curseforge {
apiKey = project.hasProperty('curseForgeApiKey') ? project.curseForgeApiKey : ''
project {
id = '248425'
releaseType = 'release'
changelog = "Release notes can be found on the GitHub repository (https://github.com/SquidDev-CC/plethora/releases/tag/v${project.version})."
relations {
requiredLibrary 'cc-tweaked'
}
}
}
task runTestServer(type: JavaExec) {
classpath = sourceSets.test.runtimeClasspath
main = "org.squiddev.plethora.boostrap.LaunchServer"
workingDir = "${project.projectDir}/test-files/server"
systemProperties = ["fml.queryResult": "confirm"]
workingDir.mkdirs()
}