Skip to content

Commit 07b7553

Browse files
committed
Fix MergePlugin
The submitted pull requests for SPR-10572 did not build. This commit fixes the MergePlugin to create from configurations rather than the project. It also removes unnecessarily added code that was commented out. Issue: SPR-10572
1 parent bf205bf commit 07b7553

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

buildSrc/src/main/groovy/org/springframework/build/gradle/MergePlugin.groovy

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class MergePlugin implements Plugin<Project> {
121121
project.configurations.each { configuration ->
122122
Conf2ScopeMapping mapping = project.conf2ScopeMappings.getMapping([configuration])
123123
if(mapping.scope) {
124-
Configuration intoConfiguration = project.merge.into.create(
124+
Configuration intoConfiguration = project.merge.into.configurations.create(
125125
project.name + "-" + configuration.name)
126126
configuration.excludeRules.each {
127127
configuration.exclude([
@@ -153,13 +153,6 @@ class MergePlugin implements Plugin<Project> {
153153
}
154154
});
155155
}
156-
157-
// private Configuration createConfiguration(Project project, String name) {
158-
// if (project.configurations.respondsTo('create', String)) {
159-
// return project.configurations.create(name)
160-
// }
161-
// project.configurations.add(name)
162-
// }
163156
}
164157

165158
class MergeModel {

0 commit comments

Comments
 (0)