forked from gigaherz/Ender-Rift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
101 lines (82 loc) · 2.22 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
// 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-SNAPSHOT'
}
}
repositories {
maven {
url "http://maven.tterrag.com/"
}
maven {
url "http://dvs1.progwml6.com/files/maven"
}
maven {
url 'http://maven.epoxide.xyz'
}
maven {
url 'http://dogforce-games.com/maven'
}
maven {
name = "CoFH Maven"
url = "http://maven.covers1624.net"
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = "2.1.8"
group= "gigaherz.enderRift"
archivesBaseName = "EnderRift-1.12.0"
minecraft {
version = "1.12.1-14.22.0.2445"
runDir = "run"
mappings = "snapshot_20170804"
replace "@VERSION@", project.version
replaceIn "EnderRiftMod.java"
}
configurations {
// configuration that holds jars to embed inside the jar
embed
}
dependencies {
deobfCompile "gigaherz.commons:Commons-1.12.0:0.6.3"
embed "gigaherz.commons:Commons-1.12.0:0.6.3"
deobfCompile "gigaherz.graph:GraphLib:1.3.1"
embed "gigaherz.graph:GraphLib:1.3.0"
deobfCompile "gigaherz.guidebook:Guidebook-1.12.0:1.7.3"
deobfCompile "mcjty.theoneprobe:TheOneProbe-1.12:1.12-1.4.15-8"
deobfCompile "net.darkhax.tesla:Tesla-1.12:1.0.61"
deobfCompile "mezz.jei:jei_1.12:4.7.4.80:api"
runtime "mezz.jei:jei_1.12:4.7.4.80"
compile fileTree(dir: 'libs', include: '*.jar')
}
jar {
into('/') {
from configurations.embed
}
manifest {
attributes("ContainedDeps": configurations.embed.collect { it.getName() }.join(' '))
}
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = 'UTF-8'
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}