forked from stanhebben/MineTweaker3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
177 lines (141 loc) · 5.17 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
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 = '1.11'
}
subprojects.each { subproject -> evaluationDependsOn( subproject.path ) }
task setupDecompWorkspaceAll(dependsOn:
projects164.collect { ':' + it + ":setupDecompWorkspace" }
+ projects172.collect { ':' + it + ":setupDecompWorkspace" }
+ projects1710.collect { ':' + it + ":setupDecompWorkspace" }) {}
task setupDecompWorkspace17X(dependsOn:
projects172.collect { ':' + it + ":setupDecompWorkspace" }
+ projects1710.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 assembleMC172(type: Jar, dependsOn: [\
':ZenScript:build',
':MineTweaker3-API:build']
+ projects172.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-1.7.2-${mineTweakerVersion}.jar"
from zipTree(project(":ZenScript").jar.archivePath)
from zipTree(project(':MineTweaker3-API').jar.archivePath)
for (p in projects172) {
from zipTree(project(p).jar.archivePath)
}
}
task assembleMC164(type: Jar, dependsOn: [\
':ZenScript:build',
':MineTweaker3-API:build']
+ projects164.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-1.6.4-${mineTweakerVersion}.jar"
from zipTree(project(":ZenScript").jar.archivePath)
from zipTree(project(':MineTweaker3-API').jar.archivePath)
for (p in projects164) {
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 assembleDevBase172(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build',
':MineTweaker3-MC172-Main:build']) {
archiveName="MineTweaker3-Dev-1.7.2-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
from project(':MineTweaker3-MC172-Main').sourceSets.main.output
}
task assembleDevBase164(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build',
':MineTweaker3-MC164-Main:build']) {
archiveName="MineTweaker3-Dev-1.6.4-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
from project(':MineTweaker3-MC164-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 assembleDevFull172(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build']
+ projects172.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-Dev-Full-1.7.2-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
for (p in projects172) {
from project(p).sourceSets.main.output
}
}
task assembleDevFull164(type: Jar, dependsOn: [
':ZenScript:build',
':MineTweaker3-API:build']
+ projects164.collect { ':' + it + ":build" }) {
archiveName="MineTweaker3-Dev-Full-1.6.4-${mineTweakerVersion}.jar"
from project(':ZenScript').sourceSets.main.output
from project(':MineTweaker3-API').sourceSets.main.output
for (p in projects164) {
from project(p).sourceSets.main.output
}
}
task assembleAll(dependsOn: [
assembleMC164,
assembleMC172,
assembleMC1710,
assembleDevBase164,
assembleDevBase172,
assembleDevBase1710,
assembleDevFull164,
assembleDevFull172,
assembleDevFull1710]) {
}
task zendoc164(type: Javadoc) {
source = files([
'MineTweaker3-API/src/main/java',
'MineTweaker3-MC164-Main/src/main/java']
+ projects164.collect { it + '/src/main/java' })
destinationDir = file("build/zendoc164")
options.docletpath = [file('buildSrc/build/libs/buildSrc.jar')].asList()
options.doclet = 'stanhebben.zenscript.docs.ZenScriptDoclet'
def classpathList = [
project(":ZenScript").jar.archivePath,
project(':MineTweaker3-MC164-Main').jar.archivePath
]
for (p in projects164) {
for (file in project(':' + p).configurations.compile) {
classpathList += file
}
}
options.classpath = classpathList.asList()
options.addStringOption("baseurl", "/doc/mc164/")
}