scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
67 stars 17 forks source link

Duplicate dependencies shipping via update site #179

Closed haesleinhuepf closed 4 months ago

haesleinhuepf commented 5 years ago

Hey guys,

congrats to the new beta release. I was just updating my Fiji while I saw that it ships with several versions of CoreMem. I'm afraid this might cause issues with ClearVolume and CLIJ.

image

Can we maybe decide on which version of CoreMem to use and ship it together with Fiji?

Cheers, Robert

imagejan commented 5 years ago

pom-scijava manages net.coremem.CoreMem at version 0.4.3. Since then, the capitalization of the artifactId (net.coremem:coremem:0.4.5) and the groupId (net.clearcontrol:coremem:0.4.6) have been changed. (BTW, none of coremem.net or clearcontrol.net seems to be valid, registered domains, which would be good practice for groupId naming.)

@skalarproduktraum, @kephale, @haesleinhuepf maybe someone of you can submit a PR to pom-scijava to correct things there? AFAICT, only scenery, SciView, ClearVolume and CLIJ depend on this component.

skalarproduktraum commented 5 years ago

@imagejan, thanks for the insight! That particular dependency was driving me nuts yesterday. I will submit a PR to pom-scijava.

Regarding the domains: I thought @royerloic had at least registered clearvolume.net?

skalarproduktraum commented 5 years ago

@haesleinhuepf I guess then net.clearcontrol:coremem:0.4.6. would be the correct one?

haesleinhuepf commented 5 years ago

Apparently, 0.4.7 is the recent version of coremem. Maybe @royerloic can confirm?

https://github.com/ClearControl/master/blob/master/master.gradle#L14

imagejan commented 5 years ago

0.4.7 doesn't seem to be deployed to maven (yet): http://maven.imagej.net/#nexus-search;quick~coremem

haesleinhuepf commented 5 years ago

Alright, then let's go with 0.4.6... Btw. CLIJ uses a fork of coremem in order to prevent ClearVolume from breaking, if CLIJ and ClearVolume are installed at the same time. Reason is that ClearVolume ships with 0.3.2... See https://sites.imagej.net/ClearVolume/jars/ and https://github.com/clij/clij/issues/15

Just mentioning, if this happens with Scenery as well, I'm happy tell more details on the workaround I implemented.

imagejan commented 5 years ago

I'm happy tell more details on the workaround I implemented.

It seems you manually shaded coremem and clearcl for CLIJ. Is this something that could be solved by the Maven Shade Plugin?

skalarproduktraum commented 5 years ago

@haesleinhuepf I just checked the ClearVolume code, what I found was it's using the latest ClearCL and thereby also coremem 0.4.6. Could it be that just imglib2-clearvolume hasn't been updated to reflect that?

Edit: Yes, exactly that is the case. Updating...

haesleinhuepf commented 5 years ago

Indeed. I think the last update to the update site and respective repository was some time ago... https://github.com/ClearVolume/imglib2-clearvolume/blame/a77d7dd8d26ca28a06708e509d7597173c8f9864/pom.xml#L103

skalarproduktraum commented 5 years ago

Okay, updated all the dependencies in imglib2-clearvolume. ClearVolume itself was already in a good shape :+1: Now the problem is that I do not have the login for the update site -- maybe @royerloic or @fjug can help here to put the latest imglib2-clearvolume version on the update site?

haesleinhuepf commented 5 years ago

Thanks for updating! I tried the recent code on the master branch and found an issue... https://github.com/ClearVolume/imglib2-clearvolume/issues/16

So better we wait a moment before updating the update site?

royerloic commented 5 years ago

Ok, I have just sent an email to @skalarproduktraum with the necessary info for updating the update site. Thanks guys for your help! @skalarproduktraum : Feel free to advertise a new version of ClearVolume on Twitter. I think the latest version addresses a few issues and has better stability. We never got around with pushing it to the update site...

skalarproduktraum commented 5 years ago

Thanks, @royerloic! In the meantime I was told that you can just have your account added to the ACL of an update site, so I am now personally allowed to push to the CV update site :) Thanks for the email anyway!

kephale commented 3 years ago

@skalarproduktraum This can be closed i think?

kephale commented 4 months ago

This has been addressed.