Skip to content

Commit 71b1ce1

Browse files
ALikhachevSpace Team
authored and
Space Team
committed
[Build] Use fixated compiler version for kotlin-gradle-subplugin-example
Relates to KT-61911 As this project produces a Gradle plugin, it has AV/LV limitations and should not use dependencies of LV newer than the compiler used to produce the plugin
1 parent 36b7d56 commit 71b1ce1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

libraries/examples/kotlin-gradle-subplugin-example/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ dependencies {
1818
// compile "org.jetbrains.kotlin:kotlin-gradle-plugin-api:$kotlin_version"
1919

2020
compileOnly RepoDependencies.kotlinStdlib(project)
21-
compileOnly project(':compiler')
22-
compileOnly project(':compiler:plugin-api')
23-
compileOnly project(':compiler:cli-common')
24-
compileOnly project(':compiler:cli')
21+
// kotlin-for-gradle-plugins-compilation
22+
String btaBootstrapVersion = libs.versions.kotlin.for.gradle.plugins.compilation.get()
23+
compileOnly("org.jetbrains.kotlin:kotlin-compiler-embeddable:$btaBootstrapVersion")
2524

2625
compileOnly gradleApi()
27-
28-
compileOnly project(':dependencies:intellij-core')
2926
}
3027

3128
GradleCommonKt.configureCommonPublicationSettingsForGradle(project, false, false)

libraries/examples/kotlin-gradle-subplugin-example/src/main/kotlin/example/CompilerPlugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
package example
1818

19-
import com.intellij.mock.MockProject
2019
import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity
20+
import org.jetbrains.kotlin.com.intellij.mock.MockProject
2121
import org.jetbrains.kotlin.compiler.plugin.*
2222
import org.jetbrains.kotlin.config.CompilerConfiguration
2323
import org.jetbrains.kotlin.config.CompilerConfigurationKey

0 commit comments

Comments
 (0)