Skip to content

Commit

Permalink
added javadoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankammermann committed May 15, 2016
1 parent f167fda commit be4b84a
Showing 1 changed file with 23 additions and 4 deletions.
27 changes: 23 additions & 4 deletions gradle/vertx.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ sourceSets {
}
}

compileJava {
options.encoding = "UTF-8"
}

javadoc {
options.encoding = "UTF-8"
classpath = configurations.compile + configurations.provided
}

task copyMod( type:Copy, dependsOn: 'classes', description: 'Assemble the module into the local mods directory' ) {
into "build/mods/$moduleName"
from compileJava
Expand All @@ -138,12 +147,22 @@ task sourceJar(type: Jar) {
from sourceSets.main.java
}

build.dependsOn sourceJar
javadoc {
classpath = configurations.compile + configurations.provided
}

artifacts {
archives sourceJar, modZip
task javadocJar(type: org.gradle.api.tasks.bundling.Jar) {
description = 'Builds a javadoc jar artifact suitable for maven deployment.'
classifier = 'javadoc'
from javadoc.destinationDir
}
javadocJar.dependsOn javadoc

build.dependsOn sourceJar, javadocJar

artifacts {
archives sourceJar, javadocJar, modZip
}

test {
dependsOn copyMod
Expand Down Expand Up @@ -222,7 +241,7 @@ def loadProperties(String sourceFileName) {
def propFile = new File(sourceFileName)
if (propFile.canRead()) {
config.load(new FileInputStream(propFile))
for (def property in config) {
for (def property in config) {
project.ext[property.key] = property.value;
}
}
Expand Down

0 comments on commit be4b84a

Please sign in to comment.