<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.alfresco</groupId>
   <artifactId>alfresco-lambda-empty-s3-bucket</artifactId>
   <packaging>jar</packaging>
   <version>1.1</version>
   <name>alfresco-lambda-empty-s3-bucket</name>
   <description>Lambda function that can be used in a CloudFormation template to empty an S3 bucket.</description>
   <url>https://github.com/Alfresco/alfresco-lambda-empty-s3-bucket</url>

   <properties>
      <aws.sdk.version>1.11.202</aws.sdk.version>
      <alfresco.lambda.utils.version>1.2.1</alfresco.lambda.utils.version>
      <junit.version>4.12</junit.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   </properties>

   <scm>
      <connection>scm:git:https://github.com/Alfresco/alfresco-lambda-empty-s3-bucket.git</connection>
      <developerConnection>scm:git:https://github.com/Alfresco/alfresco-lambda-empty-s3-bucket.git</developerConnection>
      <url>https://github.com/Alfresco/alfresco-lambda-empty-s3-bucket</url>
      <tag>alfresco-lambda-empty-s3-bucket-1.1</tag>
   </scm>

   <licenses>
      <license>
         <name>Apache License 2.0</name>
         <url>http://www.apache.org/licenses/LICENSE-2.0</url>
      </license>
   </licenses>

   <dependencyManagement>
      <dependencies>
         <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-bom</artifactId>
            <version>${aws.sdk.version}</version>
            <type>pom</type>
            <scope>import</scope>
         </dependency>
      </dependencies>
   </dependencyManagement>

   <dependencies>
      <dependency>
         <groupId>org.alfresco</groupId>
         <artifactId>alfresco-lambda-java-utils</artifactId>
         <version>${alfresco.lambda.utils.version}</version>
      </dependency>
      <dependency>
         <groupId>com.amazonaws</groupId>
         <artifactId>aws-java-sdk-cloudformation</artifactId>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>${junit.version}</version>
         <scope>test</scope>
      </dependency>
   </dependencies>

   <build>
      <finalName>alfresco-lambda-empty-s3-bucket</finalName>
      <plugins>
         <!-- skip unit tests as the project only contains integration tests -->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.18.1</version>
            <configuration>
               <skipTests>true</skipTests>
            </configuration>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-failsafe-plugin</artifactId>
            <version>2.18.1</version>
            <executions>
               <execution>
                  <id>integration-tests</id>
                  <goals>
                     <goal>integration-test</goal>
                     <goal>verify</goal>
                  </goals>
                  <configuration>
                     <includes>
                        <include>**/*IntegrationTest.java</include>
                     </includes>
                  </configuration>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-shade-plugin</artifactId>
            <version>3.1.0</version>
            <configuration>
               <createDependencyReducedPom>false</createDependencyReducedPom>
            </configuration>
            <executions>
               <execution>
                  <phase>package</phase>
                  <goals>
                     <goal>shade</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.6</version>
            <configuration>
                <archive>
                  <manifestEntries>
                    <Implementation-Version>${project.version}</Implementation-Version>
                    <Build-Date>${maven.build.timestamp}</Build-Date>
                    <Build-Name>${bamboo_planName}</Build-Name>
                    <Build-Key>${bamboo_fullBuildKey}</Build-Key>
                    <Build-Number>${bamboo_buildNumber}</Build-Number>
                    <Build-Revision>${bamboo_repository_revision_number}</Build-Revision>
                  </manifestEntries>
                </archive>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-release-plugin</artifactId>
            <version>2.5.3</version>
         </plugin>
      </plugins>
   </build>
   <distributionManagement>
      <repository>
         <id>alfresco-releases</id>
         <url>https://artifacts.alfresco.com/nexus/content/repositories/releases</url>
      </repository>
      <snapshotRepository>
         <id>alfresco-snapshots</id>
         <url>https://artifacts.alfresco.com/nexus/content/repositories/snapshots</url>
       </snapshotRepository>
    </distributionManagement>
</project>
