Merge branch '2.3.x' into 2.4.x
Closes gh-24710
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{version}'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "file:repository" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.example:library:1.0-SNAPSHOT")
|
||||
implementation("org.apache.commons:commons-lang3:3.9")
|
||||
}
|
||||
|
||||
task explode(type: Sync) {
|
||||
dependsOn(bootJar)
|
||||
destinationDir = file("$buildDir/exploded")
|
||||
from zipTree(files(bootJar).singleFile)
|
||||
}
|
||||
|
||||
task launch(type: JavaExec) {
|
||||
classpath = files(explode)
|
||||
main = 'org.springframework.boot.loader.JarLauncher'
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '{version}'
|
||||
}
|
||||
|
||||
task launch(type: JavaExec) {
|
||||
classpath = files(bootJar)
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "file:repository" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.example:library:1.0-SNAPSHOT")
|
||||
implementation("org.apache.commons:commons-lang3:3.9")
|
||||
}
|
||||
@@ -3,4 +3,4 @@ plugins {
|
||||
id 'org.springframework.boot' version '{version}'
|
||||
}
|
||||
|
||||
mainClassName = 'com.example.main.CustomMainClass'
|
||||
mainClassName = 'com.example.bootrun.main.CustomMainClass'
|
||||
|
||||
@@ -4,5 +4,5 @@ plugins {
|
||||
}
|
||||
|
||||
springBoot {
|
||||
mainClass = 'com.example.main.CustomMainClass'
|
||||
mainClass = 'com.example.bootrun.main.CustomMainClass'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user