Skip to content

Commit

Permalink
Fix problem generating Groovydoc (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl authored Jun 19, 2022
1 parent 5f8902c commit 5b9379f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: gradle/gradle-build-action@v2
if: success() && github.event_name == 'push' && matrix.java == '8'
with:
arguments: apidocs
arguments: groovydoc
- name: Publish to Github Pages
if: steps.publish.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
uses: micronaut-projects/github-pages-deploy-action@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if: steps.publish.outcome == 'success'
uses: gradle/gradle-build-action@v2
with:
arguments: apidocs
arguments: groovydoc
- name: Export Gradle Properties
uses: micronaut-projects/github-actions/export-gradle-properties@master
- name: Publish to Github Pages
Expand Down
9 changes: 2 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dependencies {
documentation "org.codehaus.groovy:groovy:$groovyVersion"
documentation "org.codehaus.groovy:groovy-ant:$groovyVersion"
documentation "org.codehaus.groovy:groovy-templates:$groovyVersion"
documentation "com.github.javaparser:javaparser-core:3.15.14"
}

findMainClass.enabled = false
Expand Down Expand Up @@ -62,17 +63,11 @@ grailsPublish {
developers = [graemerocher: "Graeme Rocher", puneetbehl: "Puneet Behl"]
}


def apidocs = tasks.register("apidocs", Groovydoc) {
group = "documentation"
tasks.withType(Groovydoc) {
source project.files('src/main/groovy')

destinationDir = new File(buildDir, 'docs/api')
// Might need a classpath
docTitle = "Grails Geb Plugin ${version}"

classpath = configurations.documentation
groovyClasspath = configurations.documentation
}

tasks.withType(GroovyCompile) {
Expand Down

0 comments on commit 5b9379f

Please sign in to comment.