Pom of com.appslandia:appslandia-common-android:3.4

Back to com.appslandia:appslandia-common-android:3.4

<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>com.appslandia</groupId>
        <artifactId>appslandia-common-android</artifactId>
        <version>3.4</version>

        <name>appslandia-common-android</name>
        <packaging>jar</packaging>
        <description>AppsLandia Common - Java Utilities</description>
        <url>https://github.com/haducloc/appslandia-common</url>

        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

                <version.maven-compiler-plugin>3.7.0</version.maven-compiler-plugin>
                <version.maven-jar-plugin>3.0.2</version.maven-jar-plugin>
                <version.maven-source-plugin>3.0.1</version.maven-source-plugin>
                <version.maven-javadoc-plugin>3.0.0</version.maven-javadoc-plugin>
                <version.maven-gpg-plugin>1.6</version.maven-gpg-plugin>
                <version.nexus-staging-maven-plugin>1.6.8</version.nexus-staging-maven-plugin>

                <version.gson>2.8.2</version.gson>
                <version.junit>4.12</version.junit>
        </properties>

        <licenses>
                <license>
                        <name>MIT License</name>
                        <url>https://github.com/haducloc/appslandia-common/blob/master/LICENSE</url>
                        <distribution>repo</distribution>
                </license>
        </licenses>

        <developers>
                <developer>
                        <name>Loc Ha</name>
                        <email>haducloc13@gmail.com</email>
                        <url>https://github.com/haducloc/appslandia-common</url>
                </developer>
        </developers>

        <scm>
                <connection>scm:git:https://github.com/haducloc/appslandia-common.git</connection>
                <developerConnection>scm:git:https://github.com/haducloc/appslandia-common.git</developerConnection>
                <url>https://github.com/haducloc/appslandia-common.git</url>
        </scm>

        <distributionManagement>
                <snapshotRepository>
                        <id>ossrh</id>
                        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
                </snapshotRepository>
                <repository>
                        <id>ossrh</id>
                        <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
        </distributionManagement>

        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>${version.maven-compiler-plugin}</version>
                                <configuration>
                                        <source>1.8</source>
                                        <target>1.8</target>
                                        <excludes>
                                                <exclude>**/caching/**</exclude>
                                                <exclude>**/cdi/**</exclude>
                                                <exclude>**/easyrecord/**</exclude>
                                                <exclude>**/jdbc/**</exclude>
                                                <exclude>**/jpa/**</exclude>
                                                <exclude>**/logging/**</exclude>
                                                <exclude>**/objects/**</exclude>
                                                <exclude>**/validators/**</exclude>
                                                <exclude>**/streams/**</exclude>

                                                <exclude>**/gson/*LocalTime*</exclude>
                                                <exclude>**/gson/*LocalDate*</exclude>
                                                <exclude>**/gson/*LocalDateTime*</exclude>
                                                <exclude>**/gson/*OffsetTime*</exclude>
                                                <exclude>**/gson/*OffsetDate*</exclude>
                                                <exclude>**/gson/*OffsetDateTime*</exclude>
                                                <exclude>**/gson/*Jdk8*</exclude>

                                                <exclude>**/formatters/*LocalTime*</exclude>
                                                <exclude>**/formatters/*LocalDate*</exclude>
                                                <exclude>**/formatters/*LocalDateTime*</exclude>
                                                <exclude>**/formatters/*OffsetTime*</exclude>
                                                <exclude>**/formatters/*OffsetDate*</exclude>
                                                <exclude>**/formatters/*OffsetDateTime*</exclude>
                                                <exclude>**/formatters/*Jdk8*</exclude>

                                                <exclude>**/base/*Jdk8*</exclude>
                                                <exclude>**/base/MapAccessor*</exclude>
                                                <exclude>**/utils/*Jdk8*</exclude>
                                        </excludes>
                                        <testExcludes>
                                                <exclude>**/**</exclude>
                                        </testExcludes>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-jar-plugin</artifactId>
                                <version>${version.maven-jar-plugin}</version>
                                <configuration>
                                        <archive>
                                                <addMavenDescriptor>true</addMavenDescriptor>
                                        </archive>
                                        <excludes>
                                                <exclude>**/META-INF/beans.xml</exclude>
                                                <exclude>**/caching/**</exclude>
                                                <exclude>**/cdi/**</exclude>
                                                <exclude>**/easyrecord/**</exclude>
                                                <exclude>**/jdbc/**</exclude>
                                                <exclude>**/jpa/**</exclude>
                                                <exclude>**/logging/**</exclude>
                                                <exclude>**/objects/**</exclude>
                                                <exclude>**/validators/**</exclude>
                                                <exclude>**/streams/**</exclude>

                                                <exclude>**/gson/*LocalTime*</exclude>
                                                <exclude>**/gson/*LocalDate*</exclude>
                                                <exclude>**/gson/*LocalDateTime*</exclude>
                                                <exclude>**/gson/*OffsetTime*</exclude>
                                                <exclude>**/gson/*OffsetDate*</exclude>
                                                <exclude>**/gson/*OffsetDateTime*</exclude>
                                                <exclude>**/gson/*Jdk8*</exclude>

                                                <exclude>**/formatters/*LocalTime*</exclude>
                                                <exclude>**/formatters/*LocalDate*</exclude>
                                                <exclude>**/formatters/*LocalDateTime*</exclude>
                                                <exclude>**/formatters/*OffsetTime*</exclude>
                                                <exclude>**/formatters/*OffsetDate*</exclude>
                                                <exclude>**/formatters/*OffsetDateTime*</exclude>
                                                <exclude>**/formatters/*Jdk8*</exclude>

                                                <exclude>**/base/*Jdk8*</exclude>
                                                <exclude>**/base/MapAccessor*</exclude>
                                                <exclude>**/utils/*Jdk8*</exclude>
                                        </excludes>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-source-plugin</artifactId>
                                <version>${version.maven-source-plugin}</version>
                                <configuration>
                                        <excludes>
                                                <exclude>**/caching/**</exclude>
                                                <exclude>**/cdi/**</exclude>
                                                <exclude>**/easyrecord/**</exclude>
                                                <exclude>**/jdbc/**</exclude>
                                                <exclude>**/jpa/**</exclude>
                                                <exclude>**/logging/**</exclude>
                                                <exclude>**/objects/**</exclude>
                                                <exclude>**/validators/**</exclude>
                                                <exclude>**/streams/**</exclude>

                                                <exclude>**/gson/*LocalTime*</exclude>
                                                <exclude>**/gson/*LocalDate*</exclude>
                                                <exclude>**/gson/*LocalDateTime*</exclude>
                                                <exclude>**/gson/*OffsetTime*</exclude>
                                                <exclude>**/gson/*OffsetDate*</exclude>
                                                <exclude>**/gson/*OffsetDateTime*</exclude>
                                                <exclude>**/gson/*Jdk8*</exclude>

                                                <exclude>**/formatters/*LocalTime*</exclude>
                                                <exclude>**/formatters/*LocalDate*</exclude>
                                                <exclude>**/formatters/*LocalDateTime*</exclude>
                                                <exclude>**/formatters/*OffsetTime*</exclude>
                                                <exclude>**/formatters/*OffsetDate*</exclude>
                                                <exclude>**/formatters/*OffsetDateTime*</exclude>
                                                <exclude>**/formatters/*Jdk8*</exclude>

                                                <exclude>**/base/*Jdk8*</exclude>
                                                <exclude>**/base/MapAccessor*</exclude>
                                                <exclude>**/utils/*Jdk8*</exclude>
                                        </excludes>
                                </configuration>
                        </plugin>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-javadoc-plugin</artifactId>
                                <version>${version.maven-javadoc-plugin}</version>
                                <configuration>
                                        <sourcepath>${project.basedir}/src/main/java</sourcepath>
                                        <sourceFileExcludes>
                                                <sourceFileExclude>**/caching/**</sourceFileExclude>
                                                <sourceFileExclude>**/cdi/**</sourceFileExclude>
                                                <sourceFileExclude>**/easyrecord/**</sourceFileExclude>
                                                <sourceFileExclude>**/jdbc/**</sourceFileExclude>
                                                <sourceFileExclude>**/jpa/**</sourceFileExclude>
                                                <sourceFileExclude>**/logging/**</sourceFileExclude>
                                                <sourceFileExclude>**/objects/**</sourceFileExclude>
                                                <sourceFileExclude>**/validators/**</sourceFileExclude>
                                                <sourceFileExclude>**/streams/**</sourceFileExclude>

                                                <sourceFileExclude>**/gson/*LocalTime*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*LocalDate*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*LocalDateTime*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*OffsetTime*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*OffsetDate*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*OffsetDateTime*</sourceFileExclude>
                                                <sourceFileExclude>**/gson/*Jdk8*</sourceFileExclude>

                                                <sourceFileExclude>**/formatters/*LocalTime*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*LocalDate*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*LocalDateTime*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*OffsetTime*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*OffsetDate*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*OffsetDateTime*</sourceFileExclude>
                                                <sourceFileExclude>**/formatters/*Jdk8*</sourceFileExclude>

                                                <sourceFileExclude>**/base/*Jdk8*</sourceFileExclude>
                                                <sourceFileExclude>**/base/MapAccessor*</sourceFileExclude>
                                                <sourceFileExclude>**/utils/*Jdk8*</sourceFileExclude>
                                        </sourceFileExcludes>
                                </configuration>
                        </plugin>
                </plugins>
        </build>

        <profiles>
                <profile>
                        <id>release</id>
                        <activation>
                                <property>
                                        <name>release</name>
                                </property>
                        </activation>
                        <build>
                                <plugins>
                                        <plugin>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-source-plugin</artifactId>
                                                <version>${version.maven-source-plugin}</version>
                                                <executions>
                                                        <execution>
                                                                <id>attach-sources</id>
                                                                <goals>
                                                                        <goal>jar-no-fork</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>

                                        <plugin>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-javadoc-plugin</artifactId>
                                                <version>${version.maven-javadoc-plugin}</version>
                                                <executions>
                                                        <execution>
                                                                <id>attach-javadocs</id>
                                                                <goals>
                                                                        <goal>jar</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>

                                        <plugin>
                                                <groupId>org.sonatype.plugins</groupId>
                                                <artifactId>nexus-staging-maven-plugin</artifactId>
                                                <version>${version.nexus-staging-maven-plugin}</version>
                                                <extensions>true</extensions>
                                                <configuration>
                                                        <serverId>ossrh</serverId>
                                                        <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                                                        <autoReleaseAfterClose>false</autoReleaseAfterClose>
                                                </configuration>
                                        </plugin>

                                        <plugin>
                                                <groupId>org.apache.maven.plugins</groupId>
                                                <artifactId>maven-gpg-plugin</artifactId>
                                                <version>${version.maven-gpg-plugin}</version>
                                                <executions>
                                                        <execution>
                                                                <id>sign-artifacts</id>
                                                                <phase>verify</phase>
                                                                <goals>
                                                                        <goal>sign</goal>
                                                                </goals>
                                                        </execution>
                                                </executions>
                                        </plugin>
                                </plugins>
                        </build>
                </profile>
        </profiles>

        <dependencies>
                <dependency>
                        <groupId>com.google.code.gson</groupId>
                        <artifactId>gson</artifactId>
                        <version>${version.gson}</version>
                        <scope>provided</scope>
                </dependency>

                <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>${version.junit}</version>
                        <scope>test</scope>
                </dependency>
        </dependencies>
</project>