-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (33 loc) · 1.22 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
plugins {
id 'org.asciidoctor.convert' version '1.5.2'
}
apply plugin: 'java'
apply plugin: 'org.asciidoctor.convert'
version = '1.0.0-SNAPSHOT'
asciidoctor {
attributes 'build-gradle': file('build.gradle'),
'sourcedir': project.sourceSets.main.java.srcDirs[0],
'endpoint-url': 'http://binary-repositories-comparison.github.io',
'source-highlighter': 'coderay',
'imagesdir': 'images',
'icons': 'font',
'setanchors': 'true',
'idprefix': '',
'idseparator': '-',
'docinfo1': 'true',
'stylesheet': "$project.rootDir/src/styles/asciidoctor.css"
}
//In travis letting the push.sh do the copy
task copyDocs(type: Copy) {
description = 'Copy the generated html and images to root project'
from "$project.buildDir/asciidoc/html5"
into project.rootDir
doLast {
new File("$project.rootDir/Binary-Repository-Manager-Feature-Matrix.html").renameTo(new File("$project.rootDir/index.html"))
}
}
//Git push is being done by travis using push.sh
task release(dependsOn: ['asciidoctor', 'copyDocs']){
description = 'Generate asciidoc, Copy resorces to root project'
}
copyDocs.mustRunAfter asciidoctor