mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-22 17:35:22 +00:00
transitive = false maps to a wildcard exclusion in the published pom. Unfortunately, this causes problems with Maven as any dependency on one of the transitive = false modules then has all of its dependencies excluded, even when it appears elsewhere in the dependency graph without any exclusions. Gradle is not affected as it requires an exclusion to be declared on every route to a dependency for it to be effective. Maven is affected as it requires the exclusion to be present on only one route.
59 lines
1.9 KiB
Groovy
59 lines
1.9 KiB
Groovy
/*
|
|
* Copyright 2012-present the original author or authors.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the License);
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* https://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
plugins {
|
|
id "war"
|
|
id "org.springframework.boot.system-test"
|
|
}
|
|
|
|
description = "Spring Boot Deployment Tests"
|
|
|
|
configurations {
|
|
providedRuntime {
|
|
extendsFrom dependencyManagement
|
|
}
|
|
}
|
|
|
|
configurations.all {
|
|
exclude module: "spring-boot-starter-logging"
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("jakarta.servlet:jakarta.servlet-api")
|
|
|
|
implementation(project(":starter:spring-boot-starter-webmvc")) {
|
|
exclude group: "org.hibernate.validator"
|
|
exclude group: "org.springframework.boot", module: "spring-boot-starter-tomcat"
|
|
}
|
|
implementation(project(":starter:spring-boot-starter-actuator"))
|
|
|
|
systemTestImplementation(enforcedPlatform(project(path: ":platform:spring-boot-internal-dependencies")))
|
|
systemTestImplementation(project(":starter:spring-boot-starter-restclient"))
|
|
systemTestImplementation(project(":starter:spring-boot-starter-test"))
|
|
systemTestImplementation(project(":test-support:spring-boot-test-support"))
|
|
systemTestImplementation("org.apache.httpcomponents.client5:httpclient5")
|
|
systemTestImplementation("org.testcontainers:junit-jupiter")
|
|
systemTestImplementation("org.testcontainers:testcontainers")
|
|
systemTestImplementation("org.springframework:spring-web")
|
|
}
|
|
|
|
systemTest {
|
|
inputs.files(war).withNormalizer(ClasspathNormalizer).withPropertyName("war")
|
|
}
|
|
|
|
war {
|
|
archiveVersion = ''
|
|
} |