File tree Expand file tree Collapse file tree 6 files changed +11
-29
lines changed Expand file tree Collapse file tree 6 files changed +11
-29
lines changed Original file line number Diff line number Diff line change 22 * Copyright 2023-2025 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
33 */
44
5- import util.otherwise
65import util.whenForIde
76
87plugins {
@@ -16,10 +15,11 @@ val kotlinLangVersion = libs.versions.kotlin.lang.get()
1615
1716allprojects {
1817 group = " org.jetbrains.kotlinx"
19- whenForIde {
20- version = " $kotlinCompilerVersion -$rpcVersion "
21- } otherwise {
22- version = " $kotlinLangVersion -$rpcVersion "
18+
19+ version = if (kotlinCompilerVersion != kotlinLangVersion) {
20+ " $kotlinCompilerVersion -$rpcVersion "
21+ } else {
22+ " $kotlinLangVersion -$rpcVersion "
2323 }
2424}
2525
Original file line number Diff line number Diff line change 33 */
44
55import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
6- import util.otherwise
7- import util.whenForIde
86
97plugins {
108 alias(libs.plugins.conventions.jvm)
@@ -20,11 +18,7 @@ kotlin {
2018}
2119
2220dependencies {
23- whenForIde {
24- compileOnly(libs.kotlin.compiler)
25- } otherwise {
26- compileOnly(libs.kotlin.compiler.embeddable)
27- }
21+ compileOnly(libs.kotlin.compiler)
2822
2923 implementation(projects.compilerPluginCommon)
3024}
Original file line number Diff line number Diff line change 33 */
44
55import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
6- import util.otherwise
7- import util.whenForIde
86
97plugins {
108 alias(libs.plugins.conventions.jvm)
@@ -16,11 +14,7 @@ kotlin {
1614}
1715
1816dependencies {
19- whenForIde {
20- compileOnly(libs.kotlin.compiler)
21- } otherwise {
22- compileOnly(libs.kotlin.compiler.embeddable)
23- }
17+ compileOnly(libs.kotlin.compiler)
2418
2519 implementation(projects.compilerPluginK2)
2620 implementation(projects.compilerPluginCommon)
Original file line number Diff line number Diff line change 33 */
44
55import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
6- import util.otherwise
7- import util.whenForIde
86
97plugins {
108 alias(libs.plugins.conventions.jvm)
@@ -16,9 +14,5 @@ kotlin {
1614}
1715
1816dependencies {
19- whenForIde {
20- compileOnly(libs.kotlin.compiler)
21- } otherwise {
22- compileOnly(libs.kotlin.compiler.embeddable)
23- }
17+ compileOnly(libs.kotlin.compiler)
2418}
Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ kotlin {
7272}
7373
7474dependencies {
75+ compileOnly(libs.kotlin.compiler)
76+
7577 whenForIde {
76- compileOnly(libs.kotlin.compiler)
7778 compileOnly(libs.serialization.plugin.forIde) {
7879 isTransitive = false
7980 }
8081 } otherwise {
81- compileOnly(libs.kotlin.compiler.embeddable)
8282 compileOnly(libs.serialization.plugin)
8383 }
84+
8485 implementation(projects.compilerPluginCommon)
8586}
Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ kotlin-annotations-jvm = { module = "org.jetbrains.kotlin:kotlin-annotations-jvm
5555kotlin-gradle-plugin = { module = " org.jetbrains.kotlin:kotlin-gradle-plugin" , version.ref = " kotlin-lang" }
5656
5757kotlin-compiler = { module = " org.jetbrains.kotlin:kotlin-compiler" , version.ref = " kotlin-compiler" }
58- kotlin-compiler-embeddable = { module = " org.jetbrains.kotlin:kotlin-compiler-embeddable" }
5958kotlin-compiler-test-framework = { module = " org.jetbrains.kotlin:kotlin-compiler-internal-test-framework" , version.ref = " kotlin-lang" }
6059serialization-plugin = { module = " org.jetbrains.kotlin:kotlin-serialization-compiler-plugin" , version.ref = " kotlin-compiler" }
6160serialization-plugin-forIde = { module = " org.jetbrains.kotlin:kotlinx-serialization-compiler-plugin-for-ide" , version.ref = " kotlin-compiler" }
You can’t perform that action at this time.
0 commit comments