-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
64 lines (56 loc) · 2.03 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
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '4.1.+', changing: true
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'idea'
version = minecraft_version + '-' + mod_version
group = mod_group
archivesBaseName = mod_name
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: mappings_channel, version: mappings_version
accessTransformer = file('/src/main/resources/META-INF/accesstransformer.cfg')
}
tasks.withType(Jar) {
def out = file("../_JARS")
doFirst {
for (def file : out.listFiles()) {
delete(file)
}
}
destinationDir = out
}
repositories {
maven { url = "http://dvs1.progwml6.com/files/maven" } //JEI
maven { url = "https://maven.theillusivec4.top" } //Curios
maven { url 'https://maven.latmod.com/' }
maven { url "https://maven.blamejared.com" } // Botania
}
dependencies {
minecraft 'net.minecraftforge:forge:' + minecraft_version + '-' + forge_version
compileOnly fg.deobf("mezz.jei:jei-${jei_version}:api")
runtimeOnly fg.deobf("mezz.jei:jei-${jei_version}")
compile fg.deobf("top.theillusivec4.curios:curios-forge:${curios_version}")
compileOnly fg.deobf("vazkii.botania:Botania:${botania_version}:api")
}
jar {
manifest {
attributes([
'FMLAT' : 'accesstransformer.cfg',
"Specification-Title" : mod_name,
"Specification-Vendor" : mod_group,
"Specification-Version" : mod_version,
"Implementation-Title" : project.name,
"Implementation-Version" : mod_version,
"Implementation-Vendor" : mod_group,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
],)
}
}