Make all dependencies to idea sdk intransitive

This commit is contained in:
Ilya Chernikov
2017-11-24 17:42:06 +01:00
committed by Vyacheslav Gerasimov
parent e76cd802d8
commit a4f28cd94f
65 changed files with 341 additions and 106 deletions
@@ -28,7 +28,8 @@ dependencies {
afterEvaluate {
dependencies {
compile(intellijCoreJar())
compileOnly(intellijCoreJar())
compileOnly(intellij { include("asm-all.jar") })
}
}
@@ -40,8 +40,12 @@ dependencies {
afterEvaluate {
dependencies {
compile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
compile(intellijPlugin("Groovy") { include("Groovy.jar") })
compileOnly(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
compileOnly(intellijPlugin("Groovy") { include("Groovy.jar") })
compileOnly(intellij { include("extensions.jar", "openapi.jar", "util.jar", "idea.jar")} )
testCompile(intellijPlugin("android") { include("android.jar", "android-common.jar", "sdk-common.jar", "sdk-tools.jar") })
testCompile(intellijPlugin("Groovy") { include("Groovy.jar") })
testCompile(intellij { include("extensions.jar")} )
testRuntime(intellij())
testRuntime(intellijPlugins("junit", "IntelliLang", "testng", "copyright", "properties", "java-i18n",
"gradle", "Groovy", "coverage", "java-decompiler", "maven", "android"))
@@ -20,6 +20,7 @@ dependencies {
afterEvaluate {
dependencies {
compileOnly(intellij { include("openapi.jar", "jps-builders.jar") })
compile(intellijPlugin("android") { include("**/android-jps-plugin.jar") })
testCompileOnly(intellijExtra("jps-build-test") { include("jps-build-test.jar") } )
testRuntime(intellijPlugin("android"))