Gradle cache regression in 3.0 M2


(Jörn Huxhorn) #1

It seems like Gradle cache can’t handle Java 1.1 compatible jars anymore.

'net.sf.ehcache:ehcache:2.10.2' causes it to fail with java.lang.IllegalArgumentException: Could not determine java version from '45'. (i.e. 0x2D => Java 1.1).

http://pastebin.com/PNNz0L6y


(Jörn Huxhorn) #2

Any news about this? Could you reproduce it?


(Eric Wendelin) #3

Apologies for not responding here. Gradle Inc. has been booked with Summit and World meeting activities.

I expect we will be able to reproduce and respond by the end of this week.


(Eric Wendelin) #4

Hi

I’m afraid I’m not able to reproduce this issue yet. I created a sample repository to test this. Could you please provide instructions for how you trigger the failure you’re reporting (and, optionally, submit a PR to the test repo if necessary)?

Here’s a build scan of the project running successfully.


(Jörn Huxhorn) #5

Add this to your build.gradle:

tasks.withType(JavaCompile) {
            options.incremental = true
        }

build scan


(Stefan Wolf) #6

I was able to reproduce your bug. This will be fixed in Gradle 3.0-rc-1.

Thank you very much for your report!