Skip to content

Commit

Permalink
Keep imagej-legacy out of the dependency tree
Browse files Browse the repository at this point in the history
This works around a test failure in TrackMatePluginTest caused by the
original ImageJ classes being loaded too soon. There are other ways of
working around this problem, such as creating a SciJava context more
eagerly, but it's a distraction from the business of testing TrackMate,
and anyway we don't need imagej-legacy on the classpath.

The only reason labkit-ui has imagej-legacy as a dependency is for one
line of code, which can be refactored to avoid it, so hopefully the
exclusion will be able to disappear later after labkit-ui is updated.
  • Loading branch information
ctrueden committed Mar 28, 2024
1 parent 3148596 commit f890a1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@
<groupId>sc.fiji</groupId>
<artifactId>labkit-ui</artifactId>
<version>0.3.12-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>net.imagej</groupId>
<artifactId>imagej-legacy</artifactId>
</exclusion>
</exclusions>
</dependency>

<!-- ImageJ dependencies -->
Expand Down

0 comments on commit f890a1a

Please sign in to comment.