Skip to content

Commit

Permalink
Build improvements
Browse files Browse the repository at this point in the history
Remove commented code.
Append to the task groovydoc classpath instead of replacing it.
  • Loading branch information
puneetbehl committed Jun 17, 2020
1 parent fcc504b commit 957f5f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ subprojects { project ->

apply plugin: 'java-library'
apply plugin: 'groovy'
// apply plugin: "io.github.groovylang.groovydoc"
if(!isTestSuite) {
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'maven-publish'
Expand Down Expand Up @@ -431,7 +430,6 @@ subprojects { project ->
!isTestSuite
})
classpath += configurations.documentation
// jvmArgs "-Xmx512M"
}

configure([javadoc]) {
Expand Down
5 changes: 2 additions & 3 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,12 @@ tasks.withType(Groovydoc) {
// http://www.adam-bien.com/roller/abien/entry/trouble_with_crippled_java_ee
groovydocClasspath -= groovydocClasspath.filter { it.name == 'javaee-web-api-6.0.jar' }

classpath = groovydocClasspath
groovyClasspath = groovydocClasspath
classpath += groovydocClasspath
groovyClasspath += groovydocClasspath
destinationDir = file("$docs.destinationDir/api")
windowTitle = "Grails $grailsVersion"
docTitle = "Grails $grailsVersion"
source subs.sourceSets.main.groovy.srcDirs
jvmArgs "-Xmx768M"
// Can't make these link methods to work
// link("http://static.springsource.org/spring/docs/3.0.x/javadoc-api", "org.springframework.")
// link("http://download.oracle.com/javase/1.5.0/docs/api", "java." , "javax.")
Expand Down

0 comments on commit 957f5f1

Please sign in to comment.