Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jgambarios authored May 4, 2017
1 parent 3e4a15d commit 7909e0c
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions dotCMS/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -408,29 +408,33 @@ removeDistFolder.description='Removes the distribution folder.'

removeDistFolder.mustRunAfter 'zip', 'tgzTask'

/** If you want to create the javadoc, please run ./gradlew generateJavadocs */
javadoc {
title = "dotCMS API"
maxMemory = "1024m"
classpath = sourceSets.main.compileClasspath
source = sourceSets.main.allJava
include "com.dotmarketing.*"
include "com.dotcms.*"

options.addStringOption('sourcepath', sourceSets.main.allJava.asPath)
//doclint html standards in Java 8 are very strict that's why is better to turn in off
options.addBooleanOption('Xdoclint:none', true)

/*
Not working, gradle bug
https://groups.google.com/forum/#!topic/gradle-dev/R83dy_6PHMc/discussion
https://discuss.gradle.org/t/javadoc-exclusion-question/11875
*/
options.addStringOption('subpackages', 'com.dotmarketing:com.dotcms')

title = "dotCMS API"
maxMemory = "1024m"
failOnError = false
options.noQualifiers 'all'
options.author(true)
options.version(true)
options.use(true)
options.encoding 'utf-8'
options.docEncoding 'utf-8'
options.charSet 'utf-8'
options.linkSource true
options.linkSource false
options.links 'https://docs.oracle.com/javase/8/docs/api/'
}

task generateJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
}

//Task meant to be use from a distribution structure using the buildwar.sh script.
//This task will just use the already deployed folder inside the app server and compressed to a war file.
task customDistWar(type: War) {
Expand Down

0 comments on commit 7909e0c

Please sign in to comment.