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
14f578ed
Commit
14f578ed
authored
May 26, 2021
by
Phillip Webb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.3.x' into 2.4.x
Closes gh-26670
parents
967a794f
39e3746c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
ConventionsPlugin.java
...ava/org/springframework/boot/build/ConventionsPlugin.java
+2
-1
EclipseConventions.java
...va/org/springframework/boot/build/EclipseConventions.java
+40
-0
No files found.
buildSrc/src/main/java/org/springframework/boot/build/ConventionsPlugin.java
View file @
14f578ed
/*
/*
* 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");
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* you may not use this file except in compliance with the License.
...
@@ -47,6 +47,7 @@ public class ConventionsPlugin implements Plugin<Project> {
...
@@ -47,6 +47,7 @@ public class ConventionsPlugin implements Plugin<Project> {
new
MavenPublishingConventions
().
apply
(
project
);
new
MavenPublishingConventions
().
apply
(
project
);
new
AsciidoctorConventions
().
apply
(
project
);
new
AsciidoctorConventions
().
apply
(
project
);
new
KotlinConventions
().
apply
(
project
);
new
KotlinConventions
().
apply
(
project
);
new
EclipseConventions
().
apply
(
project
);
}
}
}
}
buildSrc/src/main/java/org/springframework/boot/build/EclipseConventions.java
0 → 100644
View file @
14f578ed
/*
* Copyright 2012-2021 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.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
build
;
import
org.gradle.api.Project
;
import
org.gradle.api.plugins.JavaBasePlugin
;
import
org.gradle.plugins.ide.eclipse.EclipsePlugin
;
import
org.gradle.plugins.ide.eclipse.model.EclipseModel
;
/**
* Conventions that are applied in the presence of the {@link JavaBasePlugin} in order to
* correctly configure Eclipse.
*
* @author Phillip Webb
*/
class
EclipseConventions
{
void
apply
(
Project
project
)
{
project
.
getPlugins
().
withType
(
JavaBasePlugin
.
class
,
(
java
)
->
{
project
.
getPlugins
().
apply
(
EclipsePlugin
.
class
);
EclipseModel
eclipse
=
project
.
getExtensions
().
getByType
(
EclipseModel
.
class
);
eclipse
.
getJdt
().
setJavaRuntimeName
(
"JavaSE-1.8"
);
});
}
}
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