Skip to content

Commit e926b27

Browse files
committed
adjusts
1 parent 4d023bd commit e926b27

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

generators/spring-boot/templates/gradle/war.gradle.ejs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,18 @@
1919
apply plugin: "war"
2020

2121
bootWar {
22-
mainClass = "<%= packageName %>.<%= mainClass %>"
23-
includes = ["WEB-INF/**", "META-INF/**"]
2422
<%_ if (!skipClient) { _%>
25-
webXml = file("${project.rootDir}/<%= locals.clientSrcDir %>WEB-INF/web.xml")
23+
webAppDirectory = file("<%= locals.clientDistDir %>")
2624
<%_ } _%>
25+
mainClass = "<%= packageName %>.<%= mainClass %>"
26+
includes = ["WEB-INF/**", "META-INF/**"]
2727
}
2828

2929
war {
3030
<%_ if (!skipClient) { _%>
3131
webAppDirectory = file("<%= locals.clientDistDir %>")
32-
webXml = file("${project.rootDir}/<%= locals.clientSrcDir %>WEB-INF/web.xml")
3332
<%_ } _%>
3433
enabled = true
3534
archiveExtension = "war.original"
3635
includes = ["WEB-INF/**", "META-INF/**"]
37-
3836
}

0 commit comments

Comments
 (0)