-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
76 lines (62 loc) · 1.92 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
buildscript {
repositories {
jcenter()
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
tasks.withType(JavaCompile) {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}
version = "1.3.5.1"
group = "nightkosh.gravestone_extended"
archivesBaseName = "GraveStone-1.12.2-Extended"
minecraft {
version = "1.12.2-14.23.4.2749"
runDir = "idea"
mappings = "snapshot_20171003"
}
ext.apiSophisticatedWolves = "./api/sophisticated_wolves"
ext.apiThaumcraft = "./api/thaumcraft"
sourceSets {
api {
java {
srcDir project.apiSophisticatedWolves
srcDir project.apiThaumcraft
}
}
}
dependencies {
// compile fileTree(include: ['*.jar'], dir: 'external_libs')
compile files("external_libs/GraveStone-1.12.2-Graves-1.3.1.jar")
compile files("external_libs/Advanced-Fishing-1.12.2-1.3.2.jar")
compile files("external_libs/forestry_1.12.2-5.7.0.218.jar")
}
jar {
exclude('**/*.db')
exclude('**/*.psd')
exclude('assets/gravestone-extended/techne_models/**')
exclude('assets/gravestone-extended/obj_models/**')
manifest {
attributes 'FMLAT': 'Gravestone_mod_Extended_at.cfg'
}
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version': project.version, 'mcversion': project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}