Browse Source

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
pull/291/merge
Rob Winch 13 years ago
parent
commit
07b7553355
  1. 9
      buildSrc/src/main/groovy/org/springframework/build/gradle/MergePlugin.groovy

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

@ -121,7 +121,7 @@ class MergePlugin implements Plugin<Project> { @@ -121,7 +121,7 @@ class MergePlugin implements Plugin<Project> {
project.configurations.each { configuration ->
Conf2ScopeMapping mapping = project.conf2ScopeMappings.getMapping([configuration])
if(mapping.scope) {
Configuration intoConfiguration = project.merge.into.create(
Configuration intoConfiguration = project.merge.into.configurations.create(
project.name + "-" + configuration.name)
configuration.excludeRules.each {
configuration.exclude([
@ -153,13 +153,6 @@ class MergePlugin implements Plugin<Project> { @@ -153,13 +153,6 @@ class MergePlugin implements Plugin<Project> {
}
});
}
// private Configuration createConfiguration(Project project, String name) {
// if (project.configurations.respondsTo('create', String)) {
// return project.configurations.create(name)
// }
// project.configurations.add(name)
// }
}
class MergeModel {

Loading…
Cancel
Save