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
e7c1c893
Commit
e7c1c893
authored
Apr 27, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.4.x'
Closes gh-26261
parents
fa49ed05
79d27344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
JavaConventions.java
.../java/org/springframework/boot/build/JavaConventions.java
+9
-1
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 @
e7c1c893
...
@@ -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"
));
...
@@ -176,13 +180,17 @@ class JavaConventions {
...
@@ -176,13 +180,17 @@ class JavaConventions {
if
(!
args
.
contains
(
"-parameters"
))
{
if
(!
args
.
contains
(
"-parameters"
))
{
args
.
add
(
"-parameters"
);
args
.
add
(
"-parameters"
);
}
}
if
(
!
project
.
hasProperty
(
"toolchainVersion"
)
&&
JavaVersion
.
current
()
==
JavaVersion
.
VERSION_1_8
)
{
if
(
buildingWithJava8
(
project
)
)
{
args
.
addAll
(
Arrays
.
asList
(
"-Werror"
,
"-Xlint:unchecked"
,
"-Xlint:deprecation"
,
"-Xlint:rawtypes"
,
args
.
addAll
(
Arrays
.
asList
(
"-Werror"
,
"-Xlint:unchecked"
,
"-Xlint:deprecation"
,
"-Xlint:rawtypes"
,
"-Xlint:varargs"
));
"-Xlint:varargs"
));
}
}
});
});
}
}
private
boolean
buildingWithJava8
(
Project
project
)
{
return
!
project
.
hasProperty
(
"toolchainVersion"
)
&&
JavaVersion
.
current
()
==
JavaVersion
.
VERSION_1_8
;
}
private
void
configureSpringJavaFormat
(
Project
project
)
{
private
void
configureSpringJavaFormat
(
Project
project
)
{
project
.
getPlugins
().
apply
(
SpringJavaFormatPlugin
.
class
);
project
.
getPlugins
().
apply
(
SpringJavaFormatPlugin
.
class
);
project
.
getTasks
().
withType
(
FormatTask
.
class
,
(
formatTask
)
->
formatTask
.
setEncoding
(
"UTF-8"
));
project
.
getTasks
().
withType
(
FormatTask
.
class
,
(
formatTask
)
->
formatTask
.
setEncoding
(
"UTF-8"
));
...
...
buildSrc/src/main/resources/jdk-8156584-security.properties
0 → 100644
View file @
e7c1c893
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