Remove explicit jar specification from ide modules build scripts

They often change between ide versions and difficult to maintain
This commit is contained in:
Vyacheslav Gerasimov
2018-04-05 15:50:58 +03:00
parent 95684b9ecb
commit 7c02d55b23
19 changed files with 63 additions and 100 deletions
+6 -10
View File
@@ -42,11 +42,7 @@ dependencies {
compileOnly(project(":kotlin-daemon-client")) compileOnly(project(":kotlin-daemon-client"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijDep())
compileOnly(intellijDep()) {
includeJars("annotations", "openapi", "idea", "velocity", "boot", "gson", "log4j", "asm-all",
"swingx-core", "forms_rt", "util", "jdom", "trove4j", "guava", rootProject = rootProject)
}
compileOnly(commonDep("com.google.code.findbugs", "jsr305")) compileOnly(commonDep("com.google.code.findbugs", "jsr305"))
compileOnly(intellijPluginDep("IntelliLang")) compileOnly(intellijPluginDep("IntelliLang"))
compileOnly(intellijPluginDep("copyright")) compileOnly(intellijPluginDep("copyright"))
@@ -82,16 +78,16 @@ dependencies {
(rootProject.extra["compilerModules"] as Array<String>).forEach { (rootProject.extra["compilerModules"] as Array<String>).forEach {
testRuntime(project(it)) testRuntime(project(it))
} }
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testCompile(intellijPluginDep("IntelliLang")) testCompile(intellijPluginDep("IntelliLang"))
testCompile(intellijPluginDep("copyright")) testCompile(intellijPluginDep("copyright"))
testCompile(intellijPluginDep("properties")) testCompile(intellijPluginDep("properties"))
testCompile(intellijPluginDep("java-i18n")) testCompile(intellijPluginDep("java-i18n"))
testCompileOnly(intellijDep()) { includeJars("groovy-all", "velocity", "gson", "idea_rt", "util", "log4j", rootProject = rootProject) } testCompileOnly(intellijDep())
testCompileOnly(commonDep("com.google.code.findbugs", "jsr305")) testCompileOnly(commonDep("com.google.code.findbugs", "jsr305"))
testCompileOnly(intellijPluginDep("gradle")) { includeJars("gradle-base-services", "gradle-tooling-extension-impl", "gradle-wrapper", rootProject = rootProject) } testCompileOnly(intellijPluginDep("gradle"))
testCompileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") } testCompileOnly(intellijPluginDep("Groovy"))
testCompileOnly(intellijPluginDep("maven")) { includeJars("maven", "maven-server-api") } testCompileOnly(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("junit")) testRuntime(intellijPluginDep("junit"))
testRuntime(intellijPluginDep("gradle")) testRuntime(intellijPluginDep("gradle"))
+1 -1
View File
@@ -7,7 +7,7 @@ plugins {
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compile(project(":compiler:frontend")) compile(project(":compiler:frontend"))
compileOnly(intellijDep()) { includeJars("idea", "openapi", "util", "jdom") } compileOnly(intellijDep())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -11,7 +11,7 @@ dependencies {
compile(project(":js:js.frontend")) compile(project(":js:js.frontend"))
compile(project(":js:js.serializer")) compile(project(":js:js.serializer"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("annotations", "guava", rootProject = rootProject) } compileOnly(intellijDep())
} }
sourceSets { sourceSets {
+4 -8
View File
@@ -23,10 +23,8 @@ dependencies {
compile(androidDxJar()) compile(androidDxJar())
compileOnly(project(":kotlin-android-extensions-runtime")) compileOnly(project(":kotlin-android-extensions-runtime"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "extensions", "util", "guava", "android-base-common", rootProject = rootProject) } compileOnly(intellijDep())
compileOnly(intellijPluginDep("android")) { compileOnly(intellijPluginDep("android"))
includeJars("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "layoutlib-api")
}
testCompile(projectDist(":kotlin-test:kotlin-test-jvm")) testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompile(projectTests(":idea:idea-test-framework")) { isTransitive = false } testCompile(projectTests(":idea:idea-test-framework")) { isTransitive = false }
@@ -37,11 +35,9 @@ dependencies {
testCompile(projectTests(":idea:idea-gradle")) testCompile(projectTests(":idea:idea-gradle"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompile(intellijDep()) { includeJars("gson", rootProject = rootProject) } testCompile(intellijDep())
testCompile(intellijPluginDep("properties")) testCompile(intellijPluginDep("properties"))
testCompileOnly(intellijPluginDep("android")) { testCompileOnly(intellijPluginDep("android"))
includeJars("android", "android-common", "sdk-common", "sdklib", "sdk-tools", "layoutlib-api")
}
testRuntime(projectDist(":kotlin-reflect")) testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":plugins:android-extensions-ide")) testRuntime(project(":plugins:android-extensions-ide"))
@@ -8,9 +8,9 @@ apply { plugin("jps-compatible") }
dependencies { dependencies {
compile(project(":compiler:util")) compile(project(":compiler:util"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("guava", "android-base-common", rootProject = rootProject) } compileOnly(intellijDep())
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-tooling-api", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
compileOnly(intellijPluginDep("android")) { includeJars("android", "android-common", "sdk-common") } compileOnly(intellijPluginDep("android"))
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -22,8 +22,8 @@ dependencies {
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false } compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8")) { isTransitive = false } compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8")) { isTransitive = false }
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("util", "openapi", "idea", "asm-all", "jdom", "annotations", "trove4j", "guava", rootProject = rootProject) } compileOnly(intellijDep())
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-tooling-api", "gradle", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
} }
sourceSets { sourceSets {
+10 -26
View File
@@ -16,33 +16,17 @@ dependencies {
compile(project(":js:js.frontend")) compile(project(":js:js.frontend"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "external-system-rt", "forms_rt", "extensions", "jdom", "util") } compileOnly(intellijDep())
compileOnly(intellijPluginDep("gradle")) { compileOnly(intellijPluginDep("gradle"))
includeJars( compileOnly(intellijPluginDep("Groovy"))
"gradle-tooling-api", compileOnly(intellijPluginDep("junit"))
"gradle",
"gradle-base-services",
rootProject = rootProject
)
}
compileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") }
compileOnly(intellijPluginDep("junit")) { includeJars("idea-junit") }
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
testCompile(projectTests(":idea:idea-test-framework")) testCompile(projectTests(":idea:idea-test-framework"))
testCompile(intellijPluginDep("gradle")) { testCompile(intellijPluginDep("gradle"))
includeJars( testCompileOnly(intellijPluginDep("Groovy"))
"gradle-wrapper", testCompileOnly(intellijDep())
"gradle-base-services",
"gradle-tooling-extension-impl",
"gradle-tooling-api",
"gradle",
rootProject = rootProject
)
}
testCompileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") }
testCompileOnly(intellijDep()) { includeJars("groovy-all", "idea_rt", rootProject = rootProject) }
testRuntime(projectDist(":kotlin-reflect")) testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":idea:idea-jvm")) testRuntime(project(":idea:idea-jvm"))
@@ -55,11 +39,11 @@ dependencies {
testRuntime(project(":noarg-ide-plugin")) testRuntime(project(":noarg-ide-plugin"))
// TODO: the order of the plugins matters here, consider avoiding order-dependency // TODO: the order of the plugins matters here, consider avoiding order-dependency
testRuntime(intellijPluginDep("junit")) testRuntime(intellijPluginDep("junit"))
testRuntime(intellijPluginDep("testng")) { includeJars("jcommander", "resources_en") } testRuntime(intellijPluginDep("testng"))
testRuntime(intellijPluginDep("properties")) { includeJars("resources_en") } testRuntime(intellijPluginDep("properties"))
testRuntime(intellijPluginDep("gradle")) testRuntime(intellijPluginDep("gradle"))
testRuntime(intellijPluginDep("Groovy")) testRuntime(intellijPluginDep("Groovy"))
testRuntime(intellijPluginDep("coverage")) { includeJars("jacocoant") } testRuntime(intellijPluginDep("coverage"))
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
} }
+1 -1
View File
@@ -11,7 +11,7 @@ dependencies {
compile(project(":compiler:cli-common")) compile(project(":compiler:cli-common"))
compile(project(":compiler:frontend.java")) compile(project(":compiler:frontend.java"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("jdom", "util") } compileOnly(intellijDep())
} }
sourceSets { sourceSets {
+5 -7
View File
@@ -8,15 +8,13 @@ dependencies {
compile(project(":idea")) compile(project(":idea"))
compile(project(":compiler:light-classes")) compile(project(":compiler:light-classes"))
compile(project(":compiler:frontend.java")) compile(project(":compiler:frontend.java"))
compileOnly(intellijDep()) { includeJars("annotations", "openapi", "idea", "extensions", "util", "velocity", "boot", "gson", compileOnly(intellijDep())
"swingx-core", "forms_rt", "jdom", "log4j", "guava", "asm-all", "picocontainer",
rootProject = rootProject) }
compileOnly(commonDep("com.google.code.findbugs", "jsr305")) compileOnly(commonDep("com.google.code.findbugs", "jsr305"))
compileOnly(intellijPluginDep("junit")) { includeJars("idea-junit") } compileOnly(intellijPluginDep("junit"))
compileOnly(intellijPluginDep("testng")) { includeJars("testng", "testng-plugin") } compileOnly(intellijPluginDep("testng"))
compileOnly(intellijPluginDep("coverage")) { includeJars("coverage") } compileOnly(intellijPluginDep("coverage"))
compileOnly(intellijPluginDep("java-decompiler")) { includeJars("java-decompiler") } compileOnly(intellijPluginDep("java-decompiler"))
compileOnly(intellijPluginDep("IntelliLang")) compileOnly(intellijPluginDep("IntelliLang"))
compileOnly(intellijPluginDep("copyright")) compileOnly(intellijPluginDep("copyright"))
compileOnly(intellijPluginDep("properties")) compileOnly(intellijPluginDep("properties"))
+7 -7
View File
@@ -18,15 +18,15 @@ dependencies {
compile(project(":idea:idea-jvm")) compile(project(":idea:idea-jvm"))
compile(project(":idea:idea-jps-common")) compile(project(":idea:idea-jps-common"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "gson", "jdom", "extensions", "util", rootProject = rootProject) } compileOnly(intellijDep())
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) { includeJars("maven", "maven-server-api") } } excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
testCompile(projectTests(":idea")) testCompile(projectTests(":idea"))
testCompile(projectTests(":compiler:tests-common")) testCompile(projectTests(":compiler:tests-common"))
testCompile(projectTests(":idea:idea-test-framework")) testCompile(projectTests(":idea:idea-test-framework"))
testCompileOnly(intellijDep()) { includeJars("openapi", "idea", "gson", "idea_rt", rootProject = rootProject) } testCompileOnly(intellijDep())
testCompileOnly(intellijPluginDep("maven")) { includeJars("maven", "maven-server-api") } testCompileOnly(intellijPluginDep("maven"))
testRuntime(projectDist(":kotlin-reflect")) testRuntime(projectDist(":kotlin-reflect"))
testRuntime(project(":idea:idea-jvm")) testRuntime(project(":idea:idea-jvm"))
@@ -40,11 +40,11 @@ dependencies {
testRuntime(intellijDep()) testRuntime(intellijDep())
// TODO: the order of the plugins matters here, consider avoiding order-dependency // TODO: the order of the plugins matters here, consider avoiding order-dependency
testRuntime(intellijPluginDep("junit")) testRuntime(intellijPluginDep("junit"))
testRuntime(intellijPluginDep("testng")) { includeJars("jcommander", "resources_en") } testRuntime(intellijPluginDep("testng"))
testRuntime(intellijPluginDep("properties")) { includeJars("resources_en") } testRuntime(intellijPluginDep("properties"))
testRuntime(intellijPluginDep("gradle")) testRuntime(intellijPluginDep("gradle"))
testRuntime(intellijPluginDep("Groovy")) testRuntime(intellijPluginDep("Groovy"))
testRuntime(intellijPluginDep("coverage")) { includeJars("jacocoant") } testRuntime(intellijPluginDep("coverage"))
testRuntime(intellijPluginDep("maven")) testRuntime(intellijPluginDep("maven"))
testRuntime(intellijPluginDep("android")) testRuntime(intellijPluginDep("android"))
} }
+1 -1
View File
@@ -15,7 +15,7 @@ dependencies {
testCompile(project(":kotlin-test:kotlin-test-jvm")) testCompile(project(":kotlin-test:kotlin-test-jvm"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testCompileOnly(intellijDep()) { includeJars("openapi", "idea", "log4j") } testCompileOnly(intellijDep())
} }
sourceSets { sourceSets {
+1 -8
View File
@@ -11,14 +11,7 @@ jvmTarget = "1.6"
dependencies { dependencies {
compile(projectDist(":kotlin-stdlib")) compile(projectDist(":kotlin-stdlib"))
compile(project(":compiler:cli-common")) compile(project(":compiler:cli-common"))
compile(intellijPluginDep("gradle")) { compile(intellijPluginDep("gradle"))
includeJars("gradle-tooling-api",
"gradle-tooling-extension-api",
"gradle",
"gradle-core",
"gradle-base-services-groovy",
rootProject = rootProject)
}
} }
sourceSets { sourceSets {
+3 -3
View File
@@ -17,9 +17,9 @@ dependencies {
compile(project(":idea:idea-jvm")) compile(project(":idea:idea-jvm"))
compile(project(":idea:idea-jps-common")) compile(project(":idea:idea-jps-common"))
compile(project(":plugins:annotation-based-compiler-plugins-ide-support")) compile(project(":plugins:annotation-based-compiler-plugins-ide-support"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "util", "extensions") } compileOnly(intellijDep())
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) { includeJars("maven") } } excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-tooling-api", "gradle", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
} }
sourceSets { sourceSets {
@@ -19,9 +19,9 @@ dependencies {
compile(project(":idea:idea-gradle")) compile(project(":idea:idea-gradle"))
compile(project(":plugins:android-extensions-compiler")) compile(project(":plugins:android-extensions-compiler"))
compileOnly(project(":kotlin-android-extensions-runtime")) compileOnly(project(":kotlin-android-extensions-runtime"))
compileOnly(intellijPluginDep("android")) { includeJars("android", "android-common", "sdk-common", "sdk-tools") } compileOnly(intellijPluginDep("android"))
compileOnly(intellijPluginDep("Groovy")) { includeJars("Groovy") } compileOnly(intellijPluginDep("Groovy"))
compileOnly(intellijDep()) { includeJars("extensions", "openapi", "util", "idea", "android-base-common", rootProject = rootProject) } compileOnly(intellijDep())
testCompile(project(":compiler:tests-common")) testCompile(project(":compiler:tests-common"))
testCompile(project(":compiler:cli")) testCompile(project(":compiler:cli"))
@@ -34,9 +34,9 @@ dependencies {
testCompile(projectDist(":kotlin-test:kotlin-test-jvm")) testCompile(projectDist(":kotlin-test:kotlin-test-jvm"))
testCompile(commonDep("junit:junit")) testCompile(commonDep("junit:junit"))
testRuntime(projectDist(":kotlin-reflect")) testRuntime(projectDist(":kotlin-reflect"))
testCompile(intellijPluginDep("android")) { includeJars("android", "android-common", "sdk-common", "sdk-tools") } testCompile(intellijPluginDep("android"))
testCompile(intellijPluginDep("Groovy")) { includeJars("Groovy") } testCompile(intellijPluginDep("Groovy"))
testCompile(intellijDep()) { includeJars("extensions") } testCompile(intellijDep())
testRuntime(project(":idea:idea-jvm")) testRuntime(project(":idea:idea-jvm"))
testRuntime(project(":plugins:android-extensions-jps")) testRuntime(project(":plugins:android-extensions-jps"))
@@ -15,9 +15,9 @@ dependencies {
compile(project(":idea:idea-jps-common")) compile(project(":idea:idea-jps-common"))
compile(project(":idea:idea-gradle")) compile(project(":idea:idea-gradle"))
compile(project(":idea:idea-maven")) compile(project(":idea:idea-maven"))
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) { includeJars("maven", "maven-server-api") } } excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-tooling-api", "gradle", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "extensions", "jdom", "util") } compileOnly(intellijDep())
} }
sourceSets { sourceSets {
+3 -3
View File
@@ -12,9 +12,9 @@ dependencies {
compile(project(":idea")) { isTransitive = false } compile(project(":idea")) { isTransitive = false }
compile(project(":idea:kotlin-gradle-tooling")) compile(project(":idea:kotlin-gradle-tooling"))
compile(project(":kotlin-annotation-processing")) compile(project(":kotlin-annotation-processing"))
compileOnly(intellijDep()) { includeJars("openapi", "external-system-rt", "util") } compileOnly(intellijDep())
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-core", "gradle-tooling-api", "gradle", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
compileOnly(intellijPluginDep("android")) { includeJars("android", "android-common", "sdklib", "sdk-common", "sdk-tools") } compileOnly(intellijPluginDep("android"))
} }
sourceSets { sourceSets {
+2 -6
View File
@@ -13,12 +13,8 @@ dependencies {
compile(project(":idea:idea-android")) compile(project(":idea:idea-android"))
compile(project(":plugins:uast-kotlin")) compile(project(":plugins:uast-kotlin"))
compileOnly(project(":kotlin-android-extensions-runtime")) compileOnly(project(":kotlin-android-extensions-runtime"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijDep())
compileOnly(intellijDep()) { includeJars("util", "guava", "openapi", "idea", "asm-all", "annotations", rootProject = rootProject) } compileOnly(intellijPluginDep("android"))
compileOnly(intellijPluginDep("android")) {
includeJars("android", "android-common", "sdklib", "sdk-common", "sdk-tools",
"repository", "lombok-ast", "layoutlib-api", "kxml2", rootProject = rootProject)
}
} }
sourceSets { sourceSets {
+3 -3
View File
@@ -18,9 +18,9 @@ dependencies {
compile(project(":idea")) compile(project(":idea"))
compile(project(":idea:idea-jps-common")) compile(project(":idea:idea-jps-common"))
compile(project(":plugins:annotation-based-compiler-plugins-ide-support")) compile(project(":plugins:annotation-based-compiler-plugins-ide-support"))
compileOnly(intellijDep()) { includeJars("openapi", "idea", "util", "extensions") } compileOnly(intellijDep())
excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) { includeJars("maven") } } excludeInAndroidStudio(rootProject) { compileOnly(intellijPluginDep("maven")) }
compileOnly(intellijPluginDep("gradle")) { includeJars("gradle-tooling-api", "gradle", rootProject = rootProject) } compileOnly(intellijPluginDep("gradle"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -11,7 +11,7 @@ dependencies {
compile(project(":compiler:frontend.java")) compile(project(":compiler:frontend.java"))
compile(project(":idea:ide-common")) compile(project(":idea:ide-common"))
compile(project(":plugins:uast-kotlin")) compile(project(":plugins:uast-kotlin"))
compileOnly(intellijDep()) { includeJars("openapi", "util") } compileOnly(intellijDep())
} }
sourceSets { sourceSets {