Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
abd0b484
Commit
abd0b484
authored
Dec 18, 2020
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
parents
07309493
b351288f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
18 deletions
+17
-18
build.gradle
...ration-tests/spring-boot-launch-script-tests/build.gradle
+3
-3
build.gradle
...pt-tests/spring-boot-launch-script-tests-app/build.gradle
+0
-0
settings.gradle
...tests/spring-boot-launch-script-tests-app/settings.gradle
+0
-0
LaunchScriptTestApplication.java
...mework/boot/launchscript/LaunchScriptTestApplication.java
+0
-0
LaunchVerificationController.java
...ework/boot/launchscript/LaunchVerificationController.java
+0
-0
AbstractLaunchScriptIntegrationTests.java
...ot/launchscript/AbstractLaunchScriptIntegrationTests.java
+5
-6
build.gradle
...t-integration-tests/spring-boot-loader-tests/build.gradle
+3
-3
build.gradle
...ot-loader-tests/spring-boot-loader-tests-app/build.gradle
+0
-0
settings.gradle
...loader-tests/spring-boot-loader-tests-app/settings.gradle
+0
-0
LoaderTestApplication.java
...springframework/boot/loaderapp/LoaderTestApplication.java
+0
-0
LoaderIntegrationTests.java
...g/springframework/boot/loader/LoaderIntegrationTests.java
+6
-6
No files found.
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/build.gradle
View file @
abd0b484
...
@@ -28,8 +28,8 @@ task syncMavenRepository(type: Sync) {
...
@@ -28,8 +28,8 @@ task syncMavenRepository(type: Sync) {
}
}
task
syncAppSource
(
type:
Sync
)
{
task
syncAppSource
(
type:
Sync
)
{
from
"app"
from
"
spring-boot-launch-script-tests-
app"
into
"${buildDir}/app"
into
"${buildDir}/
spring-boot-launch-script-tests-
app"
filter
{
line
->
filter
{
line
->
line
.
replace
(
"id \"org.springframework.boot\""
,
"id \"org.springframework.boot\" version \"${project.version}\""
)
line
.
replace
(
"id \"org.springframework.boot\""
,
"id \"org.springframework.boot\" version \"${project.version}\""
)
}
}
...
@@ -37,7 +37,7 @@ task syncAppSource(type: Sync) {
...
@@ -37,7 +37,7 @@ task syncAppSource(type: Sync) {
task
buildApp
(
type:
GradleBuild
)
{
task
buildApp
(
type:
GradleBuild
)
{
dependsOn
syncAppSource
,
syncMavenRepository
dependsOn
syncAppSource
,
syncMavenRepository
dir
=
"${buildDir}/app"
dir
=
"${buildDir}/
spring-boot-launch-script-tests-
app"
startParameter
.
buildCacheEnabled
=
false
startParameter
.
buildCacheEnabled
=
false
tasks
=
[
"build"
]
tasks
=
[
"build"
]
}
}
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/app/build.gradle
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/
spring-boot-launch-script-tests-
app/build.gradle
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/app/settings.gradle
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/
spring-boot-launch-script-tests-
app/settings.gradle
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/app/src/main/java/org/springframework/boot/launchscript/LaunchScriptTestApplication.java
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/
spring-boot-launch-script-tests-
app/src/main/java/org/springframework/boot/launchscript/LaunchScriptTestApplication.java
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/app/src/main/java/org/springframework/boot/launchscript/LaunchVerificationController.java
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/
spring-boot-launch-script-tests-
app/src/main/java/org/springframework/boot/launchscript/LaunchVerificationController.java
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-launch-script-tests/src/intTest/java/org/springframework/boot/launchscript/AbstractLaunchScriptIntegrationTests.java
View file @
abd0b484
...
@@ -30,6 +30,7 @@ import org.testcontainers.images.builder.ImageFromDockerfile;
...
@@ -30,6 +30,7 @@ import org.testcontainers.images.builder.ImageFromDockerfile;
import
org.testcontainers.utility.MountableFile
;
import
org.testcontainers.utility.MountableFile
;
import
org.springframework.boot.ansi.AnsiColor
;
import
org.springframework.boot.ansi.AnsiColor
;
import
org.springframework.util.Assert
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
hamcrest
.
Matchers
.
containsString
;
import
static
org
.
hamcrest
.
Matchers
.
containsString
;
...
@@ -110,12 +111,10 @@ abstract class AbstractLaunchScriptIntegrationTests {
...
@@ -110,12 +111,10 @@ abstract class AbstractLaunchScriptIntegrationTests {
}
}
private
static
File
findApplication
()
{
private
static
File
findApplication
()
{
File
appJar
=
new
File
(
"build/app/build/libs/app.jar"
);
String
name
=
String
.
format
(
"build/%1$s/build/libs/%1$s.jar"
,
"spring-boot-launch-script-tests-app"
);
if
(
appJar
.
isFile
())
{
File
jar
=
new
File
(
name
);
return
appJar
;
Assert
.
state
(
jar
.
isFile
(),
()
->
"Could not find "
+
name
+
". Have you built it?"
);
}
return
jar
;
throw
new
IllegalStateException
(
"Could not find test application in build/app/build/libs directory. Have you built it?"
);
}
}
}
}
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/build.gradle
View file @
abd0b484
...
@@ -28,8 +28,8 @@ task syncMavenRepository(type: Sync) {
...
@@ -28,8 +28,8 @@ task syncMavenRepository(type: Sync) {
}
}
task
syncAppSource
(
type:
Sync
)
{
task
syncAppSource
(
type:
Sync
)
{
from
"app"
from
"
spring-boot-loader-tests-
app"
into
"${buildDir}/app"
into
"${buildDir}/
spring-boot-loader-tests-
app"
filter
{
line
->
filter
{
line
->
line
.
replace
(
"id \"org.springframework.boot\""
,
"id \"org.springframework.boot\" version \"${project.version}\""
)
line
.
replace
(
"id \"org.springframework.boot\""
,
"id \"org.springframework.boot\" version \"${project.version}\""
)
}
}
...
@@ -37,7 +37,7 @@ task syncAppSource(type: Sync) {
...
@@ -37,7 +37,7 @@ task syncAppSource(type: Sync) {
task
buildApp
(
type:
GradleBuild
)
{
task
buildApp
(
type:
GradleBuild
)
{
dependsOn
syncAppSource
,
syncMavenRepository
dependsOn
syncAppSource
,
syncMavenRepository
dir
=
"${buildDir}/app"
dir
=
"${buildDir}/
spring-boot-loader-tests-
app"
startParameter
.
buildCacheEnabled
=
false
startParameter
.
buildCacheEnabled
=
false
tasks
=
[
"build"
]
tasks
=
[
"build"
]
}
}
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/app/build.gradle
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/
spring-boot-loader-tests-
app/build.gradle
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/app/settings.gradle
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/
spring-boot-loader-tests-
app/settings.gradle
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/app/src/main/java/org/springframework/boot/loaderapp/LoaderTestApplication.java
→
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/
spring-boot-loader-tests-
app/src/main/java/org/springframework/boot/loaderapp/LoaderTestApplication.java
View file @
abd0b484
File moved
spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java
View file @
abd0b484
...
@@ -28,6 +28,8 @@ import org.testcontainers.junit.jupiter.Testcontainers;
...
@@ -28,6 +28,8 @@ import org.testcontainers.junit.jupiter.Testcontainers;
import
org.testcontainers.utility.DockerImageName
;
import
org.testcontainers.utility.DockerImageName
;
import
org.testcontainers.utility.MountableFile
;
import
org.testcontainers.utility.MountableFile
;
import
org.springframework.util.Assert
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
/**
/**
...
@@ -49,12 +51,10 @@ class LoaderIntegrationTests {
...
@@ -49,12 +51,10 @@ class LoaderIntegrationTests {
.
withCommand
(
"java"
,
"-jar"
,
"app.jar"
);
.
withCommand
(
"java"
,
"-jar"
,
"app.jar"
);
private
static
File
findApplication
()
{
private
static
File
findApplication
()
{
File
appJar
=
new
File
(
"build/app/build/libs/app.jar"
);
String
name
=
String
.
format
(
"build/%1$s/build/libs/%1$s.jar"
,
"spring-boot-loader-tests-app"
);
if
(
appJar
.
isFile
())
{
File
jar
=
new
File
(
name
);
return
appJar
;
Assert
.
state
(
jar
.
isFile
(),
()
->
"Could not find "
+
name
+
". Have you built it?"
);
}
return
jar
;
throw
new
IllegalStateException
(
"Could not find test application in build/app/build/libs directory. Have you built it?"
);
}
}
@Test
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment