-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
executable file
·56 lines (53 loc) · 1.8 KB
/
build.gradle
File metadata and controls
executable file
·56 lines (53 loc) · 1.8 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
import java.text.SimpleDateFormat
apply plugin: 'java'
task wrapper(type: Wrapper) {
gradleVersion = '2.1'
}
//http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.bundling.Zip.html#org.gradle.api.tasks.bundling.Zip
task buildWorkspace(type: Zip, dependsOn: [':Comlib:makeArchive', ':Comlib-ADK:makeArchive']) {
Calendar calendar = Calendar.getInstance()
SimpleDateFormat sdf = new SimpleDateFormat('yyyyMMdd')
String date = sdf.format(calendar.getTime())
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
destinationDir = new File(projectDir, 'archive')
String buildName = 'comlib-adk-workspace-' + date
archiveName = buildName + '.zip'
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
into(buildName) {
into('workspace') {
//gradle
from 'gradlew'
from 'gradlew.bat'
into('gradle') {
from 'gradle'
}
//workspace
from 'basefile/build.gradle'
//library
into('library') {
from 'library'
into('rescue/util') {
from 'Comlib-ADK/build/libs'
from 'Comlib/build/libs'
}
}
//src
into('src') {
into('java') {
into('sample') {
from 'basefile/sample'
}
}
}
//tactics
into('tactics') {
from 'basefile/.gitkeep'
}
//config
into('config') {
from 'basefile/adk.cfg'
}
}
from 'LICENSE'
}
}