Build: Use fromEmbeddedComponents helper in :prepare:android-lint

This commit is contained in:
Vyacheslav Gerasimov
2018-04-18 17:07:10 +03:00
parent 3b472f4411
commit 2a04d08d3e
+1 -12
View File
@@ -23,18 +23,7 @@ dependencies {
}
runtimeJar {
/*
TODO: `fromEmbeddedComponents()` should be used here.
Couldn't use it because of the "must be locked before it can be used to compute a classpath" error.
*/
projectsToShadow.forEach {
dependsOn("$it:classes")
project(it).let { p ->
p.pluginManager.withPlugin("java") {
from(p.the<JavaPluginConvention>().sourceSets.getByName("main").output)
}
}
}
fromEmbeddedComponents()
}
ideaPlugin()