[Build] Remove testApi(intellijDep()) dependencies from all modules

Since IDEA moved most of it's jars to java 11 it's illegal to use them
  in our dependencies, so all modules which use `intellijDep()` should
  carefully specify which jars they use
This commit is contained in:
Dmitriy Novozhilov
2021-09-27 16:51:18 +03:00
committed by TeamCityServer
parent 504ccbad88
commit e933c7b6d9
21 changed files with 68 additions and 50 deletions
+17 -4
View File
@@ -56,20 +56,33 @@ dependencies {
testCompileOnly(project(":kotlin-reflect-api"))
testCompileOnly(toolsJar())
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testApi(intellijDep()) { includeJars("intellij-deps-fastutil-8.4.1-4") }
/*
* Actually those dependencies are needed only at runtime, but they
* declared as Api dependencies to propagate them to all modules
* which depend on current one
*/
testApi(intellijDep()) {
includeJars(
"intellij-deps-fastutil-8.4.1-4",
"idea_rt",
"jps-model",
"platform-impl",
"streamex",
"jna",
rootProject = rootProject
)
}
testImplementation(intellijDep()) {
includeJars(
"guava",
"trove4j",
"asm-all",
"log4j",
"jdom",
"jna",
rootProject = rootProject
)
isTransitive = false
}
testApiJUnit5()
}