Hi all.

We were testing our product (which has a gradle build) using the IBM jdk and
I thought I'd try building it using this jdk instead of the sun one.
Straight away I got a NullPointerException from gradle while trying to load
the settings.gradle file. After a bit of digging, I worked out that the
problem is to do with the version.properties file used by the GradleVersion
class. This properties file is located by the path '/version.properties' and
is located in the gradle jar. However, the IBM jdk also has a jar file with
a version.properties in the same location in the healthcenter.jar located in
jre/lib/ext. This jar is on the classpath before the gradle jar, so this
version.properties file is used.

Removing the healthcenter.jar then running gradle appears to work ok.

To reproduce this, just run gradle -version using the IBM jdk. The gradle
version will show up as 'null'. The NullPointerException will show up if you
run gradle -t.

I've created a jira issue: http://jira.codehaus.org/browse/GRADLE-508

Mark.

Reply via email to