forked from CraftTweaker/CraftTweaker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (77 loc) · 2.79 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
apply plugin: 'base' // To add "clean" task to the root project.
apply from: 'configuration.gradle'
subprojects {
apply from: rootProject.file('common.gradle')
}
repositories {
mavenLocal()
mavenCentral()
}
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
gradleVersion = '2.6'
}
//Shuts up javadoc failures
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}
subprojects.each { subproject -> evaluationDependsOn(subproject.path) }
task setupDecompWorkspaceAll(dependsOn: projects1120.collect { ':' + it + ':setupDecompWorkspace' }) {}
task setupCIWorkspaceAll(dependsOn: projects1120.collect { ':' + it + ':setupCIWorkspace' }) {}
task assembleMC1120(type: Jar, dependsOn: [\
':ZenScript:build',
':CraftTweaker2-API:build']
+ projects1120.collect { ':' + it + ":build" }) {
archiveName = "CraftTweaker2-1.12-${craftTweakerVersion}.jar"
from zipTree(project(":ZenScript").jar.archivePath)
from zipTree(project(':CraftTweaker2-API').jar.archivePath)
manifest {
attributes 'FMLAT': 'crafttweaker_at.cfg'
}
for (p in projects1120) {
from zipTree(project(p).jar.archivePath)
}
}
task assembleDevBase1120(type: Jar, dependsOn: [
':ZenScript:build',
':CraftTweaker2-API:build',
':CraftTweaker2-MC1120-Main:build']) {
archiveName = "CraftTweaker2-Dev-1.12-${craftTweakerVersion}.jar"
manifest {
attributes 'FMLAT': 'crafttweaker_at.cfg'
}
from project(':ZenScript').sourceSets.main.output
from project(':CraftTweaker2-API').sourceSets.main.output
from project(':CraftTweaker2-MC1120-Main').sourceSets.main.output
}
task assembleDevFull1120(type: Jar, dependsOn: [
':ZenScript:build',
':CraftTweaker2-API:build']
+ projects1120.collect { ':' + it + ":build" }) {
archiveName = "CraftTweaker2-Dev-Full-1.12-${craftTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':CraftTweaker2-API').sourceSets.main.output
manifest {
attributes 'FMLAT': 'crafttweaker_at.cfg'
}
for (p in projects1120) {
from project(p).sourceSets.main.output
}
}
task assembleAll(dependsOn: [
assembleMC1120,
assembleDevBase1120,
assembleDevFull1120
]) {
}
def CrtBuildGroup = "CraftTweaker Build"
def CrtSetupGroup = "CraftTweaker Setup"
setupDecompWorkspaceAll.group = CrtSetupGroup
setupCIWorkspaceAll.group = CrtSetupGroup
assembleAll.group = CrtBuildGroup
assembleMC1120.group = CrtBuildGroup
assembleDevBase1120.group = CrtBuildGroup
assembleDevFull1120.group = CrtBuildGroup