- <?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>${BUILD_COORDS.groupId}</groupId>
- <artifactId>${BUILD_COORDS.artifactId}</artifactId>
- <version>${BUILD_COORDS.version}</version>
- <packaging>jar</packaging>
-
- <name>${BUILD_COORDS.artifactId}</name>
-
- <properties>
- <java.version>${JAVA_VERSION}</java.version>
- #if (${LANGUAGE} == 'Kotlin')
- <kotlin.version>${KOTLIN_VERSION}</kotlin.version>
- #end
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
-
- <profiles>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.3.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-javadoc-plugin</artifactId>
- <version>3.6.3</version>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>3.2.4</version>
- <executions>
- <execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
- </profile>
- </profiles>
-
- <build>
- <defaultGoal>clean package</defaultGoal>
- #if (${LANGUAGE} == 'Kotlin')
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- #end
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- #if (${LANGUAGE} == 'Kotlin')
- <plugin>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-maven-plugin</artifactId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>kapt</id>
- <goals>
- <goal>kapt</goal>
- </goals>
- <configuration>
- <sourceDirs>
- <sourceDir>src/main/kotlin</sourceDir>
- <sourceDir>src/main/java</sourceDir>
- </sourceDirs>
- <annotationProcessorPaths>
- <annotationProcessorPath>
- <groupId>com.velocitypowered</groupId>
- <artifactId>velocity-api</artifactId>
- <version>${VELOCITY_VERSION}</version>
- </annotationProcessorPath>
- </annotationProcessorPaths>
- </configuration>
- </execution>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jvmTarget>${java.version}</jvmTarget>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.5.3</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- #end
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.13.0</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>templating-maven-plugin</artifactId>
- <version>1.0.0</version>
- <executions>
- <execution>
- <id>filter-src</id>
- <goals>
- <goal>filter-sources</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.12.1</version>
- <dependencies>
- <dependency>
- <groupId>net.trajano.wagon</groupId>
- <artifactId>wagon-git</artifactId>
- <version>2.0.4</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-markdown</artifactId>
- <version>1.12.0</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>3.0.1</version>
- <configuration>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- <tagNameFormat>@{project.version}</tagNameFormat>
- <scmCommentPrefix xml:space="preserve">[RELEASE] </scmCommentPrefix>
- <goals>install deploy site-deploy
- </goals> <!-- install is here to fix javadoc generation in multi-module projects -->
- <releaseProfiles>release</releaseProfiles>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.6.3</version>
- </plugin>
- </plugins>
- </reporting>
-
- <repositories>
- <repository>
- <id>papermc-repo</id>
- <url>https://repo.papermc.io/repository/maven-public/</url>
- </repository>
- </repositories>
-
- <dependencies>
- <dependency>
- <groupId>com.velocitypowered</groupId>
- <artifactId>velocity-api</artifactId>
- <version>${VELOCITY_VERSION}</version>
- <scope>provided</scope>
- </dependency>
- #if (${LANGUAGE} == 'Kotlin')
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-jdk8</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- #end
- </dependencies>
- </project>
- <?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>${BUILD_COORDS.groupId}</groupId>
- <artifactId>${BUILD_COORDS.artifactId}</artifactId>
- <version>${BUILD_COORDS.version}</version>
- <packaging>jar</packaging>
-
- <name>${BUILD_COORDS.artifactId}</name>
-
- <properties>
- <java.version>${JAVA_VERSION}</java.version>
- #if (${LANGUAGE} == 'Kotlin')
- <kotlin.version>${KOTLIN_VERSION}</kotlin.version>
- #end
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
-
- <profiles>
- <profile>
- <id>release</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>3.3.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-javadoc-plugin</artifactId>
- <version>3.6.3</version>
- <executions>
- <execution>
- <id>attach-javadocs</id>
- <goals>
- <goal>jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-gpg-plugin</artifactId>
- <version>3.2.4</version>
- <executions>
- <execution>
- <id>sign-artifacts</id>
- <phase>verify</phase>
- <goals>
- <goal>sign</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
- </profile>
- </profiles>
-
- <build>
- <defaultGoal>clean package</defaultGoal>
- #if (${LANGUAGE} == 'Kotlin')
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- #end
- <resources>
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- #if (${LANGUAGE} == 'Kotlin')
- <plugin>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-maven-plugin</artifactId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>kapt</id>
- <goals>
- <goal>kapt</goal>
- </goals>
- <configuration>
- <sourceDirs>
- <sourceDir>src/main/kotlin</sourceDir>
- <sourceDir>src/main/java</sourceDir>
- </sourceDirs>
- #if ($USE_ANNOTATION_PROCESSOR)
- <annotationProcessorPaths>
- <annotationProcessorPath>
- <groupId>com.velocitypowered</groupId>
- <artifactId>velocity-api</artifactId>
- <version>${VELOCITY_VERSION}</version>
- </annotationProcessorPath>
- </annotationProcessorPaths>
- #end
- </configuration>
- </execution>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jvmTarget>${java.version}</jvmTarget>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>3.5.3</version>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- #end
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.13.0</version>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- #if ($USE_ANNOTATION_PROCESSOR)
- <annotationProcessorPaths>
- <annotationProcessorPath>
- <groupId>com.velocitypowered</groupId>
- <artifactId>velocity-api</artifactId>
- <version>${VELOCITY_VERSION}</version>
- </annotationProcessorPath>
- </annotationProcessorPaths>
- #end
- </configuration>
- </plugin>
- #if ($USE_BUILD_CONSTANTS_TEMPLATING)
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>templating-maven-plugin</artifactId>
- <version>1.0.0</version>
- <executions>
- <execution>
- <id>filter-src</id>
- <goals>
- <goal>filter-sources</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- #end
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.12.1</version>
- <dependencies>
- <dependency>
- <groupId>net.trajano.wagon</groupId>
- <artifactId>wagon-git</artifactId>
- <version>2.0.4</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-markdown</artifactId>
- <version>1.12.0</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-release-plugin</artifactId>
- <version>3.0.1</version>
- <configuration>
- <autoVersionSubmodules>true</autoVersionSubmodules>
- <tagNameFormat>@{project.version}</tagNameFormat>
- <scmCommentPrefix xml:space="preserve">[RELEASE] </scmCommentPrefix>
- <goals>install deploy site-deploy
- </goals> <!-- install is here to fix javadoc generation in multi-module projects -->
- <releaseProfiles>release</releaseProfiles>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>3.6.3</version>
- </plugin>
- </plugins>
- </reporting>
-
- <repositories>
- <repository>
- <id>papermc-repo</id>
- <url>https://repo.papermc.io/repository/maven-public/</url>
- </repository>
- </repositories>
-
- <dependencies>
- <dependency>
- <groupId>com.velocitypowered</groupId>
- <artifactId>velocity-api</artifactId>
- <version>${VELOCITY_VERSION}</version>
- <scope>provided</scope>
- </dependency>
- #if (${LANGUAGE} == 'Kotlin')
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-jdk8</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- #end
- </dependencies>
- </project>