Improved: Gather the javadoc options in a unique block
This is better for readability.  Additionnally we are now using single
quotes for basic strings.
@@ -58,19 +58,21 @@ List jvmArguments = project.hasProperty('jvmArgs')
ext.ofbizMainClass = 'org.apache.ofbiz.base.start.Start'
-javadoc.failOnError = true
-javadoc.options {
- encoding "UTF-8"
- charSet "UTF-8"
+javadoc {
+ failOnError = true
+ options {
+ encoding 'UTF-8'
+ charSet 'UTF-8'
// Those external Javadoc links should correspond to the actual
- // versions declared in the "dependencies" block.
+ // versions declared in the 'dependencies' block.
links(
- "https://docs.oracle.com/javase/8/docs/api",
- "https://docs.oracle.com/javaee/7/api",
- "http://docs.groovy-lang.org/docs/groovy-2.4.16/html/api",
- "https://commons.apache.org/proper/commons-cli/apidocs"
+ 'https://docs.oracle.com/javase/8/docs/api',
+ 'https://docs.oracle.com/javaee/7/api',
+ 'http://docs.groovy-lang.org/docs/groovy-2.4.16/html/api',
+ 'https://commons.apache.org/proper/commons-cli/apidocs'
)
}
+}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
