forked from JackyyTV/ExNihiloAdscensio
-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.gradle
195 lines (155 loc) · 4.9 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
// For those who want the bleeding edge
buildscript {
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "gradle"
url = "https://plugins.gradle.org/m2/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath "net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT"
}
}
plugins {
id "com.github.ben-manes.versions" version "0.20.0"
id "org.jetbrains.kotlin.jvm" version "1.2.51"
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "maven"
version = "${mc_version}-${enc_version}" + (System.getenv("BUILD_NUMBER") != null ? "." + System.getenv("BUILD_NUMBER") : "")
def mod_version = version
group= "exnihilocreatio" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "exnihilocreatio"
sourceCompatibility=1.8
targetCompatibility=1.8
minecraft {
version = "${mc_version}-${forge_version}"
runDir = "run"
mappings = "${mappings_version}"
useDepAts = true
replace "@VERSION@", "$mod_version"
replaceIn "ExNihiloCreatio.java"
}
repositories
{
maven {
name = "CurseForge"
url = "https://minecraft.curseforge.com/api/maven/"
}
maven {
name 'Darkhax'
url 'https://maven.mcmoddev.com/'
}
// Required for JEI and Mantle
maven {
name "DVS1 Maven FS"
url "http://dvs1.progwml6.com/files/maven"
}
// Required for HWYLA
maven {
name "tehnut"
url "http://tehnut.info/maven"
}
// Required for TheOneProbe
maven {
name "tterrag"
url "http://maven.tterrag.com"
}
// Required for RedstoneFlux which is required for TheOneProbe
maven {
name = "CoFH Maven"
url = "http://maven.covers1624.net"
}
// crt
maven {
url "http://maven.blamejared.com"
}
// for code chicken libs
maven {
url "http://chickenbones.net/maven/"
}
// for forgelin
maven {
url "http://maven.shadowfacts.net/"
}
}
dependencies
{
compileOnly "mezz.jei:jei_${mc_version}:${jei_version}:api"
runtime "mezz.jei:jei_${mc_version}:${jei_version}"
deobfCompile "slimeknights.mantle:Mantle:${mc_major}-${mantle_version}"
deobfCompile "slimeknights:TConstruct:${mc_version}-${tconstruct_version}"
compileOnly "mcp.mobius.waila:Hwyla:${hwyla_version}_${mc_version}:api"
runtime "mcp.mobius.waila:Hwyla:${hwyla_version}_${mc_version}"
compileOnly ("mcjty.theoneprobe:TheOneProbe-${mc_major}:${mc_major}-${top_version}:api") {
exclude group: "cofh", module: "RedstoneFlux"
}
runtime ("mcjty.theoneprobe:TheOneProbe-${mc_major}:${mc_major}-${top_version}") {
exclude group: "cofh", module: "RedstoneFlux"
}
deobfCompile ("CraftTweaker2:CraftTweaker2-MC1120-Main:${mc_major}-${ct2_version}")
compileOnly "org.projectlombok:lombok:1.18.0"
// Magneticraft Compat
compileOnly "magneticraft:Magneticraft_${mc_major}:${magneticraft_version}:dev"
// Fluid Cows and Clones
compileOnly "fluid-cows:FluidCows:${fluidcows_version}"
compileOnly "moo-fluids:MooFluids:${mc_version}:${moofluids_version}"
// Forestry
compileOnly("forestry:forestry_${mc_version}:${forestry_version}")
compile group: "net.shadowfacts", name: "Forgelin", version: "${forgelin_version}"
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
}
processResources
{
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include "mcmod.info"
// replace version and mcversion
expand "version":project.version, "mcversion":project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude "mcmod.info"
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
jar {
from(sourceSets.api.output)
manifest {
attributes 'FMLAT': 'exnihilocreatio_at.cfg'
}
}
// Create deobf dev jars
task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
}
artifacts {
archives deobfJar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + System.getenv("local_maven"))
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}