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
9cd15a13
Commit
9cd15a13
authored
Apr 28, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
Closes gh-26276
parents
05b09907
79ecf596
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
14 deletions
+25
-14
AsciidoctorConventions.java
...rg/springframework/boot/build/AsciidoctorConventions.java
+4
-2
AutoConfigurationMetadata.java
...k/boot/build/autoconfigure/AutoConfigurationMetadata.java
+5
-2
ConfigurationPropertiesPlugin.java
...ild/context/properties/ConfigurationPropertiesPlugin.java
+4
-2
MavenExec.java
...org/springframework/boot/build/mavenplugin/MavenExec.java
+3
-2
MavenPluginPlugin.java
...ngframework/boot/build/mavenplugin/MavenPluginPlugin.java
+6
-3
TestSliceMetadata.java
...work/boot/build/test/autoconfigure/TestSliceMetadata.java
+3
-3
No files found.
buildSrc/src/main/java/org/springframework/boot/build/AsciidoctorConventions.java
View file @
9cd15a13
/*
* Copyright 2019-202
0
the original author or authors.
* Copyright 2019-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -34,6 +34,7 @@ import org.gradle.api.artifacts.Configuration;
import
org.gradle.api.file.FileCollection
;
import
org.gradle.api.tasks.InputFiles
;
import
org.gradle.api.tasks.OutputDirectory
;
import
org.gradle.api.tasks.PathSensitivity
;
import
org.gradle.api.tasks.Sync
;
import
org.gradle.api.tasks.TaskAction
;
...
...
@@ -136,7 +137,8 @@ class AsciidoctorConventions {
syncDocumentationSource
.
setDestinationDir
(
syncedSource
);
syncDocumentationSource
.
from
(
"src/docs/"
);
asciidoctorTask
.
dependsOn
(
syncDocumentationSource
);
asciidoctorTask
.
getInputs
().
dir
(
syncedSource
);
asciidoctorTask
.
getInputs
().
dir
(
syncedSource
).
withPathSensitivity
(
PathSensitivity
.
RELATIVE
)
.
withPropertyName
(
"synced source"
);
asciidoctorTask
.
setSourceDir
(
project
.
relativePath
(
new
File
(
syncedSource
,
"asciidoc/"
)));
return
syncDocumentationSource
;
}
...
...
buildSrc/src/main/java/org/springframework/boot/build/autoconfigure/AutoConfigurationMetadata.java
View file @
9cd15a13
...
...
@@ -31,6 +31,7 @@ import java.util.concurrent.Callable;
import
org.gradle.api.DefaultTask
;
import
org.gradle.api.Task
;
import
org.gradle.api.tasks.OutputFile
;
import
org.gradle.api.tasks.PathSensitivity
;
import
org.gradle.api.tasks.SourceSet
;
import
org.gradle.api.tasks.TaskAction
;
...
...
@@ -52,8 +53,10 @@ public class AutoConfigurationMetadata extends DefaultTask {
private
File
outputFile
;
public
AutoConfigurationMetadata
()
{
getInputs
().
file
((
Callable
<
File
>)
()
->
new
File
(
this
.
sourceSet
.
getOutput
().
getResourcesDir
(),
"META-INF/spring.factories"
));
getInputs
()
.
file
((
Callable
<
File
>)
()
->
new
File
(
this
.
sourceSet
.
getOutput
().
getResourcesDir
(),
"META-INF/spring.factories"
))
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
).
withPropertyName
(
"spring.factories"
);
dependsOn
((
Callable
<
String
>)
()
->
this
.
sourceSet
.
getProcessResourcesTaskName
());
getProject
().
getConfigurations
()
.
maybeCreate
(
AutoConfigurationPlugin
.
AUTO_CONFIGURATION_METADATA_CONFIGURATION_NAME
);
...
...
buildSrc/src/main/java/org/springframework/boot/build/context/properties/ConfigurationPropertiesPlugin.java
View file @
9cd15a13
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -27,6 +27,7 @@ import org.gradle.api.Task;
import
org.gradle.api.artifacts.Configuration
;
import
org.gradle.api.plugins.JavaPlugin
;
import
org.gradle.api.plugins.JavaPluginConvention
;
import
org.gradle.api.tasks.PathSensitivity
;
import
org.gradle.api.tasks.SourceSet
;
import
org.gradle.api.tasks.compile.JavaCompile
;
...
...
@@ -87,7 +88,8 @@ public class ConfigurationPropertiesPlugin implements Plugin<Project> {
private
void
configureAdditionalMetadataLocationsCompilerArgument
(
Project
project
)
{
JavaCompile
compileJava
=
project
.
getTasks
().
withType
(
JavaCompile
.
class
)
.
getByName
(
JavaPlugin
.
COMPILE_JAVA_TASK_NAME
);
((
Task
)
compileJava
).
getInputs
().
files
(
project
.
getTasks
().
getByName
(
JavaPlugin
.
PROCESS_RESOURCES_TASK_NAME
));
((
Task
)
compileJava
).
getInputs
().
files
(
project
.
getTasks
().
getByName
(
JavaPlugin
.
PROCESS_RESOURCES_TASK_NAME
))
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
).
withPropertyName
(
"processed resources"
);
SourceSet
mainSourceSet
=
project
.
getConvention
().
getPlugin
(
JavaPluginConvention
.
class
).
getSourceSets
()
.
getByName
(
SourceSet
.
MAIN_SOURCE_SET_NAME
);
compileJava
.
getOptions
().
getCompilerArgs
()
...
...
buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/MavenExec.java
View file @
9cd15a13
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -51,7 +51,8 @@ public class MavenExec extends JavaExec {
public
void
setProjectDir
(
File
projectDir
)
{
this
.
projectDir
=
projectDir
;
getInputs
().
file
(
new
File
(
projectDir
,
"pom.xml"
)).
withPathSensitivity
(
PathSensitivity
.
RELATIVE
);
getInputs
().
file
(
new
File
(
projectDir
,
"pom.xml"
)).
withPathSensitivity
(
PathSensitivity
.
RELATIVE
)
.
withPropertyName
(
"pom"
);
}
@Override
...
...
buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/MavenPluginPlugin.java
View file @
9cd15a13
/*
* Copyright 2019-202
0
the original author or authors.
* Copyright 2019-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -50,6 +50,7 @@ import org.gradle.api.tasks.Classpath;
import
org.gradle.api.tasks.Copy
;
import
org.gradle.api.tasks.JavaExec
;
import
org.gradle.api.tasks.OutputDirectory
;
import
org.gradle.api.tasks.PathSensitivity
;
import
org.gradle.api.tasks.SourceSet
;
import
org.gradle.api.tasks.SourceSetContainer
;
import
org.gradle.api.tasks.TaskAction
;
...
...
@@ -211,7 +212,8 @@ public class MavenPluginPlugin implements Plugin<Project> {
MavenExec
generatePluginDescriptor
=
project
.
getTasks
().
create
(
"generatePluginDescriptor"
,
MavenExec
.
class
);
generatePluginDescriptor
.
args
(
"org.apache.maven.plugins:maven-plugin-plugin:3.6.0:descriptor"
);
generatePluginDescriptor
.
getOutputs
().
dir
(
new
File
(
mavenDir
,
"target/classes/META-INF/maven"
));
generatePluginDescriptor
.
getInputs
().
dir
(
new
File
(
mavenDir
,
"target/classes/org"
));
generatePluginDescriptor
.
getInputs
().
dir
(
new
File
(
mavenDir
,
"target/classes/org"
))
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
).
withPropertyName
(
"plugin classes"
);
generatePluginDescriptor
.
setProjectDir
(
mavenDir
);
return
generatePluginDescriptor
;
}
...
...
@@ -243,7 +245,8 @@ public class MavenPluginPlugin implements Plugin<Project> {
void
setGenerator
(
Task
generator
)
{
this
.
generator
=
generator
;
getInputs
().
files
(
this
.
generator
);
getInputs
().
files
(
this
.
generator
).
withPathSensitivity
(
PathSensitivity
.
RELATIVE
)
.
withPropertyName
(
"generated source"
);
}
@OutputDirectory
...
...
buildSrc/src/main/java/org/springframework/boot/build/test/autoconfigure/TestSliceMetadata.java
View file @
9cd15a13
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -64,9 +64,9 @@ public class TestSliceMetadata extends DefaultTask {
public
TestSliceMetadata
()
{
getInputs
().
dir
((
Callable
<
File
>)
()
->
this
.
sourceSet
.
getOutput
().
getResourcesDir
())
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
);
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
)
.
withPropertyName
(
"resources"
)
;
getInputs
().
files
((
Callable
<
FileCollection
>)
()
->
this
.
sourceSet
.
getOutput
().
getClassesDirs
())
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
);
.
withPathSensitivity
(
PathSensitivity
.
RELATIVE
)
.
withPropertyName
(
"classes"
)
;
}
public
void
setSourceSet
(
SourceSet
sourceSet
)
{
...
...
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