Make all dependencies to idea sdk intransitive
This commit is contained in:
committed by
Vyacheslav Gerasimov
parent
e76cd802d8
commit
a4f28cd94f
@@ -25,8 +25,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellij { include("openapi.jar") })
|
||||
testCompile(intellij { include("idea.jar", "idea_rt.jar", "groovy-all-*.jar", "jps-builders.jar") })
|
||||
compileOnly(intellij { include("openapi.jar") })
|
||||
testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "groovy-all-*.jar", "jps-builders.jar") })
|
||||
testCompile(intellijExtra("jps-standalone") { include("jps-model.jar") })
|
||||
testCompile(intellijExtra("jps-build-test"))
|
||||
}
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":core:descriptors"))
|
||||
compile(project(":core:descriptors.jvm"))
|
||||
@@ -11,6 +15,12 @@ dependencies {
|
||||
compile(project(":compiler:ir.tree"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" {
|
||||
projectDefault()
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":compiler:backend-common"))
|
||||
@@ -13,6 +17,13 @@ dependencies {
|
||||
compile(project(":compiler:serialization"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" {
|
||||
projectDefault()
|
||||
|
||||
@@ -73,9 +73,10 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
testCompile(intellij { include("openapi.jar", "idea.jar", "util.jar", "asm-all.jar", "commons-httpclient-3.1-patched.jar") })
|
||||
testCompileOnly(intellijCoreJar())
|
||||
testCompileOnly(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "util.jar", "asm-all.jar",
|
||||
"commons-httpclient-3.1-patched.jar") })
|
||||
testRuntime(intellij())
|
||||
testRuntime(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":kotlin-build-common"))
|
||||
compileOnly(project(":compiler:cli-common"))
|
||||
@@ -18,6 +22,12 @@ dependencies {
|
||||
runtimeOnly(projectRuntimeJar(":kotlin-compiler-embeddable"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -19,8 +19,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compileOnly(intellijCoreJar())
|
||||
testCompile(intellijCoreJar())
|
||||
testRuntime(intellij { include("trove4j.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":core:descriptors"))
|
||||
compile(project(":core:descriptors.jvm"))
|
||||
@@ -10,6 +14,13 @@ dependencies {
|
||||
compile(project(":compiler:frontend"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":compiler:frontend"))
|
||||
@@ -11,6 +15,12 @@ dependencies {
|
||||
compile(commonDep("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
val jflexPath by configurations.creating
|
||||
|
||||
dependencies {
|
||||
@@ -16,6 +20,13 @@ dependencies {
|
||||
jflexPath(commonDep("org.jetbrains.intellij.deps.jflex", "jflex"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("annotations.jar", "trove4j.jar", "guava-*.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":core:descriptors"))
|
||||
compile(project(":core:descriptors.jvm"))
|
||||
@@ -19,6 +23,15 @@ dependencies {
|
||||
testCompile(projectTests(":compiler:tests-common"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("annotations.jar") })
|
||||
testCompile(intellijCoreJar())
|
||||
testCompile(intellij { include("annotations.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" { projectDefault() }
|
||||
|
||||
@@ -2,6 +2,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":compiler:frontend"))
|
||||
@@ -9,6 +13,12 @@ dependencies {
|
||||
compile(project(":compiler:ir.tree"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -3,6 +3,10 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin {
|
||||
setExtraDependencies("intellij-core")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":compiler:backend"))
|
||||
@@ -10,6 +14,13 @@ dependencies {
|
||||
compile(project(":compiler:frontend.java"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellij { include("annotations.jar", "asm-all.jar", "trove4j.jar", "guava-*.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -14,7 +14,7 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compileOnly(intellijCoreJar())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ configureIntellijPlugin()
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellij { include("asm-all.jar") })
|
||||
compileOnly(intellij { include("asm-all.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,11 +3,19 @@ apply { plugin("kotlin") }
|
||||
|
||||
jvmTarget = "1.6"
|
||||
|
||||
configureIntellijPlugin()
|
||||
|
||||
dependencies {
|
||||
compile(project(":compiler:util"))
|
||||
compile(project(":core:descriptors"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compileOnly(intellij { include("trove4j.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
"test" {}
|
||||
|
||||
@@ -35,7 +35,7 @@ dependencies {
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
testCompile(intellijCoreJar())
|
||||
testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar") })
|
||||
testCompile(intellij { include("openapi.jar", "idea.jar", "idea_rt.jar", "guava-*.jar", "trove4j.jar", "picocontainer.jar", "asm-all.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,13 @@ dependencies {
|
||||
testRuntime(projectDist(":kotlin-reflect"))
|
||||
}
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
testCompileOnly(intellijCoreJar())
|
||||
testRuntime(intellij())
|
||||
}
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
"main" {}
|
||||
"test" { projectDefault() }
|
||||
|
||||
@@ -14,9 +14,9 @@ dependencies {
|
||||
|
||||
afterEvaluate {
|
||||
dependencies {
|
||||
compile(intellijCoreJar())
|
||||
compile(intellijCoreJarDependencies())
|
||||
compile(intellijExtra("jps-standalone") { include("jps-model.jar") })
|
||||
compileOnly(intellijCoreJar())
|
||||
compileOnly(intellijCoreJarDependencies())
|
||||
compileOnly(intellijExtra("jps-standalone") { include("jps-model.jar") })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user