Skip to content

Commit 9a93615

Browse files
committed
Configure Kotlin plugin support for Eclipse in Gradle build
This commit configures the Kotlin plugin for Eclipse in the spring-core-coroutines Gradle project so that users no longer have to manually "Configure Kotlin / Add Kotlin Nature" within the Eclipse IDE after importing projects. This change is currently limited to the spring-core-coroutines project since it is the only project in which Java code depends on compiled Kotlin code; however, this change may later be applied to additional projects if desirable.
1 parent bd414df commit 9a93615

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spring-core-coroutines/spring-core-coroutines.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@ dependencies {
77
compile("org.jetbrains.kotlinx:kotlinx-coroutines-core:${coroutinesVersion}")
88
compile("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:${coroutinesVersion}")
99
}
10+
11+
eclipse.project {
12+
buildCommand "org.jetbrains.kotlin.ui.kotlinBuilder"
13+
buildCommand "org.eclipse.jdt.core.javabuilder"
14+
natures "org.jetbrains.kotlin.core.kotlinNature"
15+
natures "org.eclipse.jdt.core.javanature"
16+
linkedResource name: "kotlin_bin", type: "2", locationUri: "org.jetbrains.kotlin.core.filesystem:/" + project.name + "/kotlin_bin"
17+
}
18+
19+
eclipse.classpath.containers "org.jetbrains.kotlin.core.KOTLIN_CONTAINER"

0 commit comments

Comments
 (0)