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
79d27344
Commit
79d27344
authored
Apr 27, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
Closes gh-26260
parents
a1138efc
912c82e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
JavaConventions.java
.../java/org/springframework/boot/build/JavaConventions.java
+8
-0
jdk-8156584-security.properties
buildSrc/src/main/resources/jdk-8156584-security.properties
+1
-0
No files found.
buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java
View file @
79d27344
...
@@ -147,6 +147,10 @@ class JavaConventions {
...
@@ -147,6 +147,10 @@ class JavaConventions {
project
.
getTasks
().
withType
(
Test
.
class
,
(
test
)
->
{
project
.
getTasks
().
withType
(
Test
.
class
,
(
test
)
->
{
test
.
useJUnitPlatform
();
test
.
useJUnitPlatform
();
test
.
setMaxHeapSize
(
"1024M"
);
test
.
setMaxHeapSize
(
"1024M"
);
if
(
buildingWithJava8
(
project
))
{
test
.
systemProperty
(
"java.security.properties"
,
getClass
().
getClassLoader
().
getResource
(
"jdk-8156584-security.properties"
));
}
});
});
project
.
getPlugins
().
withType
(
JavaPlugin
.
class
,
(
javaPlugin
)
->
project
.
getDependencies
()
project
.
getPlugins
().
withType
(
JavaPlugin
.
class
,
(
javaPlugin
)
->
project
.
getDependencies
()
.
add
(
JavaPlugin
.
TEST_RUNTIME_ONLY_CONFIGURATION_NAME
,
"org.junit.platform:junit-platform-launcher"
));
.
add
(
JavaPlugin
.
TEST_RUNTIME_ONLY_CONFIGURATION_NAME
,
"org.junit.platform:junit-platform-launcher"
));
...
@@ -159,6 +163,10 @@ class JavaConventions {
...
@@ -159,6 +163,10 @@ class JavaConventions {
}));
}));
}
}
private
boolean
buildingWithJava8
(
Project
project
)
{
return
(!
project
.
hasProperty
(
"buildJavaHome"
))
&&
JavaVersion
.
current
()
==
JavaVersion
.
VERSION_1_8
;
}
private
boolean
isCi
()
{
private
boolean
isCi
()
{
return
Boolean
.
parseBoolean
(
System
.
getenv
(
"CI"
));
return
Boolean
.
parseBoolean
(
System
.
getenv
(
"CI"
));
}
}
...
...
buildSrc/src/main/resources/jdk-8156584-security.properties
0 → 100644
View file @
79d27344
keystore.pkcs12.keyProtectionAlgorithm
=
PBEWithHmacSHA256AndAES_256
\ No newline at end of file
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