Skip to content

Commit

Permalink
Fix static compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskleeh committed Aug 26, 2017
1 parent cd5210e commit e56d13f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package grails.views.gradle

import grails.util.GrailsNameUtils
import groovy.transform.CompileDynamic
import groovy.transform.CompileStatic
import org.apache.tools.ant.taskdefs.condition.Os
import org.gradle.api.Plugin
Expand Down Expand Up @@ -97,7 +98,8 @@ class AbstractGroovyTemplatePlugin implements Plugin<Project> {
}
}

protected FileCollection resolveClassesDirs(SourceSetOutput output, Project project) {
@CompileDynamic
protected FileCollection resolveClassesDirs(Object output, Project project) {
FileCollection classesDirs
try {
classesDirs = output?.classesDirs ?: project.files(new File(project.buildDir, "classes/main"))
Expand Down

0 comments on commit e56d13f

Please sign in to comment.