forked from docToolchain/docToolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.gradle
107 lines (97 loc) · 3.29 KB
/
init.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
plugins {
id "de.undercouch.download" version "4.0.2"
id "com.github.ben-manes.versions" version "0.27.0"
id "groovy"
}
println "compiling with Java ${System.getProperty("java.version")} at ${new Date().format("HH:mm:ss")}"
//tag::initExisting[]
task initExisting(
description: 'Install template configuration file and helper scripts in newDocDir',
group: 'docToolchain'
) doLast {
copy {
from "${projectDir}/template_config"
into newDocDir
}
}
//end::initExisting[]
//tag::initArc42DE[]
task initArc42DE(
description: 'Download German arc42 template from GitHub into newDocDir',
group: 'docToolchain',
dependsOn: 'initExisting'
) doLast {
download {
src 'https://github.com/arc42/arc42-template/raw/master/dist/arc42-template-DE-withhelp-asciidoc.zip'
dest new File(newDocDir, 'arc42-template-DE-withhelp-asciidoc.zip')
}
copy {
from zipTree(new File(newDocDir, 'arc42-template-DE-withhelp-asciidoc.zip'))
into newDocDir
}
delete {
delete new File(newDocDir, 'arc42-template-DE-withhelp-asciidoc.zip')
}
logger.info "arc42 template unpacked into ${newDocDir}"
}
//end::initArc42DE[]
//tag::initArc42EN[]
task initArc42EN(
description: 'Download English arc42 template from GitHub into newDocDir',
group: 'docToolchain',
dependsOn: 'initExisting'
) doLast {
download {
src 'https://github.com/arc42/arc42-template/raw/master/dist/arc42-template-EN-withhelp-asciidoc.zip'
dest new File(newDocDir, 'arc42-template-EN-withhelp-asciidoc.zip')
}
copy {
from zipTree(new File(newDocDir, 'arc42-template-EN-withhelp-asciidoc.zip'))
into newDocDir
}
delete {
delete new File(newDocDir, 'arc42-template-EN-withhelp-asciidoc.zip')
}
logger.info "arc42 template unpacked into ${newDocDir}"
}
//end::initArc42EN[]
//tag::initArc42ES[]
task initArc42ES(
description: 'Download Spanish arc42 template from GitHub into newDocDir',
group: 'docToolchain',
dependsOn: 'initExisting'
) doLast {
download {
src 'https://github.com/arc42/arc42-template/raw/master/dist/arc42-template-ES-withhelp-asciidoc.zip'
dest new File(newDocDir, 'arc42-template-ES-withhelp-asciidoc.zip')
}
copy {
from zipTree(new File(newDocDir, 'arc42-template-ES-withhelp-asciidoc.zip'))
into newDocDir
}
delete {
delete new File(newDocDir, 'arc42-template-ES-withhelp-asciidoc.zip')
}
logger.info "arc42 template unpacked into ${newDocDir}"
}
//end::initArc42ES[]
//tag::initArc42RU[]
task initArc42RU(
description: 'Download sussian arc42 template from GitHub into newDocDir',
group: 'docToolchain',
dependsOn: 'initExisting'
) doLast {
download {
src 'https://github.com/arc42/arc42-template/raw/master/dist/arc42-template-RU-withhelp-asciidoc.zip'
dest new File(newDocDir, 'arc42-template-RU-withhelp-asciidoc.zip')
}
copy {
from zipTree(new File(newDocDir, 'arc42-template-RU-withhelp-asciidoc.zip'))
into newDocDir
}
delete {
delete new File(newDocDir, 'arc42-template-RU-withhelp-asciidoc.zip')
}
logger.info "arc42 template unpacked into ${newDocDir}"
}
//end::initArc42RU[]