<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.suncode</groupId>
		<artifactId>plusworkflow-plugin-parent</artifactId>
		<version>4.1.11</version>
	</parent>
	<groupId>com.suncode.plugin</groupId>
	<artifactId>barcode-reader</artifactId>
	<version>4.0.39</version>

	<packaging>bundle</packaging>

	<dependencies>
	    <dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>barcode-reader-core</artifactId>
			<version>1.0.2</version>
			<scope>provided</scope>
		</dependency>
		
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>plusworkflow-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>gov.nih.imagej</groupId>
			<artifactId>imagej</artifactId>
			<version>1.47</version>
		</dependency>
		<!-- PdfBox -->
		<dependency>
		    <groupId>org.apache.pdfbox</groupId>
		    <artifactId>jbig2-imageio</artifactId>
		    <version>3.0.3</version>
		</dependency>
		<dependency>
			<groupId>org.apache.pdfbox</groupId>
			<artifactId>pdfbox</artifactId>
			<version>3.0.5</version>
		</dependency>

		<!-- PdfUtils -->
		<dependency>
			<groupId>com.suncode</groupId>
			<artifactId>pdfutils</artifactId>
			<version>1.0.17</version>
		</dependency>

		<dependency>
			<groupId>com.suncode.plugin</groupId>
			<artifactId>plugin-configuration-manager</artifactId>
			<version>4.0.1</version>
			<scope>provided</scope>
			<exclusions>
				<exclusion>
					<groupId>*</groupId>
					<artifactId>*</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<configuration>
					<instructions>
						<!--
						Imagej nie jest bezpośrednio embedowany z powodu klas w domyślnym pakiecie
						Zamiast tego eksportujemy wszystkie klasy imagej poza domyślnym pakietem,
						a samego imagej wykluczamy z embedowania.
						 -->
						<Export-Package>ij.*</Export-Package>
						<Import-Package>!com.apple.cocoa.application,!com.sun.tools.javac,*</Import-Package>
						<Embed-Dependency>!imagej,*;scope=compile|runtime</Embed-Dependency>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>