Gradle 5.0 RC2 发布了,Gradle 是一个基于 Apache Ant 和 Apache Maven 概念的项目自动化构建工具,支持依赖管理和多项目,类似 Maven,但比之简单轻便。它使用一种基于 Groovy 的特定领域语言来声明项目设置,而不是传统的 XML。 此版本带来生产就绪的 Kotlin DSL、依赖版本对齐(与 Maven BOM 类似)、任务超时与 Java 11 支持等。 Kotlin DSL 1.0 Gradle Kotlin DSL 1.0 发布了,并且生产就绪。使用 Kotlin 编写构建逻辑可在 IDE 中提供重要的额外编辑帮助,包括改进的代码补全、错误突出显示和重构工具等。 依赖版本对齐 依赖项版本对齐允许属于同一逻辑组(platform)的不同模块在依赖图中具有相同的版本。可以导入 Maven BOM 定义 platform: dependencies { // import a BOM. The versions used in this file will override any other version found in the graph implementation(enforcedPlatform("org.springframework.boot:spring-boot-dependencies:1.5.8.RELEASE")) // define dependencies without versions implementation("com.google.code.gson:gson") implementation("dom4j:dom4j") // this version will be overriden by the one found in the BOM implementation("org.codehaus.groovy:groovy:1.8.6") } 任务超时 现在可以指定任务的超时持续时间,之后它将被中断。 性能特性
详情查看发布公告。 下载地址: |