File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,31 @@ repositories {
3737group = ' io.engagingspaces'
3838version = ' 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
4260dependencies {
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 "
You can’t perform that action at this time.
0 commit comments