sureshg / gradle-script-kotlin

Kotlin language support for Gradle build scripts

Home Page:http://gradle.org/blog/kotlin-meets-gradle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle Script Kotlin

status license

Welcome! Gradle Script Kotlin provides support for writing Gradle build scripts using JetBrains' Kotlin language. It aims to provide Gradle users with a rich, flexible and statically-typed approach to developing build logic in conjunction with the best IDE and tooling experience possible.

You can read more about the project in our announcement blog post and check out the frequently asked questions in the project wiki.

Getting Started

The fastest way to get up and running with a Kotlin-based Gradle build is to work with one of the samples. You'll find complete instructions in the README there. There are also some helpful getting started notes for when your build logic gets more complicated.

Issue Tracking

Found a bug? Have an idea for an improvement? Feel free to add an issue.

If you're dealing with what you believe to be an issue with Kotlin itself or the Kotlin Plugin for IDEA, you may want to search JetBrains' YouTrack first to see if it is a known issue. In any case, feel free to add an issue here for it as well. We'd like to know and track what our users are experiencing regardless whether the issue is with Gradle Script Kotlin or with Kotlin itself.

Staying in Touch

Come chat with us in the #gradle channel of the public Kotlin Slack instance.

Limitations

  • settings.gradle cannot yet be written Kotlin, continue to use Groovy there for now.

  • Gradle does not yet have auto-detection of Kotlin-based build scripts, meaning you must either:

    a. use ./gradlew -b build.gradle.kts, or

    b. add rootProject.buildFileName='build.gradle.kts' to your settings.gradle file.

    Due to this limitation, importing projects into IDEA currently requires the presence of a settings.gradle in order for IDEA to recognize the project as a Gradle project

License

Like the rest of Gradle, Gradle Script Kotlin is released under version 2.0 of the Apache License.

About

Kotlin language support for Gradle build scripts

http://gradle.org/blog/kotlin-meets-gradle

License:Other


Languages

Language:Kotlin 99.8%Language:Shell 0.2%