<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<!-- ======================================================= -->
	<!-- Artifact Coordinates -->
	<!-- ======================================================= -->

    <parent>
        <groupId>com.github.chhh</groupId>
        <artifactId>sonatype-ossrh-parent</artifactId>
        <version>0.5</version>
        <!--<relativePath>../../sonatype-ossrh</relativePath>-->
    </parent>

    <!--<groupId>com.github.chhh</groupId>-->
	<artifactId>javolution-core-java-msftbx</artifactId>
    <version>6.11.8</version>
	<packaging>bundle</packaging>

    <name>Javolution Core (Java) for MSFTBX</name>
	<description>Only the Java Core part of Javolution library, with slight modifications for use in MSFTBX.</description>
    <url>https://github.com/chhh/javolution-msftbx</url>


    <scm>
        <connection>${scm.url}</connection>
        <developerConnection>${scm.url}</developerConnection>
        <url>${scm.url}</url>
        <tag>v6.11.8</tag>
    </scm>


    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <scm.url>scm:git:https://github.com/chhh/javolution-msftbx.git</scm.url>
    </properties>
    
    
    <developers>
        <developer>
            <id>chhh</id>
            <name>Dmitry Avtonomov</name>
            <url>https://github.com/chhh/</url>
            <roles>
                <role>maintainer</role>
            </roles>
        </developer>
    </developers>


	<!-- ======================================================= -->
	<!-- OSGi Dependencies -->
	<!-- ======================================================= -->
	<dependencies>
		<dependency> <!-- OSGI Core Library -->
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.core</artifactId>
			<version>4.3.1</version>
			<optional>true</optional>
		</dependency>
		<dependency> <!-- OSGI Compendium (log service) -->
			<groupId>org.osgi</groupId>
			<artifactId>org.osgi.compendium</artifactId>
			<version>4.3.1</version>
			<optional>true</optional>
		</dependency>
		<dependency> <!-- OpenCL Binding -->
			<groupId>com.nativelibs4java</groupId>
			<artifactId>javacl</artifactId>
			<version>1.0.0-RC3</version>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.12</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>1.7.12</version>
			<optional>true</optional>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-jdk14</artifactId>
			<version>1.7.12</version>
			<scope>test</scope>
			<optional>true</optional>
		</dependency>
	</dependencies>

	<build>
		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<configuration>
					<source>1.7</source>
					<target>1.7</target>
				</configuration>
			</plugin>

            <!-- ======================================================= -->
			<!-- OSGi Packaging -->
			<!-- ======================================================= -->
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>2.3.7</version>
				<extensions>true</extensions>
				<configuration>
					<instructions>
						<Export-Package>!javolution.*.internal.*,javolution.*,org.osgi.service.log</Export-Package>
						<Private-Package>javolution.*.internal.*,javax.realtime.*</Private-Package>
						<Bundle-Activator>javolution.osgi.internal.JavolutionActivator</Bundle-Activator>
						<Export-Service>javolution.xml.stream.XMLInputFactory,
							javolution.xml.stream.XMLOutputFactory</Export-Service>
					</instructions>
				</configuration>
			</plugin>

			<!-- ======================================================= -->
			<!-- Source code packaging (for IDE) -->
			<!-- ======================================================= -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
				<version>2.2</version>
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- ======================================================= -->
			<!-- Custom Javadoc plugin (for reports) -->
			<!-- ======================================================= -->
			<plugin>
				<groupId>org.javolution</groupId>
				<artifactId>colapi</artifactId>
				<version>2.0</version>
				<executions>
					<execution>
						<goals>
							<goal>colorize</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<!-- ======================================================= -->
			<!-- Javadoc packaging (for IDE) -->
			<!-- ======================================================= -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.9.1</version>
				<configuration>
					<sourcepath>${project.build.directory}/colorized</sourcepath>
					<outputDirectory>${project.build.directory}/apidocs</outputDirectory>
					<excludePackageNames>javax.*,*.internal</excludePackageNames>
					<overview>${project.build.directory}/colorized/javolution/doc-files/overview.html</overview>
					<docfilessubdirs>true</docfilessubdirs>
					<failOnError>false</failOnError>
				</configuration>
				<executions>
					<execution>
						<id>attach-javadocs</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

		</plugins>
	</build>
</project>