MyGit

v0.12.0

gradle/kotlin-dsl-samples

版本发布时间: 2017-10-06 21:41:50

gradle/kotlin-dsl-samples最新发布版本:v1.1.3(2019-01-29 18:57:52)

Gradle Kotlin DSL 0.12.0 Release Notes

Gradle Kotlin DSL v0.12.0 brings the latest and greatest Kotlin (1.1.51), runs on Java 9, has better support for Kotlin dependencies and more.

v0.12.0 is expected to be included in the upcoming Gradle 4.3 RC1.

The features in this release are also available for immediate use within the latest Gradle Kotlin DSL 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-kotlin-dsl-4.3-20171004164220+0000-all.zip

Once Gradle 4.3 RC1 is out, we encourage all users to upgrade in the following fashion:

$ cd $YOUR_PROJECT_ROOT
$ gradle wrapper --gradle-version 4.3-rc-1 --distribution-type all

Breaking changes

Starting with this release, kotlin("...") plugin requests no longer default to embeddedKotlinVersion and so build scripts that rely on that behavior must be changed to include an explicit version number otherwise they will fail.

For a concrete example, the following simple build script that applies the kotlin("jvm") plugin without specifying a version number will now fail:

// build.gradle.kts
plugins {
    kotlin("jvm")
}
$ ./gradlew tasks
FAILURE: Build failed with an exception.

* What went wrong:
Plugin [id: 'org.jetbrains.kotlin.jvm'] was not found in any of the following sources:

...

The solution is to include a version number:

// build.gradle.kts
plugins {
    kotlin("jvm") version "1.1.51"
}

Notice that in a multi-project setup, the version number for plugins used in multiple projects should be specified only once in a common ancestor project, possibly the root as it's done in this sample.

Updates since v0.11.1

相关地址:原始地址 下载(tar) 下载(zip)

查看:2017-10-06发行的版本