Build: Use intellij maven repo instead of downloaded IDEA

#KTI-82
This commit is contained in:
Vyacheslav Gerasimov
2021-11-24 03:41:51 +03:00
committed by teamcity
parent 9f725da7f7
commit f7a9065b75
160 changed files with 807 additions and 562 deletions
+3
View File
@@ -5,13 +5,16 @@
<w>cacheability</w> <w>cacheability</w>
<w>cacheable</w> <w>cacheable</w>
<w>cidr</w> <w>cidr</w>
<w>fastutil</w>
<w>foldable</w> <w>foldable</w>
<w>instrumentator</w> <w>instrumentator</w>
<w>jdks</w> <w>jdks</w>
<w>proguarded</w>
<w>protobuf</w> <w>protobuf</w>
<w>redirector</w> <w>redirector</w>
<w>remapper</w> <w>remapper</w>
<w>sonatype</w> <w>sonatype</w>
<w>streamex</w>
<w>unpresent</w> <w>unpresent</w>
</words> </words>
</dictionary> </dictionary>
@@ -15,10 +15,11 @@ dependencies {
implementation(project(":kotlin-reflect-api")) implementation(project(":kotlin-reflect-api"))
/* /*
We do not need guava in the generator, but because of a bug in the IJ project importing, we need to have a dependency on intellijCoreDep We do not need guava in the generator, but because of a bug in the IJ project importing, we need to have a dependency on intellijCore
the same as it is in `:fir:tree:tree-generator` module to the project be imported correctly the same as it is in `:fir:tree:tree-generator` module to the project be imported correctly
*/ */
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
} }
+1 -21
View File
@@ -18,7 +18,7 @@ dependencies {
api(project(":analysis:analysis-api")) api(project(":analysis:analysis-api"))
api(project(":analysis:analysis-api-impl-base")) api(project(":analysis:analysis-api-impl-base"))
api(project(":compiler:light-classes")) api(project(":compiler:light-classes"))
api(intellijCoreDep()) api(intellijCore())
implementation(project(":analysis:analysis-api-providers")) implementation(project(":analysis:analysis-api-providers"))
implementation(project(":analysis:analysis-internal-utils")) implementation(project(":analysis:analysis-internal-utils"))
@@ -33,26 +33,6 @@ dependencies {
testApi(toolsJar()) testApi(toolsJar())
testApiJUnit5() testApiJUnit5()
testApi(project(":analysis:symbol-light-classes")) testApi(project(":analysis:symbol-light-classes"))
testRuntimeOnly(intellijDep()) {
includeJars(
"jps-model",
"extensions",
"util",
"platform-api",
"platform-impl",
"idea",
"guava",
"trove4j",
"asm-all",
"log4j",
"jdom",
"streamex",
"bootstrap",
"jna",
rootProject = rootProject
)
}
} }
sourceSets { sourceSets {
@@ -7,7 +7,7 @@ dependencies {
api(project(":compiler:psi")) api(project(":compiler:psi"))
api(project(":analysis:analysis-api-providers")) api(project(":analysis:analysis-api-providers"))
api(project(":analysis:project-structure")) api(project(":analysis:project-structure"))
api(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } api(intellijCore())
testApiJUnit5() testApiJUnit5()
testApi(project(":kotlin-test:kotlin-test-junit")) testApi(project(":kotlin-test:kotlin-test-junit"))
@@ -7,7 +7,7 @@ dependencies {
api(project(":compiler:psi")) api(project(":compiler:psi"))
api(project(":analysis:analysis-api")) api(project(":analysis:analysis-api"))
api(project(":analysis:analysis-api-impl-barebone")) api(project(":analysis:analysis-api-impl-barebone"))
api(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } api(intellijCore())
implementation(project(":analysis:analysis-internal-utils")) implementation(project(":analysis:analysis-internal-utils"))
testApiJUnit5() testApiJUnit5()
@@ -8,7 +8,7 @@ dependencies {
implementation(project(":compiler:frontend.java")) implementation(project(":compiler:frontend.java"))
implementation(project(":core:compiler.common")) implementation(project(":core:compiler.common"))
implementation(project(":analysis:project-structure")) implementation(project(":analysis:project-structure"))
implementation(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } implementation(intellijCore())
} }
sourceSets { sourceSets {
+2 -1
View File
@@ -18,7 +18,8 @@ dependencies {
implementation(project(":analysis:analysis-internal-utils")) implementation(project(":analysis:analysis-internal-utils"))
implementation(project(":analysis:analysis-api-providers")) implementation(project(":analysis:analysis-api-providers"))
api(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } api(intellijCore())
api(commonDependency("com.google.guava:guava"))
} }
kotlin { kotlin {
@@ -5,7 +5,7 @@ plugins {
dependencies { dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
implementation(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } implementation(intellijCore())
} }
sourceSets { sourceSets {
+1 -17
View File
@@ -24,8 +24,7 @@ dependencies {
implementation(project(":analysis:analysis-api-providers")) implementation(project(":analysis:analysis-api-providers"))
implementation(project(":analysis:analysis-internal-utils")) implementation(project(":analysis:analysis-internal-utils"))
api(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } api(intellijCore())
testApi(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:test-infrastructure-utils"))
testApi(projectTests(":compiler:test-infrastructure")) testApi(projectTests(":compiler:test-infrastructure"))
@@ -42,21 +41,6 @@ dependencies {
testImplementation(project(":analysis:symbol-light-classes")) testImplementation(project(":analysis:symbol-light-classes"))
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testApi(intellijDep()) {
includeJars(
"jps-model",
"platform-api",
"platform-impl",
"guava",
"trove4j",
"asm-all",
"log4j",
"jdom",
"streamex",
rootProject = rootProject
)
}
} }
sourceSets { sourceSets {
@@ -5,8 +5,6 @@
package org.jetbrains.kotlin.analysis.low.level.api.fir package org.jetbrains.kotlin.analysis.low.level.api.fir
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.project.Project
import org.jetbrains.kotlin.fir.FirElement import org.jetbrains.kotlin.fir.FirElement
import org.jetbrains.kotlin.fir.FirRenderer import org.jetbrains.kotlin.fir.FirRenderer
import org.jetbrains.kotlin.fir.declarations.FirDeclaration import org.jetbrains.kotlin.fir.declarations.FirDeclaration
@@ -21,8 +19,6 @@ import org.jetbrains.kotlin.analysis.low.level.api.fir.sessions.FirIdeSession
import org.jetbrains.kotlin.analysis.project.structure.getKtModule import org.jetbrains.kotlin.analysis.project.structure.getKtModule
import org.jetbrains.kotlin.psi.KtElement import org.jetbrains.kotlin.psi.KtElement
internal fun Project.allModules() = ModuleManager.getInstance(this).modules.toList()
internal fun FirElement.renderWithClassName(renderMode: FirRenderer.RenderMode = FirRenderer.RenderMode.Normal): String = internal fun FirElement.renderWithClassName(renderMode: FirRenderer.RenderMode = FirRenderer.RenderMode.Normal): String =
"${this::class.simpleName} `${render(renderMode)}`" "${this::class.simpleName} `${render(renderMode)}`"
+1 -1
View File
@@ -7,7 +7,7 @@ dependencies {
implementation(project(":core:compiler.common")) implementation(project(":core:compiler.common"))
implementation(project(":compiler:util")) implementation(project(":compiler:util"))
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
implementation(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } implementation(intellijCore())
} }
kotlin { kotlin {
@@ -12,7 +12,7 @@ dependencies {
implementation(project(":analysis:analysis-api")) implementation(project(":analysis:analysis-api"))
implementation(project(":analysis:analysis-internal-utils")) implementation(project(":analysis:analysis-internal-utils"))
implementation(project(":analysis:project-structure")) implementation(project(":analysis:project-structure"))
implementation(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } implementation(intellijCore())
} }
sourceSets { sourceSets {
+2 -4
View File
@@ -13,10 +13,8 @@ dependencies {
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
api(projectTests(":compiler:tests-common")) api(projectTests(":compiler:tests-common"))
api(project(":compiler:cli")) api(project(":compiler:cli"))
api(intellijCoreDep()) { includeJars("intellij-core") } api(intellijCore())
api(jpsStandalone()) { includeJars("jps-model") } api(jpsModel())
api(intellijPluginDep("java"))
api(intellijDep()) { includeIntellijCoreJarDependencies(project) }
api("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:$benchmarks_version") api("org.jetbrains.kotlinx:kotlinx-benchmark-runtime:$benchmarks_version")
} }
+4 -2
View File
@@ -14,10 +14,12 @@ dependencies {
compileOnly(project(":js:js.serializer")) compileOnly(project(":js:js.serializer"))
compileOnly(project(":js:js.config")) compileOnly(project(":js:js.config"))
compileOnly(project(":kotlin-util-klib-metadata")) compileOnly(project(":kotlin-util-klib-metadata"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") }
compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "util", rootProject = rootProject) }
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
testCompileOnly(project(":compiler:cli-common")) testCompileOnly(project(":compiler:cli-common"))
testApi(projectTests(":compiler:tests-common")) testApi(projectTests(":compiler:tests-common"))
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
+7 -18
View File
@@ -154,22 +154,6 @@ extra["versions.kotlinx-metadata-jvm"] = "0.4.0"
val useJvmFir by extra(project.kotlinBuildProperties.useFir) val useJvmFir by extra(project.kotlinBuildProperties.useFir)
val intellijSeparateSdks = project.getBooleanProperty("intellijSeparateSdks") ?: false
extra["intellijSeparateSdks"] = intellijSeparateSdks
extra["IntellijCoreDependencies"] =
listOf(
"asm-all-9.0",
"guava",
"jdom",
"jna",
"log4j",
"snappy-in-java",
"streamex",
"trove4j"
).filterNotNull()
val irCompilerModules = arrayOf( val irCompilerModules = arrayOf(
":compiler:ir.tree", ":compiler:ir.tree",
":compiler:ir.tree.impl", ":compiler:ir.tree.impl",
@@ -421,7 +405,10 @@ allprojects {
val mirrorRepo: String? = findProperty("maven.repository.mirror")?.toString() val mirrorRepo: String? = findProperty("maven.repository.mirror")?.toString()
repositories { repositories {
kotlinBuildLocalRepo(project) if (kotlinBuildProperties.getOrNull("attachedIntellijVersion") != null) {
kotlinBuildLocalRepo(project)
}
mirrorRepo?.let(::maven) mirrorRepo?.let(::maven)
internalBootstrapRepo?.let(::maven)?.apply { internalBootstrapRepo?.let(::maven)?.apply {
@@ -444,11 +431,13 @@ allprojects {
} }
maven(intellijRepo) maven(intellijRepo)
maven("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
mavenCentral() mavenCentral()
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies") maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-dependencies")
maven("https://dl.google.com/dl/android/maven2") maven("https://dl.google.com/dl/android/maven2")
maven("https://packages.jetbrains.team/maven/p/ij/intellij-dependencies")
maven("https://download.jetbrains.com/teamcity-repository/")
jcenter() jcenter()
} }
+2 -5
View File
@@ -237,11 +237,8 @@ fun Project.testApiJUnit5(
testApi("$component:$componentsVersion") testApi("$component:$componentsVersion")
} }
addDependencyTo<ExternalModuleDependency>(this, "testImplementation", intellijDep()) { // This dependency is needed only for FileComparisonFailure
// This dependency is needed only for FileComparisonFailure add("testImplementation", intellijJavaRt())
includeJars("idea_rt", rootProject = rootProject)
isTransitive = false
}
// This is needed only for using FileComparisonFailure, which relies on JUnit 3 classes // This is needed only for using FileComparisonFailure, which relies on JUnit 3 classes
add("testRuntimeOnly", commonDependency("junit:junit")) add("testRuntimeOnly", commonDependency("junit:junit"))
@@ -0,0 +1,34 @@
import org.gradle.api.Project
import org.gradle.kotlin.dsl.extra
import org.gradle.kotlin.dsl.project
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
val Project.intellijVersion
get() = rootProject.extra["versions.intellijSdk"]
fun Project.intellijCore() = dependencies.project(":dependencies:intellij-core")
fun Project.jpsModel() = "com.jetbrains.intellij.platform:jps-model:$intellijVersion"
fun Project.jpsModelSerialization() = "com.jetbrains.intellij.platform:jps-model-serialization:$intellijVersion"
fun Project.jpsModelImpl() = "com.jetbrains.intellij.platform:jps-model-impl:$intellijVersion"
fun Project.jpsBuildTest() = "com.jetbrains.intellij.idea:jps-build-test:$intellijVersion"
fun Project.intellijPlatformUtil() = "com.jetbrains.intellij.platform:util:$intellijVersion"
fun Project.intellijJavaRt() = "com.jetbrains.intellij.java:java-rt:$intellijVersion"
fun Project.intellijAnalysis() = "com.jetbrains.intellij.platform:analysis:$intellijVersion"
/**
* Runtime version of annotations that are already in Kotlin stdlib (historically Kotlin has older version of this one).
*
* SHOULD NOT BE USED IN COMPILE CLASSPATH!
*
* `@NonNull`, `@Nullabe` from `idea/annotations.jar` has `TYPE` target which leads to different types treatment in Kotlin compiler.
* On the other hand, `idea/annotations.jar` contains org/jetbrains/annotations/Async annations which is required for IDEA debugger.
*
* So, we are excluding `annotaions.jar` from all other `kotlin.build` and using this one for runtime only
* to avoid accidentally including `annotations.jar` by calling `intellijDep()`.
*/
fun Project.intellijRuntimeAnnotations() = "org.jetbrains:annotations:${rootProject.extra["versions.annotations"]}"
+3 -27
View File
@@ -80,33 +80,16 @@ fun Project.intellijDep(module: String? = null, forIde: Boolean = false) =
fun Project.intellijCoreDep() = "kotlin.build:intellij-core:${rootProject.extra["versions.intellijSdk"]}" fun Project.intellijCoreDep() = "kotlin.build:intellij-core:${rootProject.extra["versions.intellijSdk"]}"
fun Project.jpsStandalone() = "kotlin.build:jps-standalone:${rootProject.extra["versions.intellijSdk"]}"
fun Project.jpsBuildTest() = "com.jetbrains.intellij.idea:jps-build-test:${rootProject.extra["versions.intellijSdk"]}"
/**
* Runtime version of annotations that are already in Kotlin stdlib (historically Kotlin has older version of this one).
*
* SHOULD NOT BE USED IN COMPILE CLASSPATH!
*
* `@NonNull`, `@Nullabe` from `idea/annotations.jar` has `TYPE` target which leads to different types treatment in Kotlin compiler.
* On the other hand, `idea/annotations.jar` contains org/jetbrains/annotations/Async annations which is required for IDEA debugger.
*
* So, we are excluding `annotaions.jar` from all other `kotlin.build` and using this one for runtime only
* to avoid accidentally including `annotations.jar` by calling `intellijDep()`.
*/
fun Project.intellijRuntimeAnnotations() = "org.jetbrains:annotations:${rootProject.extra["versions.annotations"]}"
fun Project.intellijPluginDep(plugin: String, forIde: Boolean = false) = intellijDep(plugin, forIde) fun Project.intellijPluginDep(plugin: String, forIde: Boolean = false) = intellijDep(plugin, forIde)
fun ModuleDependency.includeJars(vararg names: String, rootProject: Project? = null) { fun ModuleDependency.includeJars(vararg names: String, rootProject: Project? = null) {
names.forEach { names.forEach {
var baseName = it.removeSuffix(".jar") var baseName = it.removeSuffix(".jar")
if (rootProject != null && rootProject.extra.has("ignore.jar.$baseName")) { if (rootProject != null && rootProject.extra.has("ignore.$baseName")) {
return@forEach return@forEach
} }
if (rootProject != null && rootProject.extra.has("versions.jar.$baseName")) { if (rootProject != null && rootProject.extra.has("versions.$baseName")) {
baseName += "-${rootProject.extra["versions.jar.$baseName"]}" baseName += "-${rootProject.extra["versions.$baseName"]}"
} }
artifact { artifact {
name = baseName name = baseName
@@ -130,11 +113,4 @@ object IntellijRootUtils {
} }
} }
@Suppress("UNCHECKED_CAST")
fun ModuleDependency.includeIntellijCoreJarDependencies(project: Project, jarsFilterPredicate: (String) -> Boolean = { true }): Unit =
includeJars(
*(project.rootProject.extra["IntellijCoreDependencies"] as List<String>).filter(jarsFilterPredicate).toTypedArray(),
rootProject = project.rootProject
)
fun Project.intellijRootDir() = IntellijRootUtils.getIntellijRootDir(project) fun Project.intellijRootDir() = IntellijRootUtils.getIntellijRootDir(project)
+3 -7
View File
@@ -26,15 +26,11 @@ dependencies {
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
testApi(intellijDep()) { includeJars("util", "idea", "idea_rt", rootProject = rootProject) } testApi(jpsModel())
testApi(intellijDep()) { includeJars("groovy", rootProject = rootProject) }
testApi(intellijPluginDep("java")) { includeJars("jps-builders") }
testApi(jpsStandalone()) { includeJars("jps-model") }
testApi(jpsBuildTest()) testApi(jpsBuildTest())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
testRuntimeOnly(intellijDep()) { includeJars("jna", rootProject = rootProject) } testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
testApi("org.junit.platform:junit-platform-launcher:${commonDependencyVersion("org.junit.platform", "")}") testApi("org.junit.platform:junit-platform-launcher:${commonDependencyVersion("org.junit.platform", "")}")
} }
+1 -1
View File
@@ -8,7 +8,7 @@ dependencies {
api(project(":core:descriptors")) api(project(":core:descriptors"))
api(project(":compiler:util")) api(project(":compiler:util"))
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+2 -1
View File
@@ -6,7 +6,8 @@ plugins {
dependencies { dependencies {
api(project(":core:compiler.common.jvm")) api(project(":core:compiler.common.jvm"))
api(project(":compiler:config.jvm")) api(project(":compiler:config.jvm"))
api(intellijCoreDep()) { includeJars("asm-all", "guava", rootProject = rootProject) } api(commonDependency("org.jetbrains.intellij.deps:asm-all"))
api(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+4 -2
View File
@@ -11,8 +11,10 @@ dependencies {
api(project(":compiler:frontend.java")) api(project(":compiler:frontend.java"))
api(project(":compiler:serialization")) api(project(":compiler:serialization"))
api(project(":compiler:backend.common.jvm")) api(project(":compiler:backend.common.jvm"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "asm-all", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("trove4j", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+2 -13
View File
@@ -12,7 +12,7 @@ val otherCompilerModules = compilerModules.filter { it != path }
val antLauncherJar by configurations.creating val antLauncherJar by configurations.creating
dependencies { dependencies {
testImplementation(intellijDep()) { includeJars("platform-impl", rootProject = rootProject) } // Should come before compiler, because of "progarded" stuff needed for tests testImplementation(intellijCore()) // Should come before compiler, because of "progarded" stuff needed for tests
testApi(project(":kotlin-script-runtime")) testApi(project(":kotlin-script-runtime"))
testApi(project(":kotlin-test:kotlin-test-jvm")) testApi(project(":kotlin-test:kotlin-test-jvm"))
@@ -33,21 +33,10 @@ dependencies {
testApi(project(":kotlin-scripting-compiler")) testApi(project(":kotlin-scripting-compiler"))
testApi(project(":kotlin-script-util")) testApi(project(":kotlin-script-util"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
otherCompilerModules.forEach { otherCompilerModules.forEach {
testCompileOnly(project(it)) testCompileOnly(project(it))
} }
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijDep()) {
includeJars(
"jps-model",
"streamex",
"idea_rt",
rootProject = rootProject
)
}
testRuntimeOnly(intellijPluginDep("java"))
testImplementation(project(":kotlin-reflect")) testImplementation(project(":kotlin-reflect"))
testImplementation(toolsJar()) testImplementation(toolsJar())
+2 -2
View File
@@ -39,8 +39,8 @@ dependencies {
compileOnly(project(":compiler:ir.tree.impl")) compileOnly(project(":compiler:ir.tree.impl"))
compileOnly(toolsJarApi()) compileOnly(toolsJarApi())
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
testApi(project(":compiler:backend")) testApi(project(":compiler:backend"))
testApi(project(":compiler:cli")) testApi(project(":compiler:cli"))
+3 -2
View File
@@ -10,8 +10,9 @@ dependencies {
api(project(":js:js.config")) api(project(":js:js.config"))
api(project(":native:kotlin-native-utils")) api(project(":native:kotlin-native-utils"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) } compileOnly(commonDependency("com.google.guava:guava"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -19,7 +19,7 @@ dependencies {
api(project(":js:js.dce")) api(project(":js:js.dce"))
api(project(":js:js.sourcemap")) api(project(":js:js.sourcemap"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -16,7 +16,7 @@ dependencies {
compileOnly(project(":daemon-common")) compileOnly(project(":daemon-common"))
compileOnly(project(":daemon-common-new")) compileOnly(project(":daemon-common-new"))
compileOnly(project(":compiler:util")) compileOnly(project(":compiler:util"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -6,7 +6,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:config")) api(project(":compiler:config"))
api(project(":core:compiler.common.jvm")) api(project(":core:compiler.common.jvm"))
compileOnly(intellijCoreDep()) { includeJars("asm-all", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -7,7 +7,7 @@ dependencies {
api(project(":core:metadata")) api(project(":core:metadata"))
api(project(":core:compiler.common")) api(project(":core:compiler.common"))
api(project(":compiler:util")) api(project(":compiler:util"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+5 -3
View File
@@ -7,14 +7,16 @@ dependencies {
api(project(":core:util.runtime")) api(project(":core:util.runtime"))
api(commonDependency("javax.inject")) api(commonDependency("javax.inject"))
compileOnly(kotlinStdlib()) compileOnly(kotlinStdlib())
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
testApi(kotlinStdlib()) testApi(kotlinStdlib())
testCompileOnly("org.jetbrains:annotations:13.0") testCompileOnly("org.jetbrains:annotations:13.0")
testApi(project(":kotlin-test:kotlin-test-jvm")) testApi(project(":kotlin-test:kotlin-test-jvm"))
testApi(project(":kotlin-test:kotlin-test-junit")) testApi(project(":kotlin-test:kotlin-test-junit"))
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijDep()) { includeJars("trove4j", "util") }
testRuntimeOnly(intellijCore())
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -16,8 +16,8 @@ dependencies {
compileOnly(project(":compiler:incremental-compilation-impl")) compileOnly(project(":compiler:incremental-compilation-impl"))
compileOnly(project(":daemon-common-new")) compileOnly(project(":daemon-common-new"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("trove4j") } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
runtimeOnly(project(":kotlin-reflect")) runtimeOnly(project(":kotlin-reflect"))
@@ -29,7 +29,6 @@ dependencies {
compileOnly(project(":js:js.frontend")) compileOnly(project(":js:js.frontend"))
compileOnly(project(":daemon-common")) { isTransitive = false } compileOnly(project(":daemon-common")) { isTransitive = false }
compileOnly(commonDependency("net.rubygrapefruit", "native-platform")) compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) }
embedded(project(":kotlin-daemon-client")) { isTransitive = false } embedded(project(":kotlin-daemon-client")) { isTransitive = false }
embedded(project(":daemon-common")) { isTransitive = false } embedded(project(":daemon-common")) { isTransitive = false }
@@ -25,7 +25,6 @@ dependencies {
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(project(":js:js.frontend")) compileOnly(project(":js:js.frontend"))
compileOnly(commonDependency("net.rubygrapefruit", "native-platform")) compileOnly(commonDependency("net.rubygrapefruit", "native-platform"))
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) }
embedded(project(":daemon-common")) { isTransitive = false } embedded(project(":daemon-common")) { isTransitive = false }
embedded(commonDependency("net.rubygrapefruit", "native-platform")) embedded(commonDependency("net.rubygrapefruit", "native-platform"))
@@ -9,11 +9,8 @@ val ktorExcludesForDaemon: List<Pair<String, String>> by rootProject.extra
dependencies { dependencies {
compileOnly(project(":daemon-common")) compileOnly(project(":daemon-common"))
api(kotlinStdlib()) api(kotlinStdlib())
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) } api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
isTransitive = false
}
api(commonDependency("io.ktor", "ktor-network")) { api(commonDependency("io.ktor", "ktor-network")) {
ktorExcludesForDaemon.forEach { (group, module) -> ktorExcludesForDaemon.forEach { (group, module) ->
exclude(group = group, module = module) exclude(group = group, module = module)
@@ -8,11 +8,8 @@ dependencies {
api(project(":kotlin-build-common")) api(project(":kotlin-build-common"))
api(kotlinStdlib()) api(kotlinStdlib())
compileOnly(project(":js:js.config")) compileOnly(project(":js:js.config"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) } api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) { isTransitive = false }
api(commonDependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core")) {
isTransitive = false
}
} }
sourceSets { sourceSets {
@@ -25,7 +25,7 @@ dependencies {
} }
} }
testImplementation(project(":kotlin-daemon")) testImplementation(project(":kotlin-daemon"))
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
} }
sourceSets { sourceSets {
+5 -5
View File
@@ -11,7 +11,7 @@ plugins {
} }
dependencies { dependencies {
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
testApi(projectTests(":compiler:test-infrastructure")) testApi(projectTests(":compiler:test-infrastructure"))
testApi(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:test-infrastructure-utils"))
@@ -31,11 +31,11 @@ dependencies {
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testRuntimeOnly(project(":compiler:fir:fir2ir:jvm-backend")) testRuntimeOnly(project(":compiler:fir:fir2ir:jvm-backend"))
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
testRuntimeOnly(intellijDep()) {
includeJars("intellij-deps-fastutil-8.4.1-4", "jps-model", "streamex", "jna", rootProject = rootProject)
}
testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
testRuntimeOnly(commonDependency("one.util:streamex"))
testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
testRuntimeOnly(toolsJar()) testRuntimeOnly(toolsJar())
} }
@@ -11,7 +11,7 @@ plugins {
} }
dependencies { dependencies {
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
testCompileOnly(project(":kotlin-test:kotlin-test-jvm")) testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
@@ -26,9 +26,8 @@ dependencies {
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
testRuntimeOnly(intellijDep()) { includeJars("idea_rt", "streamex", "jps-model", rootProject = rootProject) }
} }
val generationRoot = projectDir.resolve("tests-gen") val generationRoot = projectDir.resolve("tests-gen")
+1 -1
View File
@@ -13,7 +13,7 @@ dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -13,10 +13,11 @@ dependencies {
implementation(project(":kotlin-reflect-api")) implementation(project(":kotlin-reflect-api"))
/* /*
We do not need guava in the generator, but because of a bug in the IJ project importing, we need to have a dependency on intellijCoreDep We do not need guava in the generator, but because of a bug in the IJ project importing, we need to have a dependency on intellijCore
the same as it is in `:fir:tree:tree-generator` module to the project be imported correctly the same as it is in `:fir:tree:tree-generator` module to the project be imported correctly
*/ */
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
} }
@@ -17,7 +17,7 @@ dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -12,7 +12,7 @@ dependencies {
api(project(":core:compiler.common")) api(project(":core:compiler.common"))
api(kotlinxCollectionsImmutable()) api(kotlinxCollectionsImmutable())
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+2 -3
View File
@@ -21,9 +21,8 @@ dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.12") implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.12")
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("commons-lang-2.4") } compileOnly(commonDependency("commons-lang:commons-lang"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -24,7 +24,7 @@ dependencies {
implementation(project(":compiler:ir.tree.impl")) implementation(project(":compiler:ir.tree.impl"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -16,7 +16,7 @@ dependencies {
api(project(":compiler:fir:providers")) api(project(":compiler:fir:providers"))
api(project(":compiler:fir:semantics")) api(project(":compiler:fir:semantics"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -14,7 +14,7 @@ dependencies {
api(project(":compiler:fir:providers")) api(project(":compiler:fir:providers"))
api(project(":compiler:fir:semantics")) api(project(":compiler:fir:semantics"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+8 -7
View File
@@ -17,7 +17,7 @@ dependencies {
compileOnly(project(":compiler:ir.psi2ir")) compileOnly(project(":compiler:ir.psi2ir"))
compileOnly(project(":compiler:ir.backend.common")) compileOnly(project(":compiler:ir.backend.common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
testCompileOnly(project(":kotlin-test:kotlin-test-jvm")) testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
testCompileOnly(project(":kotlin-test:kotlin-test-junit")) testCompileOnly(project(":kotlin-test:kotlin-test-junit"))
@@ -38,14 +38,15 @@ dependencies {
testRuntimeOnly(project(":compiler:fir:fir2ir:jvm-backend")) testRuntimeOnly(project(":compiler:fir:fir2ir:jvm-backend"))
testRuntimeOnly(project(":generators")) testRuntimeOnly(project(":generators"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
testRuntimeOnly(intellijDep()) { testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
includeJars("jna", rootProject = rootProject) testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
} testRuntimeOnly(commonDependency("one.util:streamex"))
testRuntimeOnly(intellijDep()) { includeJars("intellij-deps-fastutil-8.4.1-4", "jps-model", "streamex", rootProject = rootProject) } testRuntimeOnly(jpsModel())
testRuntimeOnly(jpsModelImpl())
} }
val generationRoot = projectDir.resolve("tests-gen") val generationRoot = projectDir.resolve("tests-gen")
@@ -19,7 +19,8 @@ dependencies {
compileOnly(project(":compiler:backend.jvm")) compileOnly(project(":compiler:backend.jvm"))
api(project(":compiler:ir.serialization.common")) api(project(":compiler:ir.serialization.common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "asm-all", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -17,7 +17,7 @@ dependencies {
implementation(project(":core:deserialization.common.jvm")) implementation(project(":core:deserialization.common.jvm"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.cli.common.toBooleanLenient
/* /*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file. * that can be found in the license/LICENSE.txt file.
@@ -15,16 +13,10 @@ repositories {
} }
dependencies { dependencies {
testApi(intellijCoreDep()) { includeJars("intellij-core")} testApi(intellijCore())
testApi(intellijDep()) {
includeJars("extensions", "idea_rt", "util", "asm-all", "jna", rootProject = rootProject)
}
testCompileOnly(intellijPluginDep("java")) { includeJars("java-api") }
testRuntimeOnly("xerces:xercesImpl:2.12.0") testRuntimeOnly("xerces:xercesImpl:2.12.0")
testRuntimeOnly(intellijPluginDep("java")) testRuntimeOnly(commonDependency("commons-lang:commons-lang"))
testRuntimeOnly(intellijDep()) { includeJars("commons-lang-2.4") }
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
testCompileOnly(project(":kotlin-test:kotlin-test-jvm")) testCompileOnly(project(":kotlin-test:kotlin-test-jvm"))
+1 -1
View File
@@ -11,7 +11,7 @@ dependencies {
implementation(project(":core:util.runtime")) implementation(project(":core:util.runtime"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("guava", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
@@ -21,7 +21,8 @@ dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
implementation(kotlinxCollectionsImmutable()) implementation(kotlinxCollectionsImmutable())
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
testImplementation(commonDependency("junit:junit")) testImplementation(commonDependency("junit:junit"))
testImplementation(projectTests(":compiler:tests-common")) testImplementation(projectTests(":compiler:tests-common"))
@@ -38,8 +39,8 @@ dependencies {
implementation("org.openjdk.jmh", "jmh-generator-bytecode", jmhVersion) implementation("org.openjdk.jmh", "jmh-generator-bytecode", jmhVersion)
implementation("org.openjdk.jmh", "jmh-generator-annprocess", jmhVersion) implementation("org.openjdk.jmh", "jmh-generator-annprocess", jmhVersion)
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
} }
val generationRoot = projectDir.resolve("tests-gen") val generationRoot = projectDir.resolve("tests-gen")
@@ -15,9 +15,8 @@ dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
implementation(kotlinxCollectionsImmutable()) implementation(kotlinxCollectionsImmutable())
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
testImplementation(intellijDep()) { includeJars("platform-api", rootProject = rootProject) }
testImplementation(commonDependency("junit:junit")) testImplementation(commonDependency("junit:junit"))
testImplementation(projectTests(":compiler:tests-common")) testImplementation(projectTests(":compiler:tests-common"))
@@ -29,8 +28,8 @@ dependencies {
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
} }
val generationRoot = projectDir.resolve("tests-gen") val generationRoot = projectDir.resolve("tests-gen")
@@ -5,9 +5,6 @@
package org.jetbrains.kotlin.fir.builder package org.jetbrains.kotlin.fir.builder
import com.intellij.openapi.fileTypes.FileTypeManager
import com.intellij.openapi.fileTypes.FileTypeRegistry
import com.intellij.openapi.util.Getter
import com.intellij.openapi.util.io.FileUtil import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.util.io.FileUtilRt import com.intellij.openapi.util.io.FileUtilRt
import com.intellij.psi.PsiFile import com.intellij.psi.PsiFile
@@ -177,12 +174,6 @@ abstract class AbstractRawFirBuilderTestCase : KtParsingTestCase(
return element return element
} }
} }
override fun tearDown() {
super.tearDown()
FileTypeRegistry.ourInstanceGetter = Getter<FileTypeRegistry> { FileTypeManager.getInstance() }
}
} }
private fun throwTwiceVisitingError(element: FirElement) { private fun throwTwiceVisitingError(element: FirElement) {
@@ -14,10 +14,11 @@ dependencies {
implementation(kotlinxCollectionsImmutable()) implementation(kotlinxCollectionsImmutable())
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("com.google.guava:guava"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -9,7 +9,7 @@ dependencies {
implementation(project(":core:util.runtime")) implementation(project(":core:util.runtime"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("guava", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -8,7 +8,7 @@ dependencies {
implementation(project(":core:util.runtime")) implementation(project(":core:util.runtime"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("guava", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -10,7 +10,7 @@ dependencies {
api(project(":compiler:fir:cones")) api(project(":compiler:fir:cones"))
// Necessary only to store bound PsiElement inside FirElement // Necessary only to store bound PsiElement inside FirElement
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -16,12 +16,10 @@ dependencies {
implementation(project(":compiler:frontend.common")) implementation(project(":compiler:frontend.common"))
implementation(project(":compiler:fir:cones")) implementation(project(":compiler:fir:cones"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "guava", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(intellijDep()) { compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
includeJars("trove4j", rootProject = rootProject)
}
runtimeOnly(intellijCoreDep()) { includeJars("jdom") } runtimeOnly(commonDependency("org.jetbrains.intellij.deps:jdom"))
} }
val writeCopyright by task<WriteCopyrightToFile> { val writeCopyright by task<WriteCopyrightToFile> {
@@ -6,7 +6,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:frontend.common")) api(project(":compiler:frontend.common"))
api(project(":compiler:psi")) api(project(":compiler:psi"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -6,8 +6,8 @@ plugins {
dependencies { dependencies {
api(project(":compiler:config")) api(project(":compiler:config"))
api(project(":compiler:container")) api(project(":compiler:container"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("guava", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+4 -2
View File
@@ -11,8 +11,10 @@ dependencies {
api("javax.annotation:jsr250-api:1.0") api("javax.annotation:jsr250-api:1.0")
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
api(project(":compiler:resolution.common.jvm")) api(project(":compiler:resolution.common.jvm"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "guava", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+3 -2
View File
@@ -16,8 +16,9 @@ dependencies {
api(project(":compiler:frontend.common-psi")) api(project(":compiler:frontend.common-psi"))
api(project(":kotlin-script-runtime")) api(project(":kotlin-script-runtime"))
api(commonDependency("io.javaslang","javaslang")) api(commonDependency("io.javaslang","javaslang"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("trove4j", "guava", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -5,8 +5,8 @@ plugins {
dependencies { dependencies {
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("guava", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
@@ -15,19 +15,20 @@ dependencies {
api(project(":compiler:cli-js")) api(project(":compiler:cli-js"))
api(project(":kotlin-build-common")) api(project(":kotlin-build-common"))
api(project(":daemon-common")) api(project(":daemon-common"))
implementation("com.google.code.gson:gson:${rootProject.extra["versions.jar.gson"]}") implementation(commonDependency("com.google.code.gson:gson"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
testApi(commonDependency("junit:junit")) testApi(commonDependency("junit:junit"))
testApi(project(":kotlin-test:kotlin-test-junit")) testApi(project(":kotlin-test:kotlin-test-junit"))
testApi(kotlinStdlib()) testApi(kotlinStdlib())
testApi(projectTests(":kotlin-build-common")) testApi(projectTests(":kotlin-build-common"))
testApi(projectTests(":compiler:tests-common")) testApi(projectTests(":compiler:tests-common"))
testApi(intellijCoreDep()) { includeJars("intellij-core") } testApi(intellijCore())
testApi(intellijDep()) { includeJars("log4j", "jdom") } testApi(commonDependency("org.jetbrains.intellij.deps:log4j"))
testApi(commonDependency("org.jetbrains.intellij.deps:jdom"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testRuntimeOnly(intellijDep()) { includeJars("lz4-java", "jna", "idea_rt", rootProject = rootProject) }
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -9,7 +9,7 @@ dependencies {
api(project(":compiler:backend-common")) api(project(":compiler:backend-common"))
api(project(":compiler:ir.tree")) api(project(":compiler:ir.tree"))
api(project(":compiler:ir.interpreter")) api(project(":compiler:ir.interpreter"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
api(project(":js:js.frontend")) api(project(":js:js.frontend"))
api(project(":js:js.sourcemap")) api(project(":js:js.sourcemap"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+2 -1
View File
@@ -9,7 +9,8 @@ dependencies {
api(project(":compiler:ir.backend.common")) api(project(":compiler:ir.backend.common"))
api(project(":compiler:backend.common.jvm")) api(project(":compiler:backend.common.jvm"))
compileOnly(project(":compiler:ir.tree.impl")) compileOnly(project(":compiler:ir.tree.impl"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", "asm-all", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} }
sourceSets { sourceSets {
@@ -8,7 +8,7 @@ dependencies {
api(project(":compiler:ir.backend.common")) api(project(":compiler:ir.backend.common"))
api(project(":compiler:backend.jvm")) api(project(":compiler:backend.jvm"))
implementation(project(":compiler:ir.tree.impl")) implementation(project(":compiler:ir.tree.impl"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -10,7 +10,7 @@ dependencies {
api(project(":compiler:ir.serialization.jvm")) api(project(":compiler:ir.serialization.jvm"))
implementation(project(":compiler:backend.jvm.lower")) implementation(project(":compiler:backend.jvm.lower"))
implementation(project(":compiler:backend.jvm.codegen")) implementation(project(":compiler:backend.jvm.codegen"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -8,8 +8,8 @@ dependencies {
api(project(":compiler:ir.backend.common")) api(project(":compiler:ir.backend.common"))
api(project(":compiler:backend.jvm")) api(project(":compiler:backend.jvm"))
implementation(project(":compiler:ir.tree.impl")) implementation(project(":compiler:ir.tree.impl"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("trove4j", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -16,7 +16,7 @@ dependencies {
api(project(":compiler:backend.js")) api(project(":compiler:backend.js"))
api(project(":wasm:wasm.ir")) api(project(":wasm:wasm.ir"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -8,7 +8,7 @@ dependencies {
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
api(project(":compiler:backend-common")) api(project(":compiler:backend-common"))
api(project(":compiler:ir.tree")) api(project(":compiler:ir.tree"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -5,7 +5,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:ir.tree")) api(project(":compiler:ir.tree"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -10,7 +10,7 @@ dependencies {
implementation(project(":compiler:util")) implementation(project(":compiler:util"))
implementation(project(":compiler:config")) implementation(project(":compiler:config"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -12,7 +12,7 @@ dependencies {
implementation(project(":compiler:psi")) implementation(project(":compiler:psi"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -12,7 +12,7 @@ dependencies {
implementation(project(":compiler:ir.backend.common")) implementation(project(":compiler:ir.backend.common"))
compileOnly(project(":kotlin-reflect-api")) compileOnly(project(":kotlin-reflect-api"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -2
View File
@@ -8,8 +8,7 @@ dependencies {
api(project(":compiler:frontend.java")) api(project(":compiler:frontend.java"))
compileOnly(toolsJarApi()) compileOnly(toolsJarApi())
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) }
} }
sourceSets { sourceSets {
+4 -5
View File
@@ -9,11 +9,10 @@ dependencies {
api(project(":compiler:backend")) api(project(":compiler:backend"))
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
api(project(":compiler:frontend.java")) api(project(":compiler:frontend.java"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(intellijDep()) { includeJars("platform-core-ui", "platform-util-ui") } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
compileOnly(commonDependency("com.google.guava:guava"))
compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "guava", rootProject = rootProject) }
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -7,7 +7,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:util")) api(project(":compiler:util"))
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -7,7 +7,7 @@ plugins {
} }
dependencies { dependencies {
compileOnly(intellijDep()) { includeJars("asm-all", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} }
sourceSets { sourceSets {
+3 -2
View File
@@ -15,8 +15,9 @@ dependencies {
api(project(":compiler:frontend.common")) api(project(":compiler:frontend.common"))
api(project(":kotlin-script-runtime")) api(project(":kotlin-script-runtime"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("guava", "trove4j", rootProject = rootProject) } compileOnly(commonDependency("com.google.guava:guava"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
jflexPath(commonDependency("org.jetbrains.intellij.deps.jflex", "jflex")) jflexPath(commonDependency("org.jetbrains.intellij.deps.jflex", "jflex"))
} }
@@ -9,8 +9,10 @@ dependencies {
api(project(":compiler:psi")) api(project(":compiler:psi"))
implementation(project(":compiler:util")) implementation(project(":compiler:util"))
implementation(commonDependency("io.javaslang","javaslang")) implementation(commonDependency("io.javaslang","javaslang"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeJars("asm-all", "trove4j", "guava", rootProject = rootProject) } compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
compileOnly(commonDependency("com.google.guava:guava"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -7,7 +7,7 @@ dependencies {
api(project(":compiler:util")) api(project(":compiler:util"))
api(project(":core:descriptors")) api(project(":core:descriptors"))
api(project(":compiler:resolution.common")) api(project(":compiler:resolution.common"))
compileOnly(intellijDep()) { includeJars("trove4j") } compileOnly(commonDependency("org.jetbrains.intellij.deps:trove4j"))
} }
sourceSets { sourceSets {
+1 -1
View File
@@ -8,7 +8,7 @@ dependencies {
api(project(":core:deserialization")) api(project(":core:deserialization"))
api(project(":compiler:util")) api(project(":compiler:util"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core", rootProject = rootProject) } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -6,17 +6,14 @@ plugins {
dependencies { dependencies {
testImplementation(project(":compiler:fir:entrypoint")) testImplementation(project(":compiler:fir:entrypoint"))
testImplementation(project(":compiler:cli")) testImplementation(project(":compiler:cli"))
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(project(":core:descriptors.runtime")) testRuntimeOnly(project(":core:descriptors.runtime"))
testImplementation(intellijDep()) { // This dependency is needed only for FileComparisonFailure
// This dependency is needed only for FileComparisonFailure testImplementation(intellijJavaRt())
includeJars("idea_rt", rootProject = rootProject)
isTransitive = false
}
} }
sourceSets { sourceSets {
@@ -6,7 +6,7 @@ plugins {
dependencies { dependencies {
testApi(project(":compiler:fir:entrypoint")) testApi(project(":compiler:fir:entrypoint"))
testApi(project(":compiler:cli")) testApi(project(":compiler:cli"))
testApi(intellijCoreDep()) { includeJars("intellij-core") } testApi(intellijCore())
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
@@ -14,9 +14,7 @@ dependencies {
testImplementation(projectTests(":compiler:test-infrastructure-utils")) testImplementation(projectTests(":compiler:test-infrastructure-utils"))
testRuntimeOnly(intellijDep()) { testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
includeJars("jna", rootProject = rootProject)
}
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -11,8 +11,8 @@ dependencies {
testApi(projectTests(":generators:test-generator")) testApi(projectTests(":generators:test-generator"))
testApi(projectTests(":compiler:tests-common")) testApi(projectTests(":compiler:tests-common"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testRuntimeOnly(intellijCoreDep()) { includeJars("intellij-core") } testRuntimeOnly(intellijCore())
} }
sourceSets { sourceSets {
+7 -12
View File
@@ -10,7 +10,7 @@ dependencies {
testApi(project(":compiler:cli")) testApi(project(":compiler:cli"))
testImplementation(project(":compiler:ir.tree.impl")) testImplementation(project(":compiler:ir.tree.impl"))
testImplementation(project(":compiler:backend.jvm.entrypoint")) testImplementation(project(":compiler:backend.jvm.entrypoint"))
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
@@ -29,17 +29,12 @@ dependencies {
* declared as Api dependencies to propagate them to all modules * declared as Api dependencies to propagate them to all modules
* which depend on current one * which depend on current one
*/ */
testApi(intellijDep()) { testApi(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
includeJars( testApi(commonDependency("one.util:streamex"))
"intellij-deps-fastutil-8.4.1-4", testApi(commonDependency("net.java.dev.jna:jna"))
"idea_rt", testApi(jpsModel()) { isTransitive = false }
"jps-model", testApi(jpsModelImpl()) { isTransitive = false }
"platform-impl", testApi(intellijJavaRt())
"streamex",
"jna",
rootProject = rootProject
)
}
testApi(toolsJar()) testApi(toolsJar())
} }
+14 -22
View File
@@ -57,34 +57,26 @@ dependencies {
testApi(commonDependency("com.android.tools:r8")) testApi(commonDependency("com.android.tools:r8"))
testCompileOnly(project(":kotlin-reflect-api")) testCompileOnly(project(":kotlin-reflect-api"))
testCompileOnly(toolsJar()) testCompileOnly(toolsJar())
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
/* /*
* Actually those dependencies are needed only at runtime, but they * Actually those dependencies are needed only at runtime, but they
* declared as Api dependencies to propagate them to all modules * declared as Api dependencies to propagate them to all modules
* which depend on current one * which depend on current one
*/ */
testApi(intellijDep()) { testApi(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
includeJars( testApi(commonDependency("one.util:streamex"))
"intellij-deps-fastutil-8.4.1-4", testApi(commonDependency("net.java.dev.jna:jna"))
"idea_rt", testApi(jpsModel()) { isTransitive = false }
"jps-model", testApi(jpsModelImpl()) { isTransitive = false }
"platform-impl", testApi(intellijJavaRt())
"streamex",
"jna", testImplementation(commonDependency("com.google.guava:guava"))
rootProject = rootProject testImplementation(commonDependency("org.jetbrains.intellij.deps:trove4j"))
) testImplementation(commonDependency("org.jetbrains.intellij.deps:asm-all"))
} testImplementation(commonDependency("org.jetbrains.intellij.deps:log4j"))
testImplementation(intellijDep()) { testImplementation(commonDependency("org.jetbrains.intellij.deps:jdom"))
includeJars(
"guava",
"trove4j",
"asm-all",
"log4j",
"jdom",
rootProject = rootProject
)
}
testApiJUnit5() testApiJUnit5()
} }
+6 -12
View File
@@ -27,19 +27,13 @@ dependencies {
testApi(projectTests(":compiler:test-infrastructure-utils")) testApi(projectTests(":compiler:test-infrastructure-utils"))
testApi(project(":kotlin-preloader")) testApi(project(":kotlin-preloader"))
testApi(commonDependency("com.android.tools:r8")) testApi(commonDependency("com.android.tools:r8"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") } testCompileOnly(intellijCore())
testApi(intellijDep()) { testApi(commonDependency("com.google.guava:guava"))
includeJars( testApi(commonDependency("org.jetbrains.intellij.deps:trove4j"))
"guava", testApi(commonDependency("org.jetbrains.intellij.deps:asm-all"))
"trove4j", testApi(commonDependency("org.jetbrains.intellij.deps:log4j"))
"asm-all", testApi(commonDependency("org.jetbrains.intellij.deps:jdom"))
"log4j",
"jdom",
rootProject = rootProject
)
isTransitive = false
}
} }
sourceSets { sourceSets {
@@ -14,9 +14,8 @@ dependencies {
testApiJUnit5(vintageEngine = true, runner = true, suiteApi = true) testApiJUnit5(vintageEngine = true, runner = true, suiteApi = true)
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(intellijDep())
testJvm6ServerRuntime(projectTests(":compiler:tests-common-jvm6")) testJvm6ServerRuntime(projectTests(":compiler:tests-common-jvm6"))
} }
+3 -6
View File
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins { plugins {
kotlin("jvm") kotlin("jvm")
id("jps-compatible") id("jps-compatible")
@@ -8,15 +6,14 @@ plugins {
dependencies { dependencies {
testApi(project(":kotlin-scripting-compiler")) testApi(project(":kotlin-scripting-compiler"))
testApi(projectTests(":compiler:tests-common")) testApi(projectTests(":compiler:tests-common"))
testImplementation(intellijCoreDep()) { includeJars("intellij-core") } testImplementation(intellijCore())
testApi(projectTests(":generators:test-generator")) testApi(projectTests(":generators:test-generator"))
testRuntimeOnly(project(":kotlin-reflect")) testRuntimeOnly(project(":kotlin-reflect"))
testRuntimeOnly(toolsJar()) testRuntimeOnly(toolsJar())
testRuntimeOnly(intellijPluginDep("java")) if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
if (kotlinBuildProperties.isInJpsBuildIdeaSync)
testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar")) testRuntimeOnly(files("${rootProject.projectDir}/dist/kotlinc/lib/kotlin-reflect.jar"))
}
} }
sourceSets { sourceSets {
+4 -8
View File
@@ -5,18 +5,14 @@ plugins {
dependencies { dependencies {
testApi(projectTests(":compiler")) testApi(projectTests(":compiler"))
testImplementation(projectTests(":compiler:test-infrastructure")) testImplementation(projectTests(":compiler:test-infrastructure"))
testImplementation(projectTests(":compiler:tests-common-new")) testImplementation(projectTests(":compiler:tests-common-new"))
testApi(intellijDep()) { testApi(commonDependency("com.google.code.gson:gson"))
includeJars("gson", "groovy", "groovy-xml", rootProject = rootProject) testApi(commonDependency("org.codehaus.groovy:groovy"))
} testApi(commonDependency("org.codehaus.groovy:groovy-xml"))
testCompileOnly(intellijCoreDep()) { includeJars("intellij-core") }
testRuntimeOnly(intellijDep()) {
includeJars("streamex", rootProject = rootProject)
}
testRuntimeOnly(intellijPluginDep("java"))
api("org.jsoup:jsoup:1.14.2") api("org.jsoup:jsoup:1.14.2")
if (kotlinBuildProperties.isInJpsBuildIdeaSync) { if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
+5 -3
View File
@@ -7,9 +7,11 @@ dependencies {
api(kotlinStdlib()) api(kotlinStdlib())
api(project(":compiler:compiler.version")) api(project(":compiler:compiler.version"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
compileOnly(intellijDep()) { includeIntellijCoreJarDependencies(project) } compileOnly(commonDependency("org.jetbrains.intellij.deps:log4j"))
compileOnly(jpsStandalone()) { includeJars("jps-model") } compileOnly(commonDependency("org.jetbrains.intellij.deps:asm-all"))
compileOnly(jpsModel()) { isTransitive = false }
compileOnly(jpsModelImpl()) { isTransitive = false }
} }
sourceSets { sourceSets {
+2 -2
View File
@@ -19,8 +19,8 @@ dependencies {
testApi(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests")) testApi(projectTests(":compiler:fir:analysis-tests:legacy-fir-tests"))
testImplementation(projectTests(":generators:test-generator")) testImplementation(projectTests(":generators:test-generator"))
testRuntimeOnly(intellijDep()) { includeJars("intellij-deps-fastutil-8.4.1-4") } testRuntimeOnly(commonDependency("org.jetbrains.intellij.deps.fastutil:intellij-deps-fastutil"))
testRuntimeOnly(intellijDep()) { includeJars("jna", rootProject = rootProject) } testRuntimeOnly(commonDependency("net.java.dev.jna:jna"))
} }
val generationRoot = projectDir.resolve("tests-gen") val generationRoot = projectDir.resolve("tests-gen")
+1 -1
View File
@@ -5,7 +5,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:frontend")) api(project(":compiler:frontend"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -7,7 +7,7 @@ dependencies {
api(project(":compiler:fir:raw-fir:psi2fir")) api(project(":compiler:fir:raw-fir:psi2fir"))
api(project(":compiler:fir:resolve")) api(project(":compiler:fir:resolve"))
api(project(":compiler:visualizer:common")) api(project(":compiler:visualizer:common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
@@ -5,7 +5,7 @@ plugins {
dependencies { dependencies {
api(project(":compiler:visualizer:common")) api(project(":compiler:visualizer:common"))
compileOnly(intellijCoreDep()) { includeJars("intellij-core") } compileOnly(intellijCore())
} }
sourceSets { sourceSets {
+1 -3
View File
@@ -25,9 +25,7 @@ dependencies {
testApi(projectTests(":compiler:tests-common")) testApi(projectTests(":compiler:tests-common"))
testApi(projectTests(":generators:test-generator")) testApi(projectTests(":generators:test-generator"))
testApi(intellijCoreDep()) { includeJars("intellij-core") } testApi(intellijCore())
testRuntimeOnly(intellijDep()) { includeJars("platform-concurrency", "idea_rt", rootProject = rootProject) }
testRuntimeOnly(jpsStandalone()) { includeJars("jps-model") }
} }
sourceSets { sourceSets {

Some files were not shown because too many files have changed in this diff Show More