-
Notifications
You must be signed in to change notification settings - Fork 32
/
build.gradle
129 lines (101 loc) · 3.72 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import org.gradle.api.artifacts.*
apply plugin: 'base' // To add "clean" task to the root project.
apply from: 'configuration.gradle'
subprojects {
apply from: rootProject.file('common.gradle')
}
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
gradleVersion = '2.6'
}
subprojects.each { subproject -> evaluationDependsOn( subproject.path ) }
task setupDecompWorkspaceAll(dependsOn: projects1710.collect { ':' + it + ":setupDecompWorkspace" } + projects18.collect { ':' + it + ':setupDecompWorkspace'}) {}
task assembleMC1710(type: Jar, dependsOn: [\
':ZenScript:build',
':MineTweaker3-API:build']
+ projects1710.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-1.7.10-${mineTweakerVersion}.jar"
from zipTree(project(":ZenScript").jar.archivePath)
from zipTree(project(':MineTweaker3-API').jar.archivePath)
for (p in projects1710) {
from zipTree(project(p).jar.archivePath)
}
}
task assembleMC18(type: Jar, dependsOn: [\
':ZenScript:build',
':MineTweaker3-API:build']
+ projects18.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-1.8-${mineTweakerVersion}.jar"
from zipTree(project(":ZenScript").jar.archivePath)
from zipTree(project(':MineTweaker3-API').jar.archivePath)
for (p in projects18) {
from zipTree(project(p).jar.archivePath)
}
}
task assembleDevBase1710(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build',
':MineTweaker3-MC1710-Main:build']) {
archiveName="MineTweaker3-Dev-1.7.10-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
from project(':MineTweaker3-MC1710-Main').sourceSets.main.output
}
task assembleDevBase18(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build',
':MineTweaker3-MC18-Main:build']) {
archiveName="MineTweaker3-Dev-1.8-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
from project(':MineTweaker3-MC18-Main').sourceSets.main.output
}
task assembleDevFull1710(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build']
+ projects1710.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-Dev-Full-1.7.10-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
for (p in projects1710) {
from project(p).sourceSets.main.output
}
}
task assembleDevFull18(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build']
+ projects18.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-Dev-Full-1.8-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
for (p in projects18) {
from project(p).sourceSets.main.output
}
}
task assembleAll(dependsOn: [
assembleMC1710,
assembleMC18,
assembleDevBase1710,
assembleDevBase18,
assembleDevFull1710,
assembleDevFull18]) {
}
task zendoc1710(type: Javadoc) {
source = files([
'MineTweaker3-API/src/main/java',
'MineTweaker3-MC1710-Main/src/main/java']
+ projects1710.collect { it + '/src/main/java' })
destinationDir = file("build/zendoc1710")
options.docletpath = [file('buildSrc/build/libs/buildSrc.jar')].asList()
options.doclet = 'stanhebben.zenscript.docs.ZenScriptDoclet'
def classpathList = [
project(":ZenScript").jar.archivePath,
project(':MineTweaker3-MC1710-Main').jar.archivePath
]
for (p in projects1710) {
for (file in project(':' + p).configurations.compile) {
classpathList += file
}
}
options.classpath = classpathList.asList()
options.addStringOption("baseurl", "/doc/mc1710/")
}