pull/37640/head
Phillip Webb 1 year ago
parent e3036dcb99
commit 780f75d5a2

@ -12,13 +12,13 @@ apply plugin: "io.spring.dependency-management"
repositories { repositories {
maven { url "file:${rootDir}/../test-repository"} maven { url "file:${rootDir}/../test-repository"}
mavenCentral() mavenCentral()
maven { maven {
url "https://repo.spring.io/milestone" url "https://repo.spring.io/milestone"
content { content {
excludeGroup "org.springframework.boot" excludeGroup "org.springframework.boot"
} }
} }
maven { maven {
url "https://repo.spring.io/snapshot" url "https://repo.spring.io/snapshot"
content { content {
excludeGroup "org.springframework.boot" excludeGroup "org.springframework.boot"
@ -41,7 +41,7 @@ configurations {
} }
} }
tasks.register("resourcesJar", Jar) { jar -> tasks.register("resourcesJar", Jar) { jar ->
def nested = project.resources.text.fromString("nested") def nested = project.resources.text.fromString("nested")
from(nested) { from(nested) {
into "META-INF/resources/" into "META-INF/resources/"
@ -76,7 +76,7 @@ def boolean isWindows() {
} }
["jetty", "tomcat", "undertow"].each { webServer -> ["jetty", "tomcat", "undertow"].each { webServer ->
def configurer = { task -> def configurer = { task ->
task.dependsOn resourcesJar task.dependsOn resourcesJar
task.mainClass = "com.example.ResourceHandlingApplication" task.mainClass = "com.example.ResourceHandlingApplication"
task.classpath = configurations.getByName(webServer) task.classpath = configurations.getByName(webServer)

Loading…
Cancel
Save