Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
apacker83 opened this issue Jul 22, 2021 · 1 comment

Comments

@apacker83
Copy link

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!

@apacker83
Copy link
Author

So... if anyone runs into this issue note that the documentation explicitly says use Gradle 2.1 (even though the link takes you to the top-level Gradle installation website, which is where I got led astray).

Now that I've got Gradle 2.1 working on my machine, I got past this error and am on to other ones... e.g. Couldn't find Ant-JavaFX-library, please make sure you've installed some JDK which includes JavaFX

will update in another thread if I solve it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant