sciview icon indicating copy to clipboard operation
sciview copied to clipboard

Duplicate dependencies shipping via update site

Open haesleinhuepf opened this issue 5 years ago • 14 comments

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

haesleinhuepf avatar Mar 23 '19 21:03 haesleinhuepf

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.

imagejan avatar Mar 24 '19 11:03 imagejan

@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 avatar Mar 24 '19 18:03 skalarproduktraum

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

skalarproduktraum avatar Mar 24 '19 18:03 skalarproduktraum

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

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

haesleinhuepf avatar Mar 24 '19 18:03 haesleinhuepf

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

imagejan avatar Mar 24 '19 20:03 imagejan

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.

haesleinhuepf avatar Mar 24 '19 20:03 haesleinhuepf

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?

imagejan avatar Mar 24 '19 20:03 imagejan

@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...

skalarproduktraum avatar Mar 25 '19 13:03 skalarproduktraum

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

haesleinhuepf avatar Mar 25 '19 13:03 haesleinhuepf

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?

skalarproduktraum avatar Mar 25 '19 13:03 skalarproduktraum

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?

haesleinhuepf avatar Mar 25 '19 13:03 haesleinhuepf

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...

royerloic avatar Mar 26 '19 17:03 royerloic

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!

skalarproduktraum avatar Mar 26 '19 19:03 skalarproduktraum

@skalarproduktraum This can be closed i think?

kephale avatar Feb 26 '21 12:02 kephale

This has been addressed.

kephale avatar Jun 09 '24 15:06 kephale