<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>
    <groupId>es.imim</groupId>
    <artifactId>DisGeNET-app</artifactId>
    <version>8.2.3</version>

    <!-- Project Summary -->
    <name>DisGeNET-app</name>
    <description>This is the DISGENET application, which integrates gene-disease and variant-disease associations from various sources.</description>
    <url>http://www.disgenet.com/</url>

    <properties>
        <cytoscape.api.version>3.6.1</cytoscape.api.version>
        <maven-compiler-plugin.version>2.3.2</maven-compiler-plugin.version>
        <maven-bundle-plugin.version>2.3.7</maven-bundle-plugin.version>
        <maven-surefire-plugin>2.7.1</maven-surefire-plugin>
        <osgi.api.version>4.2.0</osgi.api.version>
        <slf4jVersion>1.6.1</slf4jVersion>
    </properties>

    <packaging>bundle</packaging>

    <build>
        <plugins>
            <!-- The maven-compiler-plugin configures the Java compiler Maven uses
                to build the project. -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>${maven-compiler-plugin.version}</version>
                <configuration>
                    <!-- These options indicate the source code is Java 1.8-compliant and
                        the resulting class files should be Java 1.8-compatible. -->
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>

            <!-- The maven-bundle-plugin creates the metadata that's necessary for
                an OSGi bundle. You can customize the OSGi options in the "instructions"
                section below. -->
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>${maven-bundle-plugin.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>es.imim.DISGENET-app</Bundle-SymbolicName>
                        <Bundle-Version>${project.version}</Bundle-Version>
                        <!-- This tells the bundle plugin which packages should not be exported. -->
                        <Private-Package>es.imim.*</Private-Package>
                        <Import-Package>
                            javax.swing.*,
                            *
                        </Import-Package>
                        <Embed-Dependency>commons-lang3;scope=compile|runtime</Embed-Dependency>
                        <Bundle-Activator>es.imim.DISGENET.internal.CyActivator</Bundle-Activator>
                        <Embed-Dependency>json-simple</Embed-Dependency>
                        <Import-Package>org.json.simple.*;version:=1.1.1,*;resolution:=optional</Import-Package>
                    </instructions>
                </configuration>
            </plugin>
            <!-- Maven Javadoc Plugin -->
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.7.0</version>
            <executions>
                <execution>
                    <goals>
                        <goal>javadoc</goal>
                        <goal>jar</goal>
                    </goals>
                </execution>
            </executions>
                <configuration>
                    <doctitle>DISGENET-app</doctitle>
                    <windowtitle>DISGENET-app</windowtitle>
                    <author>true</author>
                    <version>true</version>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <!-- Links to the Cytoscape Maven repositories. -->
    <repositories>
        <repository>
            <id>cytoscape_snapshots</id>
            <snapshots>
            </snapshots>
            <releases>
                <enabled>false</enabled>
            </releases>
            <name>Cytoscape Snapshots</name>
            <url>http://code.cytoscape.org/nexus/content/repositories/snapshots/</url>
        </repository>
        <repository>
            <id>cytoscape_releases</id>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <releases>
            </releases>
            <name>Cytoscape Releases</name>
            <url>http://code.cytoscape.org/nexus/content/repositories/releases/</url>
        </repository>
    </repositories>

    <!-- Dependencies needed to compile this project. -->
    <dependencies>
        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>4.2.0</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.cytoscape/service-api -->
        <dependency>
            <groupId>org.cytoscape</groupId>
            <artifactId>service-api</artifactId>
            <version>${cytoscape.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.cytoscape</groupId>
            <artifactId>layout-api</artifactId>
            <version>${cytoscape.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.cytoscape</groupId>
            <artifactId>swing-application-api</artifactId>
            <version>${cytoscape.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.cytoscape</groupId>
            <artifactId>session-api</artifactId>
            <version>${cytoscape.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.cytoscape</groupId>
            <artifactId>swing-util-api</artifactId>
            <version>${cytoscape.api.version}</version>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>javax.ws.rs-api</artifactId>
            <version>2.0</version>
        </dependency>
        <dependency>
            <groupId>io.swagger</groupId>
            <artifactId>swagger-annotations</artifactId>
            <version>1.5.7</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode.json-simple</groupId>
            <artifactId>json-simple</artifactId>
            <version>1.1.1</version>
        </dependency>
        <dependency>
            <groupId>org.swinglabs</groupId>
            <artifactId>swingx</artifactId>
            <version>1.6.1</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.13.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents.client5</groupId>
            <artifactId>httpclient5</artifactId>
            <version>5.2</version>
        </dependency>

    </dependencies>
</project>
