-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
106 lines (85 loc) · 2.17 KB
/
build.gradle
File metadata and controls
106 lines (85 loc) · 2.17 KB
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
buildscript {
repositories {
jcenter()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
maven {
url "http://dvs1.progwml6.com/files/maven"
}
}
sourceSets.main{
java{
srcDirs = ['src/main/java']
}
resources{
srcDirs = ['src/main/resources']
}
}
ext.configFile = file "build.properties"
configFile.withReader {
def prop = new Properties()
prop.load(it)
project.ext.config = new ConfigSlurper().parse prop
}
version = config.mod_version
group= "me.superckl.jet"
archivesBaseName = "JustEnoughTooltips"
minecraft {
useDepAts = true
version = config.minecraft_version + "-" + config.forge_version
mappings = "snapshot_20161205"
replaceIn "reference/ModData.java"
replace "@VERSION@", "${config.mod_version}.${System.env.BUILD_NUMBER ?: 0}"
runDir = "eclipse"
}
version = "${config.minecraft_version}-${config.mod_version}.${System.getenv("BUILD_NUMBER") ?: 0}"
dependencies {
compile "org.projectlombok:lombok:1.16.8"
deobfCompile "mezz.jei:jei_"+config.minecraft_version+":"+config.jei_version
}
processResources
{
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand([
'mod_version': project.config.mod_version,
'minecraft_version': project.config.minecraft_version,
])
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
rename '(.+_at.cfg)', 'META-INF/$1'
}
task devJar(type: Jar, dependsOn: 'classes') {
from(sourceSets.main.output) {
include '**'
}
extension = 'jar'
classifier = 'dev'
}
artifacts {
archives devJar
}
jar {
manifest {
attributes 'ModSide': 'CLIENT'
attributes 'FMLAT': 'jet_at.cfg'
}
}