8000 Update components for new major ImgLib2 versions · scijava/pom-scijava@7464ac6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7464ac6

Browse files
ctruedenhinerm
andcommitted
Update components for new major ImgLib2 versions
In testing this upgrade, I needed to write a custom script facilitating execution of the mega-melt test with some SNAPSHOT components built from branches. The script I used is preserved in SNAPSHOTS.md here, so that we can more easily reuse it in the future. This commit also makes a minor adjustment to the tests/run.sh script allowing the mega-melt to continue even if the version to be cloned is a SNAPSHOT. Base components with breaking changes: * imglib2: 5.12.0 -> 6.1.0 * imglib2-realtransform: 3.1.2 -> 4.0.1 Downstream affected components: * imagej-deprecated: 0.1.5 -> 0.2.0 * imagej-ops: 1.0.0 -> 2.0.0 * imglib2-algorithm: 0.13.0 -> 0.13.2 * imglib2-algorithm-gpl: 0.3.0 -> 0.3.1 * imglib2-cache: 1.0.0-beta-16 -> 1.0.0-beta-17 * imglib2-imglyb: 1.1.0 -> 2.0.0 * imglib2-roi: 0.13.0 -> 0.14.1 * scifio: 0.44.1 -> 0.45.0 * Colocalisation_Analysis: 3.0.5 -> 3.0.6 * SPIM_Registration: 5.0.24 -> 5.0.25 * z_spacing: 1.1.1 -> 1.1.2 * bigdataviewer-core: 10.4.5 -> 10.4.6 * bigdataviewer-server: 3.1.1 -> 3.1.2 * bigdataviewer-vistools: 1.0.0-beta-31 -> 1.0.0-beta-32 * bigdataviewer_fiji: 6.2.3 -> 6.2.4 * TrackMate: 7.11.0 -> 7.11.1 * n5-imglib2: 4.4.0 -> 5.0.0 * BigStitcher: 1.1.5 -> 1.1.6 * multiview-reconstruction: 1.2.8 -> 2.0.0 * labkit-pixel-classification: 0.1.16 -> 0.1.17 * labkit-ui: 0.3.10 -> 0.3.11 Co-authored-by: Mark Hiner <hiner@wisc.edu>
1 parent 148b8b7 commit 7464ac6

File tree

3 files changed

+77
-25
lines changed

3 files changed

+77
-25
lines changed

SNAPSHOTS.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
So, you want to run the mega-melt, but with some SNAPSHOTs built from branches?
2+
3+
Here is an example script that does so for the labkit-pixel-classification and
4+
labkit-ui components. Copy this script into a file called `go`, change the
5+
`adjust`... lines below to match the branches of your SNAPSHOT component(s),
6+
and then give it a try with `sh go`!
7+
8+
```shell
9+
+#!/bin/sh
10+
+
11+
+# Fail on error.
12+
+set -e
13+
+
14+
+# Generate the mega melt structure.
15+
+tests/run.sh -s
16+
+
17+
+# Pull appropriate branches, build artifacts, and install them locally.
18+
+adjust() {
19+
+ dir=$1
20+
+ remote=$2
21+
+ branch=$3
22+
+ cd "target/mega-melt/melting-pot/$dir"
23+
+
24+
+ # fetch the needed branch
25+
+ git remote add upstream "$remote"
26+
+ git fetch upstream
27+
+
28+
+ # discard pom.xml hacks
29+
+ git checkout pom.xml
30+
+
31+
+ # switch to the needed branch
32+
+ git checkout "upstream/$branch"
33+
+
34+
+ # reapply pom.xml hacks
35+
+ mv pom.xml pom.xml.original &&
36+
+ sed -E -e 's_(https?://maven.imagej.net|http://maven.scijava.org)_https://maven.scijava.org_g' \
37+
+ -e 's_http://maven.apache.org/xsd_https://maven.apache.org/xsd_g' pom.xml.original > pom.xml ||
38+
+ die "Failed to adjust pom.xml"
39+
+ perl -0777 -i -pe 's/(<parent>\s*<groupId>org.scijava<\/groupId>\s*<artifactId>pom-scijava<\/artifactId>\s*<version>)[^\n]*/${1}999-mega-melt<\/version>/igs' pom.xml
40+
+
41+
+ # build and install the component
42+
+ mvn -Denforcer.skip -DskipTests -Dmaven.test.skip -Dinvoker.skip clean install
43+
+
44+
+ cd - >/dev/null
45+
+}
46+
+adjust sc.fiji/labkit-pixel-classification https://github.com/ctrueden/labkit-pixel-classification bump-to-imglib2-6.1.0
47+
+adjust sc.fiji/labkit-ui https://github.com/ctrueden/labkit-ui bump-to-imglib2-6.1.0
48+
+
49+
+# Run the mega melt!
50+
+cd target/mega-melt/melting-pot
51+
+./melt.sh 2>&1 | tee melt.log
52+
```

pom.xml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
<net.imagej.imagej-common.version>${imagej-common.version}</net.imagej.imagej-common.version>
488488

489489
<!-- ImageJ Deprecated - https://github.com/imagej/imagej-deprecated -->
490-
<imagej-deprecated.version>0.1.5</imagej-deprecated.version>
490+
<imagej-deprecated.version>0.2.0</imagej-deprecated.version>
491491
<net.imagej.imagej-deprecated.version>${imagej-deprecated.version}</net.imagej.imagej-deprecated.version>
492492

493493
<!-- ImageJ Launcher - https://github.com/imagej/imagej-launcher -->
@@ -527,7 +527,7 @@
527527
<net.imagej.imagej-opencv.version>${imagej-opencv.version}</net.imagej.imagej-opencv.version>
528528

529529
<!-- ImageJ Ops - https://github.com/imagej/imagej-ops -->
530-
<imagej-ops.version>1.0.0</imagej-ops.version>
530+
<imagej-ops.version>2.0.0</imagej-ops.version>
531531
<net.imagej.imagej-ops.version>${imagej-ops.version}</net.imagej.imagej-ops.version>
532532

533533
<!-- ImageJ Plugins: Batch - https://github.com/imagej/imagej-plugins-batch -->
@@ -581,39 +581,39 @@
581581
<!-- ImgLib2 - https://github.com/imglib -->
582582

583583
<!-- ImgLib2 - https://github.com/imglib/imglib2 -->
584-
<imglib2.version>5.12.0</imglib2.version>
584+
<imglib2.version>6.1.0</imglib2.version>
585585
<net.imglib2.imglib2.version>${imglib2.version}</net.imglib2.imglib2.version>
586586

587587
<!-- ImgLib2 Algorithms - https://github.com/imglib/imglib2-algorithm -->
588-
<imglib2-algorithm.version>0.13.0</imglib2-algorithm.version>
588+
<imglib2-algorithm.version>0.13.2</imglib2-algorithm.version>
589589
<net.imglib2.imglib2-algorithm.version>${imglib2-algorithm.version}</net.imglib2.imglib2-algorithm.version>
590590

591591
<!-- ImgLib2 Algorithms FFT - https://github.com/imglib/imglib2-algorithm-fft -->
592592
<imglib2-algorithm-fft.version>0.2.1</imglib2-algorithm-fft.version>
593593
<net.imglib2.imglib2-algorithm-fft.version>${imglib2-algorithm-fft.version}</net.imglib2.imglib2-algorithm-fft.version>
594594

595595
<!-- ImgLib2 Algorithms GPL - https://github.com/imglib/imglib2-algorithm-gpl -->
596-
<imglib2-algorithm-gpl.version>0.3.0</imglib2-algorithm-gpl.version>
596+
<imglib2-algorithm-gpl.version>0.3.1</imglib2-algorithm-gpl.version>
597597
<net.imglib2.imglib2-algorithm-gpl.version>${imglib2-algorithm-gpl.version}</net.imglib2.imglib2-algorithm-gpl.version>
598598

599599
<!-- ImgLib2 Cache - https://github.com/imglib/imglib2-cache -->
600-
<imglib2-cache.version>1.0.0-beta-16</imglib2-cache.version>
600+
<imglib2-cache.version>1.0.0-beta-17</imglib2-cache.version>
601601
<net.imglib2.imglib2-cache.version>${imglib2-cache.version}</net.imglib2.imglib2-cache.version>
602602

603603
<!-- ImgLib2 IJ - https://github.com/imglib/imglib2-ij -->
604604
<imglib2-ij.version>2.0.0</imglib2-ij.version>
605605
<net.imglib2.imglib2-ij.version>${imglib2-ij.version}</net.imglib2.imglib2-ij.version>
606606

607607
<!-- ImgLib2 ImgLyb - https://github.com/imglib/imglib2-imglyb -->
608-
<imglib2-imglyb.version>1.1.0</imglib2-imglyb.version>
608+
<imglib2-imglyb.version>2.0.0</imglib2-imglyb.version>
609609
<net.imglib2.imglib2-imglyb.version>${imglib2-imglyb.version}</net.imglib2.imglib2-imglyb.version>
610610

611611
<!-- ImgLib2 RealTransform - https://github.com/imglib/imglib2-realtransform -->
612-
<imglib2-realtransform.version>3.1.2</imglib2-realtransform.version>
612+
<imglib2-realtransform.version>4.0.1</imglib2-realtransform.version>
613613
<net.imglib2.imglib2-realtransform.version>${imglib2-realtransform.version}</net.imglib2.imglib2-realtransform.version>
614614

615615
<!-- ImgLib2 ROI - https://github.com/imglib/imglib2-roi -->
616-
<imglib2-roi.version>0.13.0</imglib2-roi.version>
616+
<imglib2-roi.version>0.14.1</imglib2-roi.version>
617617
<net.imglib2.imglib2-roi.version>${imglib2-roi.version}</net.imglib2.imglib2-roi.version>
618618

619619
<!-- ImgLib2 Unsafe - https://github.com/imglib/imglib2-unsafe -->
@@ -623,7 +623,7 @@
623623
<!-- SCIFIO - https://github.com/scifio -->
624624

625625
<!-- SCIFIO - https://github.com/scifio/scifio -->
626-
<scifio.version>0.44.1</scifio.version>
626+
<scifio.version>0.45.0</scifio.version>
627627
<io.scif.scifio.version>${scifio.version}</io.scif.scifio.version>
628628

629629
<!-- SCIFIO-BF-compat - https://github.com/scifio/scifio-bf-compat -->
@@ -709,7 +709,7 @@
709709
<Cell_Counter.version>3.0.0</Cell_Counter.version>
710710
<sc.fiji.Cell_Counter.version>${Cell_Counter.version}</sc.fiji.Cell_Counter.version>
711711

712-
<Colocalisation_Analysis.version>3.0.5</Colocalisation_Analysis.version>
712+
<Colocalisation_Analysis.version>3.0.6</Colocalisation_Analysis.version>
713713
<sc.fiji.Colocalisation_Analysis.version>${Colocalisation_Analysis.version}</sc.fiji.Colocalisation_Analysis.version>
714714

715715
<Color_Histogram.version>2.0.7</Color_Histogram.version>
@@ -858,7 +858,7 @@
858858
<SPIM_Opener.version>2.0.2</SPIM_Opener.version>
859859
<sc.fiji.SPIM_Opener.version>${SPIM_Opener.version}</sc.fiji.SPIM_Opener.version>
860860

861-
<SPIM_Registration.version>5.0.24</SPIM_Registration.version>
861+
<SPIM_Registration.version>5.0.25</SPIM_Registration.version>
862862
<sc.fiji.SPIM_Registration.version>${SPIM_Registration.version}</sc.fiji.SPIM_Registration.version>
863863

864864
<Samples.version>2.0.3</Samples.version>
@@ -1002,25 +1002,25 @@
10021002
<sc.fiji.trakem2_tps.version>${trakem2_tps.version}</sc.fiji.trakem2_tps.version>
10031003

10041004
<!-- Z-Spacing correction - https://github.com/saalfeldlab/z-spacing -->
1005-
<z_spacing.version>1.1.1</z_spacing.version>
1005+
<z_spacing.version>1.1.2</z_spacing.version>
10061006
<sc.fiji.z_spacing.version>${z_spacing.version}</sc.fiji.z_spacing.version>
10071007

10081008
<!-- BigDataViewer - https://github.com/bigdataviewer -->
10091009

10101010
<!-- BigDataViewer Core - https://github.com/bigdataviewer/bigdataviewer-core -->
1011-
<bigdataviewer-core.version>10.4.5</bigdataviewer-core.version>
1011+
<bigdataviewer-core.version>10.4.6</bigdataviewer-core.version>
10121012
<sc.fiji.bigdataviewer-core.version>${bigdataviewer-core.version}</sc.fiji.bigdataviewer-core.version>
10131013

10141014
<!-- BigDataServer - https://github.com/bigdataviewer/bigdataviewer-server -->
1015-
<bigdataviewer-server.version>3.1.1</bigdataviewer-server.version>
1015+
<bigdataviewer-server.version>3.1.2</bigdataviewer-server.version>
10161016
<sc.fiji.bigdataviewer-server.version>${bigdataviewer-server.version}</sc.fiji.bigdataviewer-server.version>
10171017

10181018
<!-- BigDataViewer Visualization Tools - https://github.com/bigdataviewer/bigdataviewer-vistools -->
1019-
<bigdataviewer-vistools.version>1.0.0-beta-31</bigdataviewer-vistools.version>
1019+
<bigdataviewer-vistools.version>1.0.0-beta-32</bigdataviewer-vistools.version>
10201020
<sc.fiji.bigdataviewer-vistools.version>${bigdataviewer-vistools.version}</sc.fiji.bigdataviewer-vistools.version>
10211021

10221022
<!-- BigDataViewer Fiji - https://github.com/bigdataviewer/bigdataviewer_fiji -->
1023-
<bigdataviewer_fiji.version>6.2.3</bigdataviewer_fiji.version>
1023+
<bigdataviewer_fiji.version>6.2.4</bigdataviewer_fiji.version>
10241024
<sc.fiji.bigdataviewer_fiji.version>${bigdataviewer_fiji.version}</sc.fiji.bigdataviewer_fiji.version>
10251025

10261026
<!-- SPIM Data - https://github.com/bigdataviewer/spimdata -->
@@ -1030,7 +1030,7 @@
10301030
<!-- TrackMate - https://github.com/trackmate-sc -->
10311031

10321032
<!-- TrackMate - https://github.com/trackmate-sc/TrackMate -->
1033-
<TrackMate.version>7.11.0</TrackMate.version>
1033+
<TrackMate.version>7.11.1</TrackMate.version>
10341034
<sc.fiji.TrackMate.version>${TrackMate.version}</sc.fiji.TrackMate.version>
10351035

10361036
<!-- TrackMate-Cellpose - https://github.com/trackmate-sc/TrackMate-Cellpose -->
@@ -1129,7 +1129,7 @@
11291129
<org.janelia.saalfeldlab.n5-ij.version>${n5-ij.version}</org.janelia.saalfeldlab.n5-ij.version>
11301130

11311131
<!-- N5 ImgLib2 Bindings - https://github.com/saalfeldlab/n5-imglib2 -->
1132-
<n5-imglib2.version>4.4.0</n5-imglib2.version>
1132+
<n5-imglib2.version>5.0.0</n5-imglib2.version>
11331133
<org.janelia.saalfeldlab.n5-imglib2.version>${n5-imglib2.version}</org.janelia.saalfeldlab.n5-imglib2.version>
11341134

11351135
<!-- N5 Viewer for Fiji - https://github.com/saalfeldlab/n5-viewer_fiji -->
@@ -1166,8 +1166,8 @@
11661166
<net.haesleinhuepf.clijx-weka_.version>${clijx-weka_.version}</net.haesleinhuepf.clijx-weka_.version>
11671167

11681168
<!-- BigStitcher - https://imagej.net/plugins/bigstitcher -->
1169-
<BigStitcher.version>1.1.5</BigStitcher.version>
1170-
<multiview-reconstruction.version>1.2.8</multiview-reconstruction.version>
1169+
<BigStitcher.version>1.1.6</BigStitcher.version>
1170+
<multiview-reconstruction.version>2.0.0</multiview-reconstruction.version>
11711171
<multiview-simulation.version>0.2.0</multiview-simulation.version>
11721172
<net.preibisch.BigStitcher.version>${BigStitcher.version}</net.preibisch.BigStitcher.version>
11731173
<net.preibisch.multiview-reconstruction.version>${multiview-reconstruction.version}</net.preibisch.multiview-reconstruction.version>
@@ -1195,8 +1195,8 @@
11951195
<sc.fiji.MaMuT.version>${MaMuT.version}</sc.fiji.MaMuT.version>
11961196

11971197
<!-- Labkit - https://imagej.net/plugins/labkit -->
1198-
<labkit-pixel-classification.version>0.1.16</labkit-pixel-classification.version>
1199-
<labkit-ui.version>0.3.10</labkit-ui.version>
1198+
<labkit-pixel-classification.version>0.1.17</labkit-pixel-classification.version>
1199+
<labkit-ui.version>0.3.11</labkit-ui.version>
12001200
<sc.fiji.labkit-pixel-classification.version>${labkit-pixel-classification.version}</sc.fiji.labkit-pixel-classification.version>
12011201
<sc.fiji.labkit-ui.version>${labkit-ui.version}</sc.fiji.labkit-ui.version>
12021202

tests/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ chmod +x "$meltingPotScript" &&
111111
# NB: The pipe to tee eats the melting-pot error code.
112112
# Even with the POSIX-unfriendly pipefail flag set.
113113
# So we resort to this hacky error check of the log.
114-
grep -qF "[ERROR]" "$meltingPotLog" &&
114+
test "$(grep -F "[ERROR]" "$meltingPotLog" | grep -v "using default branch")" &&
115115
die 'Melting pot generation failed!'
116116

117117
sectionStart 'Adjusting the melting pot'
@@ -190,7 +190,7 @@ chmod +x "$meltScript" ||
190190
# fixed in imagej-ops. But for now, let's not let it ruin the melt.
191191
rm -f "$meltingPotDir/net.imagej/imagej-ops/src/test/java/net/imagej/ops/cached/CachedOpEnvironmentTest.java"
192192

193-
# TEMP: Until saalfeldlab/n5-aws-s3#13 is fixed.
193+
# TEMP: Until saalfeldlab/n5-aws-s3#13 is released.
194194
echo "org.janelia.saalfeldlab/n5-aws-s3" >> "$skipTestsFile" &&
195195

196196
# Error while checking the CLIJ2 installation: null

0 commit comments

Comments
 (0)
0