de-jcup / egradle

EGradle is a lightweight gradle integration for eclipse
https://marketplace.eclipse.org/content/egradle-ide
Apache License 2.0
27 stars 3 forks source link

Kotlin script support #197

Open paulvi opened 7 years ago

paulvi commented 7 years ago

Gradle now supports other language Kotlin in addition to Groovy DSL

see

The Kotlin plugin for Eclipse is developed by JetBrains

Example build.gradle.kts

import org.gradle.api.tasks.*

apply<ApplicationPlugin>()

configure<ApplicationPluginConvention> {
    mainClassName = "org.gradle.samples.HelloWorld"
}

repositories {
    jcenter()
}

dependencies {
    compile("commons-lang:commons-lang:2.4")
    testCompile("junit:junit:4.12")
}

task<Copy>("copyConfig") {
    from("src/main/conf")
    into("build/conf")
    exclude("**/*.old")
    includeEmptyDirs = false
}
de-jcup commented 7 years ago

Kotlin seems to have static types so it would be much easier to integrate. Maybe this could be done later. The Model approach EGradle uses for outline model is independent from groovy itself and could be filled from Kotlin-Sources as well.

de-jcup commented 7 years ago

https://github.com/antlr/grammars-v4/tree/master/kotlin