Skip to content

Commit

Permalink
change source folder order, fixes problem with earlier GrailsGradlePl…
Browse files Browse the repository at this point in the history
…ugin refactoring

- in grails3-functional-tests, the plugins/loadfirst/build/classes/main/META-INF/grails-plugin.xml file doesn't contain the grails resources when the source folder order is different
  • Loading branch information
lhotari committed Mar 10, 2015
1 parent 0af7394 commit c200b8f
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -133,12 +133,13 @@ class GrailsGradlePlugin extends GroovyPlugin {

@CompileStatic
protected List<File> resolveGrailsSourceDirs(Project project) {
List<File> grailsSourceDirs = [project.file("src/main/groovy")]
List<File> grailsSourceDirs = []
project.file("grails-app").eachDir { File subdir ->
if (isGrailsSourceDirectory(subdir)) {
grailsSourceDirs << subdir
}
}
grailsSourceDirs.add(project.file("src/main/groovy"))
grailsSourceDirs
}

Expand Down

0 comments on commit c200b8f

Please sign in to comment.