Build: Fix intellij dependency leak from ir tree module
This commit is contained in:
@@ -15,7 +15,9 @@ dependencies {
|
||||
compile(project(":compiler:frontend.java"))
|
||||
compile(project(":compiler:light-classes"))
|
||||
compile(project(":compiler:util"))
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
|
||||
|
||||
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) }
|
||||
compileOnly(intellijDep()) { includeJars("platform-api", "java-impl", "platform-impl", rootProject = rootProject) }
|
||||
|
||||
testCompile(project(":idea"))
|
||||
testCompile(projectTests(":j2k"))
|
||||
@@ -25,10 +27,8 @@ dependencies {
|
||||
testCompile(project(":kotlin-test:kotlin-test-junit"))
|
||||
testCompile(commonDep("junit:junit"))
|
||||
|
||||
when {
|
||||
Ide.IJ181.orHigher() || Ide.AS33.orHigher() -> testCompileOnly(intellijDep()) { includeJars("platform-api", "platform-impl") }
|
||||
Ide.AS32() -> testCompileOnly(intellijDep()) { includeJars("idea") }
|
||||
}
|
||||
testCompileOnly(intellijDep())
|
||||
|
||||
testCompile(project(":idea:idea-native")) { isTransitive = false }
|
||||
testCompile(project(":idea:idea-gradle-native")) { isTransitive = false }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user