Skip to content

Commit 9224943

Browse files
committed
Added vertx-docgen (vert-x3/vertx-docgen#15)
1 parent 59980aa commit 9224943

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

build.gradle

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,31 @@ repositories {
3737
group = 'io.engagingspaces'
3838
version = '0.1.0'
3939

40-
sourceCompatibility = 1.8
40+
task docProcessing(type: JavaCompile, group: 'build') {
41+
source = sourceSets.main.java
42+
classpath = configurations.compile + configurations.compileOnly
43+
destinationDir = project.file('src/main/asciidoc')
44+
options.compilerArgs = [
45+
"-proc:only",
46+
"-processor", "io.vertx.docgen.JavaDocGenProcessor",
47+
"-Adocgen.output=$buildDir/asciidoc",
48+
"-Adocgen.source=$projectDir/src/main/asciidoc/index.adoc"
49+
]
50+
}
51+
52+
compileJava {
53+
sourceCompatibility = 1.8
54+
targetCompatibility = 1.8
55+
56+
dependsOn project.tasks.docProcessing
57+
options.compilerArgs = [ "-Xlint:unchecked" ]
58+
}
4159

4260
dependencies {
4361
compile "io.vertx:vertx-core:$vertxVersion"
4462

63+
compileOnly "io.vertx:vertx-docgen:$vertxVersion"
64+
4565
testCompile "junit:junit:$junitVersion"
4666
testCompile 'org.awaitility:awaitility:2.0.0'
4767
testCompile "io.vertx:vertx-unit:$vertxVersion"

0 commit comments

Comments
 (0)