Relocate launcher classes
Create alternative launcher classes under the package `org.springframework.boot.loader.launch` and use them in favor of the previous location. This update is designed to improve compatibility with future changes in the loader. Closes gh-37667
This commit is contained in:
@@ -10,7 +10,7 @@ tasks.named("bootWar") {
|
||||
// tag::properties-launcher[]
|
||||
tasks.named("bootWar") {
|
||||
manifest {
|
||||
attributes 'Main-Class': 'org.springframework.boot.loader.PropertiesLauncher'
|
||||
attributes 'Main-Class': 'org.springframework.boot.loader.launch.PropertiesLauncher'
|
||||
}
|
||||
}
|
||||
// end::properties-launcher[]
|
||||
|
||||
@@ -12,7 +12,7 @@ tasks.named<BootWar>("bootWar") {
|
||||
// tag::properties-launcher[]
|
||||
tasks.named<BootWar>("bootWar") {
|
||||
manifest {
|
||||
attributes("Main-Class" to "org.springframework.boot.loader.PropertiesLauncher")
|
||||
attributes("Main-Class" to "org.springframework.boot.loader.launch.PropertiesLauncher")
|
||||
}
|
||||
}
|
||||
// end::properties-launcher[]
|
||||
|
||||
Reference in New Issue
Block a user