<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2013 The Morphia/MongoDB Plugin for ACT Framework
  ~
  ~ The ACT framework Project licenses this file to you under the Apache License,
  ~ version 2.0 (the "License"); you may not use this file except in compliance
  ~ with the License. You may obtain a copy of the License at:
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  ~ License for the specific language governing permissions and limitations
  ~ under the License.
  -->
<!--
********************************************
*            version history
********************************************
1.1.5
- #16 NPE when no third party datasource configured
- update sql-common to 1.0.2

1.1.4
- update to act-sql-common-1.0.1
- #14 Ebean Agent loaded twice if there are two ebean db services
- #15 The datasource created in sql-common not used when creating ebean server
1.1.3
- #13 It should use ebean's naming convention by default
1.1.2
- #12 Migrate to act-1.1.0 new DB architecture
1.1.1
- #10 HikariDataSourceProvider.confKeyMapping error
- #11 DruidDataSourceProvider.confKeyMapping() error
1.1.0
- #9 Support plugin different datasource solution
- #8 change mysql jdbc driver class name
- #6 Support Druid database
1.0.5
- fix #7 It reports XXX table not found when start app in dev mode
1.0.4
- take out version range from pom.xml. See https://issues.apache.org/jira/browse/MNG-3092
1.0.3
- version number of mistake
1.0.2
- #4 use HikariCP for connection pool
- #5 Make it easy to do low level JDBC logic
1.0.1
- Fix #1 EbeanDao.drop() method cause JdbcSQLException
- Fix #3 EbeanInjectionListener not effect on User defined Dao
1.0.0
- the first formal release
0.7.0 - update act to 0.7.0
0.6.0 - update act to 0.6.0
0.5.0 - upgrade to act 0.5.0 (to reserve 0.4.0 for techempower test)
0.4.0 - upgrade to act 0.4.0
0.3.1 - upgrade to act 0.3.1
0.3.0 - upgrade to act 0.3.0
0.2.0 - upgrade to act 0.2.0
      - upgrade to ebean-8
0.1.2 - upgrade to act 0.1.2
0.1.1 - baseline version
-->
<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>org.actframework</groupId>
  <artifactId>act-ebean</artifactId>
  <packaging>jar</packaging>
  <version>1.1.5</version>

  <name>ACT Ebean</name>
  <description>The Ebean Plugin for Actframework SQL database access</description>
  <url>http://actframework.org/plugin/ebean</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <git.url>git@github.com:actframework/act-ebean.git</git.url>
    <act.version>1.1.2</act.version>
    <act-sql-common.version>1.0.2</act-sql-common.version>
    <ebean.version>8.8.1</ebean.version>
    <ebean-agent.version>8.1.1</ebean-agent.version>
    <ebean-agent-loader.version>2.1.2</ebean-agent-loader.version>
    <mockito-core.version>2.7.0</mockito-core.version>
  </properties>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <scm>
    <connection>scm:git:${git.url}</connection>
    <developerConnection>scm:git:${git.url}</developerConnection>
    <url>${git.url}</url>
  </scm>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
      </resource>
    </resources>

    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.3</version>
          <configuration>
            <source>1.7</source>
            <target>1.7</target>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>2.1.2</version>
          <configuration>
            <includePom>true</includePom>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.9</version>
          <configuration>
            <stylesheetfile>src/etc/javadoc.css</stylesheetfile>
            <quiet />
          </configuration>
          <executions>
            <execution>
              <id>gen-javadoc</id>
              <phase>prepare-package</phase>
              <goals>
                <goal>javadoc</goal>
              </goals>
            </execution>
            <execution>
              <id>attach-javadocs</id>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <dependencies>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <version>${mockito-core.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.avaje.ebean</groupId>
      <artifactId>ebean</artifactId>
      <version>${ebean.version}</version>
    </dependency>

    <dependency>
      <groupId>org.avaje.ebean</groupId>
      <artifactId>ebean-agent</artifactId>
      <version>${ebean-agent.version}</version>
    </dependency>

    <dependency>
      <groupId>org.avaje</groupId>
      <artifactId>avaje-agentloader</artifactId>
      <version>${ebean-agent-loader.version}</version>
    </dependency>

    <dependency>
      <groupId>org.actframework</groupId>
      <artifactId>act</artifactId>
      <version>${act.version}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.actframework</groupId>
      <artifactId>act-sql-common</artifactId>
      <version>${act-sql-common.version}</version>
    </dependency>

  </dependencies>

  <profiles>
    <profile>
      <id>dist</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2</version>
            <configuration>
              <descriptors>
                <descriptor>${basedir}/assembly-dist.xml</descriptor>
              </descriptors>
              <tarLongFileMode>gnu</tarLongFileMode>
            </configuration>
            <executions>
              <execution>
                <id>make-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
                <configuration>
                  <descriptors>
                    <descriptor>${basedir}/assembly-dist.xml</descriptor>
                  </descriptors>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <configuration>
              <header>src/etc/header.txt</header>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>
