From 2a04d08d3ea0254e79a91ed36cebac11bd02d125 Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Wed, 18 Apr 2018 17:07:10 +0300 Subject: [PATCH] Build: Use `fromEmbeddedComponents` helper in :prepare:android-lint --- prepare/android-lint/build.gradle.kts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/prepare/android-lint/build.gradle.kts b/prepare/android-lint/build.gradle.kts index 7f050f3d72e..1a1ed0036a0 100644 --- a/prepare/android-lint/build.gradle.kts +++ b/prepare/android-lint/build.gradle.kts @@ -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().sourceSets.getByName("main").output) - } - } - } + fromEmbeddedComponents() } ideaPlugin()