Merge branch '2.3.x' into 2.4.x

Closes gh-24710
This commit is contained in:
Andy Wilkinson
2021-01-08 17:07:45 +00:00
19 changed files with 230 additions and 45 deletions

View File

@@ -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'
}

View File

@@ -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")
}

View File

@@ -3,4 +3,4 @@ plugins {
id 'org.springframework.boot' version '{version}'
}
mainClassName = 'com.example.main.CustomMainClass'
mainClassName = 'com.example.bootrun.main.CustomMainClass'

View File

@@ -4,5 +4,5 @@ plugins {
}
springBoot {
mainClass = 'com.example.main.CustomMainClass'
mainClass = 'com.example.bootrun.main.CustomMainClass'
}