Updated POM

This commit is contained in:
tastybento 2019-07-07 14:40:36 -07:00
parent a3f8333a7b
commit ec175e4fd1
1 changed files with 275 additions and 197 deletions

472
pom.xml
View File

@ -1,209 +1,287 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <project xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<modelVersion>4.0.0</modelVersion> 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>world.bentobox</groupId> <groupId>world.bentobox</groupId>
<artifactId>Greenhouses</artifactId> <artifactId>Greenhouses</artifactId>
<version>0.0.3-SNAPSHOT</version> <version>${revision}</version>
<name>Greenhouses</name> <name>Greenhouses</name>
<description>Greenhouses is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like ASkyBlock or AcidIsland.</description> <description>Greenhouses is an add-on for BentoBox, an expandable Minecraft Bukkit plugin for island-type games like ASkyBlock or AcidIsland.</description>
<url>https://github.com/BentoBoxWorld/Greenhouses</url> <url>https://github.com/BentoBoxWorld/Greenhouses</url>
<inceptionYear>2019</inceptionYear> <inceptionYear>2019</inceptionYear>
<scm> <scm>
<connection>scm:git:https://github.com/BentoBoxWorld/Greenhouses.git</connection> <connection>scm:git:https://github.com/BentoBoxWorld/Greenhouses.git</connection>
<developerConnection>scm:git:git@github.com:BentoBoxWorld/Greenhouses.git</developerConnection> <developerConnection>scm:git:git@github.com:BentoBoxWorld/Greenhouses.git</developerConnection>
<url>https://github.com/BentoBoxWorld/Greenhouses</url> <url>https://github.com/BentoBoxWorld/Greenhouses</url>
</scm> </scm>
<ciManagement> <ciManagement>
<system>jenkins</system> <system>jenkins</system>
<url>http://ci.codemc.org/job/BentoBoxWorld/job/Greenhouses</url> <url>http://ci.codemc.org/job/BentoBoxWorld/job/Greenhouses</url>
</ciManagement> </ciManagement>
<issueManagement> <issueManagement>
<system>GitHub</system> <system>GitHub</system>
<url>https://github.com/BentoBoxWorld/Greenhouses/issues</url> <url>https://github.com/BentoBoxWorld/Greenhouses/issues</url>
</issueManagement> </issueManagement>
<distributionManagement> <distributionManagement>
<snapshotRepository> <snapshotRepository>
<id>codemc-snapshots</id> <id>codemc-snapshots</id>
<url>https://repo.codemc.org/repository/maven-snapshots</url> <url>https://repo.codemc.org/repository/maven-snapshots</url>
</snapshotRepository> </snapshotRepository>
<repository> <repository>
<id>codemc-releases</id> <id>codemc-releases</id>
<url>https://repo.codemc.org/repository/maven-releases</url> <url>https://repo.codemc.org/repository/maven-releases</url>
</repository>
</distributionManagement>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<powermock.version>1.7.4</powermock.version>
</properties>
<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
</repository>
<repository>
<id>codemc-public</id>
<url>https://repo.codemc.org/repository/maven-public</url>
</repository> </repository>
</repositories> </distributionManagement>
<dependencies> <properties>
<dependency> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<groupId>org.spigotmc</groupId> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<artifactId>spigot-api</artifactId> <java.version>1.8</java.version>
<version>1.13.2-R0.1-SNAPSHOT</version> <powermock.version>1.7.4</powermock.version>
<scope>provided</scope> <!-- More visible way how to change dependency versions -->
</dependency> <spigot.version>1.14.3-R0.1-SNAPSHOT</spigot.version>
<dependency> <bentobox.version>1.6.0-SNAPSHOT</bentobox.version>
<groupId>org.mockito</groupId> <!-- Revision variable removes warning about dynamic version -->
<artifactId>mockito-all</artifactId> <revision>${build.version}-SNAPSHOT</revision>
<version>1.10.19</version> <!-- This allows to change between versions and snapshots. -->
<scope>test</scope> <build.version>0.3.0</build.version>
</dependency> <build.number>-LOCAL</build.number>
<dependency> </properties>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>world.bentobox</groupId>
<artifactId>bentobox</artifactId>
<version>1.5.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build> <profiles>
<defaultGoal>clean package</defaultGoal> <!-- Build profile is activated by BUILD_NUMBER variable. It replaces
<resources> 0 with correct build number. -->
<resource> <!-- This profile will be used only if BUILD_NUMBER environment variable
<directory>src/main/resources</directory> exists. -->
<filtering>true</filtering> <profile>
</resource> <id>ci</id>
<resource> <activation>
<directory>src/main/resources/locales</directory> <property>
<targetPath>./locales</targetPath> <name>env.BUILD_NUMBER</name>
<filtering>false</filtering> </property>
</resource> </activation>
</resources> <properties>
<plugins> <!-- Override only if necessary -->
<plugin> <build.number>-b${env.BUILD_NUMBER}</build.number>
<groupId>org.apache.maven.plugins</groupId> <!-- GIT_BRANCH -->
<artifactId>maven-clean-plugin</artifactId> </properties>
<version>3.1.0</version> </profile>
</plugin> <!-- master profile is activated by GIT_BRANCH variable. It removes
<plugin> '-SNAPSHOT' at the end of -->
<groupId>org.apache.maven.plugins</groupId> <!-- ${build.version} -->
<artifactId>maven-resources-plugin</artifactId> <!-- This profile will be used only if environment variable GIT_BRANCH
<version>3.1.0</version> is origin/master. -->
</plugin> <profile>
<plugin> <id>master</id>
<groupId>org.apache.maven.plugins</groupId> <activation>
<artifactId>maven-compiler-plugin</artifactId> <property>
<version>3.7.0</version> <name>env.GIT_BRANCH</name>
<configuration> <value>origin/master</value>
<source>${java.version}</source> </property>
<target>${java.version}</target> </activation>
</configuration> <properties>
</plugin> <!-- Override only if necessary -->
<plugin> <revision>${build.version}</revision>
<groupId>org.apache.maven.plugins</groupId> <!-- Empties build.number value -->
<artifactId>maven-surefire-plugin</artifactId> <build.number></build.number>
<version>2.22.0</version> </properties>
</plugin> </profile>
<plugin> <profile>
<groupId>org.apache.maven.plugins</groupId> <id>sonar</id>
<artifactId>maven-jar-plugin</artifactId> <properties>
<version>3.1.0</version> <sonar.host.url>https://sonarcloud.io</sonar.host.url>
</plugin> <sonar.organization>bentobox-world</sonar.organization>
<plugin> </properties>
<groupId>org.apache.maven.plugins</groupId> <build>
<artifactId>maven-source-plugin</artifactId> <plugins>
<version>3.0.1</version> <plugin>
<executions> <groupId>org.sonarsource.scanner.maven</groupId>
<execution> <artifactId>sonar-maven-plugin</artifactId>
<id>attach-sources</id> <version>5.1</version>
<goals> <executions>
<goal>jar-no-fork</goal> <execution>
</goals> <phase>verify</phase>
</execution> <goals>
</executions> <goal>sonar</goal>
</plugin> </goals>
<plugin> </execution>
<groupId>org.apache.maven.plugins</groupId> </executions>
<artifactId>maven-install-plugin</artifactId> </plugin>
<version>2.5.2</version> </plugins>
</plugin> </build>
<plugin> </profile>
<groupId>org.apache.maven.plugins</groupId> </profiles>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.1</version>
<configuration>
<append>true</append>
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles> <repositories>
<profile> <repository>
<id>sonar</id> <id>spigot-repo</id>
<properties> <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
<sonar.host.url>https://sonarcloud.io</sonar.host.url> </repository>
<sonar.organization>bentobox-world</sonar.organization> <repository>
</properties> <id>codemc-repo</id>
<build> <url>https://repo.codemc.org/repository/maven-public/</url>
<plugins> </repository>
<plugin> </repositories>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId> <dependencies>
<version>5.1</version> <dependency>
<executions> <groupId>org.spigotmc</groupId>
<execution> <artifactId>spigot-api</artifactId>
<phase>verify</phase> <version>${spigot.version}</version>
<goals> <scope>provided</scope>
<goal>sonar</goal> </dependency>
</goals> <dependency>
</execution> <groupId>world.bentobox</groupId>
</executions> <artifactId>bentobox</artifactId>
</plugin> <version>${bentobox.version}</version>
</plugins> <scope>provided</scope>
</build> </dependency>
</profile> <!-- Mockito (Unit testing) -->
</profiles> <dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- By default ${revision} is ${build.version}-SNAPSHOT -->
<!-- If GIT_BRANCH variable is set to origin/master, then it will
be only ${build.version}. -->
<!-- By default ${build.number} is -LOCAL. -->
<!-- If the BUILD_NUMBER variable is set, then it will be -b[number]. -->
<!-- If GIT_BRANCH variable is set to origin/master, then it will
be the empty string. -->
<finalName>${project.name}-${revision}${build.number}</finalName>
<defaultGoal>clean package</defaultGoal>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources/locales</directory>
<targetPath>./locales</targetPath>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<show>public</show>
<failOnError>false</failOnError>
<additionalJOption>-Xdoclint:none</additionalJOption>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</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-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.1</version>
<configuration>
<append>true</append>
</configuration>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> </project>