mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Polish
This commit is contained in:
parent
e3036dcb99
commit
780f75d5a2
@ -12,13 +12,13 @@ apply plugin: "io.spring.dependency-management"
|
||||
repositories {
|
||||
maven { url "file:${rootDir}/../test-repository"}
|
||||
mavenCentral()
|
||||
maven {
|
||||
maven {
|
||||
url "https://repo.spring.io/milestone"
|
||||
content {
|
||||
excludeGroup "org.springframework.boot"
|
||||
}
|
||||
}
|
||||
maven {
|
||||
maven {
|
||||
url "https://repo.spring.io/snapshot"
|
||||
content {
|
||||
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")
|
||||
from(nested) {
|
||||
into "META-INF/resources/"
|
||||
@ -76,7 +76,7 @@ def boolean isWindows() {
|
||||
}
|
||||
|
||||
["jetty", "tomcat", "undertow"].each { webServer ->
|
||||
def configurer = { task ->
|
||||
def configurer = { task ->
|
||||
task.dependsOn resourcesJar
|
||||
task.mainClass = "com.example.ResourceHandlingApplication"
|
||||
task.classpath = configurations.getByName(webServer)
|
||||
|
Loading…
Reference in New Issue
Block a user