forked from docToolchain/docToolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (63 loc) · 2.32 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
/*
* This build file is part of the docToolchain
*/
plugins {
id "org.asciidoctor.convert" version "1.5.3"
id "org.aim42.htmlSanityCheck" version "1.0.0-RC-2"
id "com.github.ben-manes.versions" version "0.15.0"
}
apply plugin:'groovy'
dependencies {
testCompile(
('junit:junit:4.12'),
('org.spockframework:spock-core:1.1-groovy-2.4'),
('com.athaydes:spock-reports:1.3.2'),
('org.slf4j:slf4j-api:1.7.13'),
('org.slf4j:slf4j-simple:1.7.13'),
gradleTestKit()
)
}
if (project.name!=rootProject.name) {
// disable all tasks which are not docToolchain tasks
// this avoids for example that task 'check' runs if invoked in main project
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.group in ['docToolchain', 'Documentation']
|| task.name in ['htmlSanityCheck', 'streamingExecute', 'tasks', 'clean']) {
task.enabled = true
} else {
task.enabled = false
}
}
}
if (docDir=='.') {
throw new Exception("""
You are running docToolchain as git submodule.
That is great!
Currently, it is still configured to build its own manual.
Please configure docToolchain to point to your doc-sources.
see https://docs-as-co.de/getstarted/tutorial2 for more details.
""")
}
}
//all available docToolchain modules
//the first is mandatory
apply from: 'scripts/AsciiDocBasics.gradle'
//the following are optional
apply from: 'scripts/fixEncoding.gradle'
apply from: 'scripts/prependFilename.gradle'
apply from: 'scripts/exportEA.gradle'
apply from: 'scripts/exportPPT.gradle'
apply from: 'scripts/exportVisio.gradle'
apply from: 'scripts/exportChangelog.gradle'
apply from: 'scripts/exportContributors.gradle'
apply from: 'scripts/exportJiraIssues.gradle'
apply from: 'scripts/exportExcel.gradle'
apply from: 'scripts/exportMarkdown.gradle'
apply from: 'scripts/pandoc.gradle'
apply from: 'scripts/publishToConfluence.gradle'
apply from: 'scripts/htmlSanityCheck.gradle'
apply from: 'scripts/collectIncludes.gradle'
// let's set a defaultTask for convenience
//defaultTasks 'exportChangeLog','exportJiraIssues','asciidoctor'
defaultTasks 'exportChangeLog', 'exportContributors', 'exportMarkdown', 'generateHTML', 'generatePDF', 'htmlSanityCheck'