forked from GTNewHorizons/Hardcore-Ender-Expansion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (63 loc) · 1.66 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
import groovy.json.JsonSlurper
buildscript {
repositories {
mavenCentral()
maven {
name = "gt"
url = "https://gregtech.overminddl1.com/"
}
maven {
name = "jitpack"
url = "https://jitpack.io"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
//Defaults to Java 8 & UTF-8 encoding
classpath ("com.github.GTNH2:ForgeGradle:FG_1.2-SNAPSHOT")
}
}
apply plugin: 'forge'
version = ""
group = "chylex.hee.HardcoreEnderExpansion"
sourceCompatibility = 1.8
targetCompatibility = 1.8
minecraft {
version = "1.7.10-10.13.4.1614-1.7.10"
runDir = "run"
}
repositories {
maven {
name = "chickenbones"
url = "http://chickenbones.net/maven/"
}
}
dependencies {
compile "codechicken:CodeChickenLib:1.7.10-1.1.3.140:dev"
compile "codechicken:CodeChickenCore:1.7.10-1.0.7.47:dev"
compile "codechicken:NotEnoughItems:1.7.10-1.0.5.120:dev"
}
task createResourcePack(type: Zip){
from "music"
archiveName "HEE Music v1.0.zip"
destinationDir = file("build/libs")
}
String modid = ""
String modver = ""
processResources{
File info = new File(sourceSets.main.resources.srcDirs.iterator().next(), "mcmod.info")
def slurp = new JsonSlurper()
def data = slurp.parseText(info.getText())[0]
modid = data.modid
modver = data.version
}
jar {
archiveName = modid+" MC-"+project.minecraft.version+" v"+modver+".jar"
manifest {
//attributes 'FMLAT': 'hee_at.cfg'
}
}
tasks.build.dependsOn createResourcePack