-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (50 loc) · 1.46 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:0.4.0'
classpath 'org.ysb33r.gradle:vfs-gradle-plugin:1.0-beta3'
classpath 'commons-httpclient:commons-httpclient:3.1'
classpath 'org.ajoberstar:gradle-git:1.1.0'
classpath 'io.ratpack:ratpack-groovy:1.2.0'
}
}
apply plugin:'base'
apply plugin: 'com.github.jruby-gradle.base'
apply plugin: 'org.ysb33r.vfs'
apply plugin: 'org.asciidoctor.convert'
dependencies {
gems 'rubygems:slim:2.1.0'
gems 'rubygems:thread_safe:0.3.4'
}
task allAsciidoctor {
subprojects{ sub ->
pluginManager.withPlugin("org.asciidoctor.convert"){
dependsOn sub.tasks.asciidoctor
}
}
}
task pages(type:Copy) {
into "gh-pages"
dependsOn tasks.asciidoctor
from "build/asciidoctor/html5"
subprojects{ sub ->
pluginManager.withPlugin("org.asciidoctor.convert"){
from(sub.tasks.asciidoctor){
into sub.name
}
}
}
}
asciidoctorj.noDefaultRepositories = true
asciidoctor {
backends = ['html5'] // 'pdf' can be produced too
outputDir = file("build/asciidoctor")
attributes = ['source-highlighter': 'coderay', toc: '', toclevels: 3, idprefix: '', idseparator: '-', imagesdir:"../img"]
}
clean {
delete "gh-pages"
}