Gradle 2.1-rc-1 is now available for testing

The Gradle team is pleased to announce that the release candidate for Gradle 2.1 is now available.

Download links and release notes can be found as always at http://gradle.org/release-candidate.

Please try Gradle 2.1-rc-1 with your projects and let us know your experiences.

Cheers,

Marcin

Executing ‘gradle assemble’ on https://github.com/huxi/sulky throws a ‘NullPointerException’ with Gradle 2.1-rc-1.

See https://travis-ci.org/huxi/sulky/jobs/33060922 for the build and http://pastebin.com/sZbtqEHy for the stacktrace.

The task that throws the exception looks like this:

task javadocAll(type: Javadoc) {
 destinationDir = file("$buildDir/javadocAll")
 source = files { subprojects.collect { it.sourceSets.main.java } }
 classpath = files { subprojects.collect { it.sourceSets.main.compileClasspath } }
}

Edit: Created separate topic.

Assemble that works fine under gradle-1.12 returns

Could not find property 'Compile' on project ':webapp'.

with Gradle 2.1-rc-1. “webapp” is a sub-project in a multi-module setup.

tasks.withType(Compile) {
    options.compilerArgs << "-Xlint:deprecation"
}

Gradle 2.0 removed the deprecated ‘Compile’ type in favor of ‘JavaCompile’ (see release notes).

Yes, that was it. Thanks.

I have found a regression on the Copy task: Under Ubuntu 12, I have two samba shares (mounted via fstab); Copying from one into another works from a terminal, but when using a Copy task in Gradle, it fails (see stacktrace). The copy is pretty straightforward:

task copyFail(type: Copy) {
    from '/mnt/mount1/version.txt'
    into '/mnt/mount2/'
}

The error seems to come from an error when tryning to launch stat on the file (net.rubygrapefruit.platform.NativeException: Could not get posix file details of /mnt/(…)/version.txt: could not stat file (errno 75)) I tried to run stat on the file, it gives no error. Googling errno 75 seems to link it to ‘Value too large for defined data type’, but that doesn’t help me much. Any Idea?

PS: in fact, it’s a regression in Gradle 2.0 (it works under Gradle 1.11), but I just upgraded to 2.0, and decided to test the 2.1-RC1 right away. Tell me if if I should post this elsewhere.

Forking to track individually. Please reference the new topic here: Cannot copy between different mount points with Gradle 2.0 on Ubuntu