Skip to content

Commit 11ccd36

Browse files
committed
Fix GSP boot jar packaging. Fixes #11251
1 parent b053c52 commit 11ccd36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

grails-gradle-plugin/src/main/groovy/org/grails/gradle/plugin/web/gsp/GroovyPagePlugin.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,11 @@ class GroovyPagePlugin implements Plugin<Project> {
7272
war.classpath = war.classpath + project.files(destDir)
7373
}
7474
allTasks.withType(Jar) { Jar jar ->
75-
if(!(jar instanceof War) && (jar.name == 'jar' || jar.name == 'bootJar')) {
75+
if(!(jar instanceof War) && (jar.name == 'bootJar')) {
7676
jar.dependsOn compileGroovyPages
77-
jar.from destDir
77+
jar.from(destDir) {
78+
into("BOOT-INF/classes")
79+
}
7880
}
7981
}
8082
}

0 commit comments

Comments
 (0)