From Gradle to Crave

Been learning Gradle as a build tool now and quite impressed. Have a problem with Gradle after version 1.1, so this means 1.2, 1.3 and 1.4. Note this is being tested on Apple iMac OSX 10.5.8 PPC chipset, so may not apply to you. My java is :

tiny:~ jim$ java -version
 java version "1.5.0_30"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
 Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Gradle fails on any access to any HTTPS repository that needs SSL Authentication.

tiny:caelyf-template-project-0.1d jim$ gradle build
Creating properties on demand (a.k.a. dynamic properties) has been deprecated and is scheduled to be removed in Gradle 2.0. Please read for information on the replacement for dynamic properties.
Deprecated dynamic property: "webAppDirName" on "root project 'caelyf-template-project-0.1d'", value: "/Volumes/Media/Softwar...".
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.codehaus.groovy:groovy:2.0.5.
 Required by:
 > Failure initializing default system SSL context

Have found a reference here:

indicating the HTTPS / SSL access breakage does not happen before gradle version 1.1. So as a side-step, i’ve change my build.gradle wrapper version back to version 1.1 and from a terminal command line :

gradlew wrapper

then as long as i use gradlew – the wrapper version of gradle, it works fine. If i try to use my installed version 1.4, just using the gradle command, it will fail.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s