Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,4 +253,80 @@ Jean-Yves Tinevez and Michael Zinsmaier.</license.copyrightOwners>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifestEntries>
<Multi-Release>true</Multi-Release>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java-9</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<executions>
<execution>
<id>compile-java9</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>9</release>
<compileSourceRoots>
<compileSourceRoot>${project.build.sourceDirectory}</compileSourceRoot>
<compileSourceRoot>src/main/java9</compileSourceRoot>
</compileSourceRoots>
<outputDirectory>${project.build.directory}/classes9</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
<executions>
<execution>
<id>copy-module-info</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}/META-INF/versions/9</outputDirectory>
<resources>
<resource>
<directory>${project.build.directory}/classes9</directory>
<includes>
<include>module-info.class</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
64 changes: 64 additions & 0 deletions src/main/java9/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module net.imglib2
{
requires java.desktop;

exports net.imglib2;
exports net.imglib2.blocks;
exports net.imglib2.kdtree;
exports net.imglib2.parallel;
exports net.imglib2.test;
exports net.imglib2.converter;
exports net.imglib2.converter.readwrite;
exports net.imglib2.converter.read;
exports net.imglib2.util;
exports net.imglib2.outofbounds;
exports net.imglib2.position;
exports net.imglib2.position.transform;
exports net.imglib2.stream;
exports net.imglib2.concatenate;
exports net.imglib2.img;
exports net.imglib2.img.array;
exports net.imglib2.img.basictypeaccess;
exports net.imglib2.img.basictypeaccess.volatiles;
exports net.imglib2.img.basictypeaccess.volatiles.array;
exports net.imglib2.img.basictypeaccess.array;
exports net.imglib2.img.basictypeaccess.nio;
exports net.imglib2.img.planar;
exports net.imglib2.img.cell;
exports net.imglib2.img.list;
exports net.imglib2.img.sparse;
exports net.imglib2.iterator;
exports net.imglib2.type;
exports net.imglib2.type.volatiles;
exports net.imglib2.type.operators;
exports net.imglib2.type.logic;
exports net.imglib2.type.label;
exports net.imglib2.type.numeric;
exports net.imglib2.type.numeric.complex;
exports net.imglib2.type.numeric.real;
exports net.imglib2.type.numeric.integer;
exports net.imglib2.neighborsearch;
exports net.imglib2.view;
exports net.imglib2.view.composite;
exports net.imglib2.view.iteration;
exports net.imglib2.loops;
exports net.imglib2.display;
exports net.imglib2.display.projector;
exports net.imglib2.display.projector.volatiles;
exports net.imglib2.display.projector.specialized;
exports net.imglib2.display.projector.composite;
exports net.imglib2.display.projector.sampler;
exports net.imglib2.display.screenimage;
exports net.imglib2.display.screenimage.awt;
exports net.imglib2.display.awt;
exports net.imglib2.exception;
exports net.imglib2.transform;
exports net.imglib2.transform.integer;
exports net.imglib2.transform.integer.permutation;
exports net.imglib2.transform.integer.shear;
exports net.imglib2.interpolation;
exports net.imglib2.interpolation.randomaccess;
exports net.imglib2.interpolation.neighborsearch;
exports net.imglib2.interpolation.stack;
exports net.imglib2.histogram;
}