提交 07b75533 编写于 作者: R Rob Winch

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
上级 bf205bfe
......@@ -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> {
}
});
}
// private Configuration createConfiguration(Project project, String name) {
// if (project.configurations.respondsTo('create', String)) {
// return project.configurations.create(name)
// }
// project.configurations.add(name)
// }
}
class MergeModel {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册