<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>dk.sds</groupId>
    <artifactId>cprsubscriber</artifactId>
    <version>1.8</version>
    <packaging>jar</packaging>

    <name>CPR Subscriber</name>
    <description>Utility for subscribing to CPR changes</description>

    <parent>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-parent</artifactId>
      <version>2.0.3.RELEASE</version>
      <relativePath />
    </parent>

    <properties>
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <mysql.version>5.1.44</mysql.version>
    </properties>

    <scm>
        <connection>scm:svn:https://svn.nspop.dk/svn/libraries/cpr-subscriber/tags/release-1.8</connection>
    </scm>

    <repositories>
        <repository>
            <id>nsp-nexus-public</id>
            <name>NSP public</name>
            <url>https://nexus.nspop.dk/nexus/content/groups/public/</url>
        </repository>
        <repository>
            <id>nsp-nexus-releases</id>
            <name>NSP releases</name>
            <url>https://nexus.nspop.dk/nexus/content/repositories/releases/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.29</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-log4j2</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

  <build>
       <plugins>
           <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-release-plugin</artifactId>
               <version>2.5.3</version>
               <configuration>
                   <checkModificationExcludes>
                       <checkModificationExclude>*.project</checkModificationExclude>
                       <checkModificationExclude>*.classpath</checkModificationExclude>
                       <checkModificationExclude>**/*.iml</checkModificationExclude>
                       <checkModificationExclude>*.idea</checkModificationExclude>
                       <checkModificationExclude>**/*.log</checkModificationExclude>
                   </checkModificationExcludes>
                   <autoVersionSubmodules>true</autoVersionSubmodules>
		   <tagBase>https://svn.nspop.dk/svn/libraries/cpr-subscriber/tags</tagBase>
                   <tagNameFormat>release-@{project.version}</tagNameFormat>
                   <releaseProfiles>production</releaseProfiles>
                   <goals>package</goals>
               </configuration>
           </plugin>
            <plugin>
               <inherited>false</inherited>
               <groupId>com.mycila</groupId>
               <artifactId>license-maven-plugin</artifactId>
               <version>3.0</version>
               <configuration>
                   <strictCheck>true</strictCheck>
                   <header>${basedir}/LICENSE</header>
                   <failIfMissing>true</failIfMissing>
                   <aggregate>true</aggregate>
                   <mapping>
                       <java>SLASHSTAR_STYLE</java>
                   </mapping>
                   <includes>
                       <include>**/src/**/*.java</include>
                   </includes>
               </configuration>
               <executions>
                   <execution>
                       <phase>verify</phase>
                       <goals>
                           <goal>format</goal>
                       </goals>
                   </execution>
               </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
                <version>1.0</version>
                <executions>
                    <execution>
                        <phase>validate</phase>
                        <goals>
                            <goal>create</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
       </plugins>
  </build>
</project>
