-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
57 lines (49 loc) · 1.25 KB
/
Copy pathbuild.gradle
File metadata and controls
57 lines (49 loc) · 1.25 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
buildscript {
repositories {
jcenter()
maven {
url = "https://sizableshrimp.me/maven"
}
maven {
url = "http://files.minecraftforge.net/maven"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.1-SNAPSHOT'
classpath "de.undercouch:gradle-download-task:4.1.1"
}
}
apply plugin: "net.minecraftforge.gradle.forge"
apply plugin: "de.undercouch.download"
group = "de.labymod.lennart"
archivesBaseName = "TimoliaAddon"
minecraft {
version = "1.8.9-11.15.1.2318-1.8.9"
runDir = "run"
mappings = "stable_20"
}
dependencies {
compile files("${rootDir.getAbsolutePath()}/libs/lm_api_mc1.8.9.jar")
}
task updateLabymodApi() {
final out = file("${rootDir.getAbsolutePath()}/libs/lm_api_mc1.8.9.jar")
outputs.file(out)
outputs.upToDateWhen {false}
doLast {
download {
src "http://dl.labymod.net/latest/api/files/lm_api_mc1.8.9.jar"
dest out
onlyIfModified true
}
}
}
reobf {
jar {
setMappingType(net.minecraftforge.gradle.user.ReobfMappingType.NOTCH)
}
}
compileJava {
dependsOn updateLabymodApi
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}