Skip to content

Commit

Permalink
Fix groovydoc task configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Mar 18, 2022
1 parent a8db17d commit ef56db8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ repositories {
maven { url "https://repo.grails.org/grails/core" }
}

configurations {
documentation
}

dependencies {
compileOnly 'javax.servlet:javax.servlet-api:4.0.1'
compileOnly 'org.grails:grails-dependencies'
Expand All @@ -43,6 +47,8 @@ dependencies {
testImplementation "cglib:cglib-nodep:2.2.2"
testImplementation "org.grails:grails-gorm-testing-support"
testImplementation "org.grails:grails-web-testing-support"

documentation "com.github.javaparser:javaparser-core:3.15.14"
}

grailsPublish {
Expand Down Expand Up @@ -111,4 +117,8 @@ tasks.register("docs") {
doLast {
new File(buildDir, 'docs/ghpages.html') << file('src/docs/index.tmpl').text.replaceAll('@VERSION@', project.version)
}
}

configure([groovydoc]) {
classpath += configurations.documentation
}

0 comments on commit ef56db8

Please sign in to comment.