A new Gradle 1.0-milestone-6 snapshot is now available. Milestone 6 contains a nice swag of new features and bug fixes. Have a look at the release notes for details. Also make sure you read the migration guide. Both documents are a work in progress.
Please help us test this snapshot. If no major issues are found over the next few days, we will release this as Gradle 1.0-milestone-6. You can download the distribution, or point your wrapper at gradle-1.0-milestone-6-20111109220157+0100-bin.zip.
We’ve made some big improvements in dependency management performance. We rewrote the resolve engine to enable this. We do have an exhaustive integration test suite for this stuff, and we believe these changes work fine, but nevertheless you may run into some regressions in this snapshot. We will fix these regressions before we do the release.
syntax in a buildscript { } block in settings.gradle? Or rather it seems that that specific syntax is perhaps not appropriate in settings.gradle. Is there some other way to set a fast expiry on a changing = true dependency in a buildscript block in settings.gradle.
A task running on ‘:bar’ (after ‘:foo:jar’ is executed) is processing the resolved module artifacts like so:
Configuration runtime = project.configurations.runtime
ResolvedConfiguration resolvedRuntime = runtime.resolvedConfiguration
...
for (ResolvedDependency resolvedDependency : resolvedRuntime.getFirstLevelModuleDependencies()) {
for (ResolvedArtifact artifact : resolvedDependency.moduleArtifacts) {
if (artifact.type == 'jar') {
//do some processing
}
}
}
However,
resolvedDependency.moduleArtifacts
always returns an empty Set. This piece of code correctly returned the set of artifacts of the project dependency when running with Gradle 1.0 m3 to m5.