Gradle 是基于 Ant 和 Maven 理念的自动化构建工具。
该版本主要更新如下:
Gradle Daemon 性能提升,并且在 3.0 版本中是默认启用的。
查看 Gradle Daemon 的状态[code]$> gradle --status
PID STATUS INFO
43536 BUSY 3.0
43542 IDLE 3.0
43418 STOPPED (stop command received)
43366 STOPPED (stop command received)[/code]编写 Gradle 构建脚本的时候可以得到更好的 IDE 支持,Gradle 3.0 深度集成了 IDEA 和 Eclipse,提供超多功能:自动完成、重构、追溯源等等。Groovy 仍然是 Gradle 脚本的主要构建语言[code]import org.gradle.api.tasks.*
apply
configure
mainClassName = "org.gradle.samples.HelloWorld"
}
repositories {
jcenter()
}
dependencies {
compile("commons-lang:commons-lang:2.4")
testCompile("junit:junit:4.12")
}
task
from("src/main/conf")
into("build/conf")
exclude("**/*.old")
includeEmptyDirs = false
}[/code]Gradle 3.0 支持最新的 Java 9 EAP,用户可以使用最新的 JDK 9 构建和运行测试,但是会有一些限制。[code]compileJava.options.compilerArgs.addAll(['-release', '7'])[/code]更多关于 Gradle 的更新说明可查看官方发行说明。
下载:https://gradle.org/gradle-download/
软件详情:https://docs.gradle.org/current/release-notes#view-daemon-information-in-gradle-cloud-services
来自:开源中国社区

