Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

0.6.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@bamboo bamboo released this 16 Dec 13:17
· 3017 commits to master since this release
v0.6.0
7bf71f1

General Notes

Gradle Script Kotlin v0.6.0 introduces the plugins DSL and it is a major milestone toward achieving feature parity with the Groovy frontend. v0.6.0 is expected to be included in a future Gradle release after Gradle 3.3.

IMPORTANT: This release requires the latest IntelliJ IDEA Kotlin Plugin from the EAP 1.1 channel (1.1-M03+).

WARNING: This release is incompatible with the Kotlin Gradle plugin 1.0.x.

The features in this release are also available for immediate use within the latest Gradle Script Kotlin distribution snapshot. To use it, upgrade your Gradle wrapper in the following fashion:

$ cd $YOUR_PROJECT_ROOT
$ gradle wrapper --gradle-distribution-url https://repo.gradle.org/gradle/kotlin-dsl-snapshots-local/gradle-script-kotlin-3.4-20161216120313+0000-all.zip

Updates since v0.5.1

  • Plugins DSL (#186). Plugins can now be applied by string id and version within the newly introduced plugins block. The semantics are the same as for the Groovy plugins DSL.
plugins {
    id("org.gradle.hello-world") version "0.2" apply false
}
  • Improved plugins DSL for builtin plugins (#168). Builtin plugins can be applied via a type-safe and tooling-friendly DSL that enables content-assist, quick documentation and code navigation.
plugins {
    java
    application
}
  • Build script in sub-project of a multi-project build can be edited with the correct classpath (#130). With this update IDEA will now receive the correct classpath for build scripts from sub-projects in a multi-project build.

  • Kotlin 1.1-M03 (#187). Build scripts are now compiled against the latest and greatest Kotlin release. WARNING: The Kotlin 1.1-M03 runtime is incompatible with the Kotlin 1.0.x compiler (and Gradle plugin) and because of that it's currently not possible to use Kotlin 1.0.x together with this release.

  • Extra delegated properties (#195). Thanks to a contribution by @orangy it is now possible to use Kotlin delegated properties against the extra properties container.

    var kotlinVersion: String by extra
    
    kotlinVersion = "1.1-M03"