forked from spring-attic/spring-cloud-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
34 lines (26 loc) · 988 Bytes
/
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
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jruby-gradle:jruby-gradle-plugin:1.3.3'
}
}
apply plugin: "com.github.jruby-gradle.base"
import com.github.jrubygradle.JRubyExec
dependencies {
jrubyExec "rubygems:asciidoctor:1.5.4"
}
task generateMainReadme(type: JRubyExec) {
script "${projectDir}/tools/coalesce-readme.rb"
scriptArgs "-i ${projectDir}/docs/README.adoc", "-o ${projectDir}/README.adoc"
}
task generateConcourseReadme(type: JRubyExec) {
script "${projectDir}/tools/coalesce-readme.rb"
scriptArgs "-i ${projectDir}/docs/CONCOURSE.adoc", "-o ${projectDir}/concourse/README.adoc"
}
task generateIndex(type: JRubyExec, dependsOn: ["generateMainReadme", "generateJenkinsReadme", "generateConcourseReadme"]) {
script "${projectDir}/tools/generate-index.rb"
scriptArgs "${projectDir}/docs/spring-cloud-pipelines.adoc"
}
task generateReadme(dependsOn: ["generateIndex"]) {
description = "Creates documentation for the project"
}