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
5258c26f
Commit
5258c26f
authored
May 27, 2021
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.4.x'
parents
ac0c1b14
49c30854
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
JavaPluginAction.java
.../springframework/boot/gradle/plugin/JavaPluginAction.java
+2
-2
SpringBootPlugin.java
.../springframework/boot/gradle/plugin/SpringBootPlugin.java
+1
-2
WarPluginAction.java
...g/springframework/boot/gradle/plugin/WarPluginAction.java
+1
-1
No files found.
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/JavaPluginAction.java
View file @
5258c26f
...
...
@@ -104,7 +104,7 @@ final class JavaPluginAction implements PluginApplicationAction {
Configuration
developmentOnly
=
project
.
getConfigurations
()
.
getByName
(
SpringBootPlugin
.
DEVELOPMENT_ONLY_CONFIGURATION_NAME
);
Configuration
productionRuntimeClasspath
=
project
.
getConfigurations
()
.
getByName
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_NAME
);
.
getByName
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_
CONFIGURATION_
NAME
);
FileCollection
classpath
=
mainSourceSet
.
getRuntimeClasspath
()
.
minus
((
developmentOnly
.
minus
(
productionRuntimeClasspath
))).
filter
(
new
JarTypeFileSpec
());
TaskProvider
<
ResolveMainClassName
>
resolveMainClassName
=
ResolveMainClassName
...
...
@@ -213,7 +213,7 @@ final class JavaPluginAction implements PluginApplicationAction {
Configuration
runtimeClasspath
=
project
.
getConfigurations
()
.
getByName
(
JavaPlugin
.
RUNTIME_CLASSPATH_CONFIGURATION_NAME
);
Configuration
productionRuntimeClasspath
=
project
.
getConfigurations
()
.
create
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_NAME
);
.
create
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_
CONFIGURATION_
NAME
);
AttributeContainer
attributes
=
productionRuntimeClasspath
.
getAttributes
();
ObjectFactory
objectFactory
=
project
.
getObjects
();
attributes
.
attribute
(
Usage
.
USAGE_ATTRIBUTE
,
objectFactory
.
named
(
Usage
.
class
,
Usage
.
JAVA_RUNTIME
));
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java
View file @
5258c26f
...
...
@@ -78,9 +78,8 @@ public class SpringBootPlugin implements Plugin<Project> {
/**
* The name of the {@code productionRuntimeClasspath} configuration.
* @since 2.4.7
*/
public
static
final
String
PRODUCTION_RUNTIME_CLASSPATH_NAME
=
"productionRuntimeClasspath"
;
public
static
final
String
PRODUCTION_RUNTIME_CLASSPATH_
CONFIGURATION_
NAME
=
"productionRuntimeClasspath"
;
/**
* The coordinates {@code (group:name:version)} of the
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/WarPluginAction.java
View file @
5258c26f
...
...
@@ -70,7 +70,7 @@ class WarPluginAction implements PluginApplicationAction {
Configuration
developmentOnly
=
project
.
getConfigurations
()
.
getByName
(
SpringBootPlugin
.
DEVELOPMENT_ONLY_CONFIGURATION_NAME
);
Configuration
productionRuntimeClasspath
=
project
.
getConfigurations
()
.
getByName
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_NAME
);
.
getByName
(
SpringBootPlugin
.
PRODUCTION_RUNTIME_CLASSPATH_
CONFIGURATION_
NAME
);
FileCollection
classpath
=
project
.
getConvention
().
getByType
(
SourceSetContainer
.
class
)
.
getByName
(
SourceSet
.
MAIN_SOURCE_SET_NAME
).
getRuntimeClasspath
()
.
minus
(
providedRuntimeConfiguration
(
project
)).
minus
((
developmentOnly
.
minus
(
productionRuntimeClasspath
)))
...
...
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