Skip to content

Change to gradle version for newest JDK? #88

@jamesgolden1

Description

@jamesgolden1

[This is unnecessary if we are moving away from the RDT - I know Brian has mentioned this, and I saw a few isetbio commits, but I'm not sure of the status on that.]

After upgrading to MacOS High Sierra Version 10.13, I had to reinstall the JDK. I perhaps unwisely chose the latest version, and this led to problems with the RDT, specifically when running the following from Matlab [as a test for the RDT]:

rdt = RdtClient('isetbio');
rdt.crp('/resources/data/istim');
data = rdt.readArtifact('barMovie_osLinear', 'type', 'mat');

I received the following error:

Error using gradleFetchArtifact (line 121)
error status 1 (
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine java version from '9.0.1'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get
more log output.
)

Error in rdtReadArtifact (line 91)
    [localPath, pomPath, downloads] = gradleFetchArtifact(configuration.repositoryUrl, ...

Error in RdtClient/readArtifact (line 287)
                [data, artifact, downloads] = rdtReadArtifact(obj.configuration, ...

I tried reinstalling earlier versions of the JDK, but that didn't work for a number of reasons (apparently the install would check if OSX was newer than 10.7, and 10.13 is less than 10.7, even though it should be 10.13 versus 10.07; anyway...). Some advice from this post led to changing RDT/extenral/gradle/gradle/wrapper/gradle-wrapper.properties to run a newer version of gradle that is compatible with the latest JDK:

#Fri Sep 11 10:12:51 EDT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
#distributionUrl=https\://services.gradle.org/distributions/gradle-2.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip

This fixed things enough so that the above commands for getting data from the RDT works, but I haven't tried much else, so this could end up causing other problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions