You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
Groovy
38 lines
1.2 KiB
Groovy
plugins {
|
|
id "java"
|
|
id "org.springframework.boot.conventions"
|
|
}
|
|
|
|
description = "Spring Boot Jetty 10 smoke test"
|
|
|
|
dependencies {
|
|
implementation(enforcedPlatform("org.eclipse.jetty:jetty-bom:10.0.5"))
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-jetty")) {
|
|
exclude group: "org.eclipse.jetty.websocket", module: "websocket-server"
|
|
exclude group: "org.eclipse.jetty.websocket", module: "javax-websocket-server-impl"
|
|
}
|
|
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-web")) {
|
|
exclude module: "spring-boot-starter-tomcat"
|
|
}
|
|
|
|
runtimeOnly("org.eclipse.jetty:jetty-alpn-java-server")
|
|
runtimeOnly("org.eclipse.jetty.http2:http2-server")
|
|
|
|
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
|
|
testImplementation("org.eclipse.jetty:jetty-client")
|
|
testImplementation("org.eclipse.jetty.http2:http2-client")
|
|
testImplementation("org.eclipse.jetty.http2:http2-http-client-transport")
|
|
}
|
|
|
|
def buildingWithJava11OrLater() {
|
|
return project.hasProperty("toolchainVersion") || JavaVersion.current().java11Compatible
|
|
}
|
|
|
|
compileTestJava {
|
|
enabled = buildingWithJava11OrLater()
|
|
}
|
|
|
|
test {
|
|
enabled = buildingWithJava11OrLater()
|
|
}
|