Make it easier to create executable and deployable war

Closes gh-46944
This commit is contained in:
Andy Wilkinson
2025-10-22 10:13:46 +01:00
parent a3ca741c56
commit 635e766aaf
24 changed files with 112 additions and 57 deletions
@@ -44,7 +44,7 @@ systemTest {
dependencies {
app project(path: ":build-plugin:spring-boot-gradle-plugin", configuration: "mavenRepository")
app project(path: ":starter:spring-boot-starter-web", configuration: "mavenRepository")
app project(path: ":starter:spring-boot-starter-webmvc", configuration: "mavenRepository")
implementation(project(":starter:spring-boot-starter-webmvc")) {
exclude group: "org.hibernate.validator"
@@ -37,7 +37,7 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
bootJar {
@@ -41,7 +41,7 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
bootJar {
@@ -37,8 +37,8 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
providedRuntime("org.springframework.boot:spring-boot-tomcat-runtime:{bootVersion}")
}
bootWar {
@@ -42,7 +42,7 @@ tasks.named("bootBuildImage") {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
bootJar {
@@ -37,7 +37,7 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
bootJar {
@@ -37,7 +37,7 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
war {
@@ -36,7 +36,7 @@ repositories {
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web:{bootVersion}")
implementation("org.springframework.boot:spring-boot-starter-webmvc:{bootVersion}")
}
bootJar {