Skip to content

ClearVolume build failing on Mac OS X with Gradle 7.1.1 for two reasons (one fixed) #81

@apacker83

Description

@apacker83

I downloaded the github repository and ran build.sh. At first, I got the following error message:
Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.imagej.net/content/repositories/releases)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols.
I think I fixed this by following the instructions here:
gradle/gradle#11905 (comment)

Upon rerunning build.sh, I got the following new error message:
> Plugin with id 'maven' not found.

Googling this led me here: https://discuss.gradle.org/t/plugin-with-id-maven-not-found/39621
and ultimately to here: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html?_ga=2.5147891.1588493751.1626965925-1126331740.1626965925#removal_of_the_legacy_maven_plugin

Implying that perhaps the build needs to reference maven-publish instead of maven. But it already does, or at least build.gradle mentions maven-publish on line 23. So I commented out line 22, which mentions maven, and got another error message:

> Failed to apply plugin 'javafx-gradle-plugin'.
   > Could not create task ':jfxJar'.
      > Cannot create task ':jfxJar' of type 'JfxJarTask' as directly extending AbstractTask is not supported.

It seems this also might be related to Gradle 7? This is as far as I got... Sorry if this is not helpful, I'm really dying to run ClearVolume!

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