aboutsummaryrefslogtreecommitdiffstats
path: root/gradle/github.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'gradle/github.gradle')
-rw-r--r--gradle/github.gradle11
1 files changed, 8 insertions, 3 deletions
diff --git a/gradle/github.gradle b/gradle/github.gradle
index 64a8fee..4a6f935 100644
--- a/gradle/github.gradle
+++ b/gradle/github.gradle
@@ -8,9 +8,14 @@ def docTasks = [:]
def docTask = task "aggregate${shortName.capitalize()}"(type: docClass, description: "Aggregate subproject ${shortName}s") {
source = allSources
destinationDir = file("${project.buildDir}/docs/${shortName}")
- options.links "http://docs.oracle.com/javase/7/docs/api/",
- "http://docs.oracle.com/javaee/7/api/",
- "http://docs.guava-libraries.googlecode.com/git/javadoc/"
+ if (delegate.hasProperty('options')) { // Groovydoc has no options
+ options.links "http://docs.oracle.com/javase/7/docs/api/",
+ "http://docs.oracle.com/javaee/7/api/",
+ "http://docs.guava-libraries.googlecode.com/git/javadoc/"
+ options.linkSource true
+ if (JavaVersion.current().isJava8Compatible())
+ options.addStringOption('Xdoclint:none', '-quiet')
+ }
doFirst {
def classpaths = allprojects.findAll { it.plugins.hasPlugin(JavaPlugin) }.collect { it.sourceSets.main.compileClasspath }
classpath = files(classpaths)