- <?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>
-
- <build>
- <defaultGoal>clean package</defaultGoal>
- #if (${LANGUAGE} == 'Kotlin')
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- #end
- <plugins>
- #if (${LANGUAGE} == 'Kotlin')
- <plugin>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-maven-plugin</artifactId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jvmTarget>${java.version}</jvmTarget>
- </configuration>
- </plugin>
- #else
- <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>
- #end
- <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>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
-
- <repositories>
- #if ($IS_SPIGOT)
- <repository>
- <id>spigotmc-repo</id>
- <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
- </repository>
- #elseif ($IS_PAPER)
- <repository>
- <id>papermc-repo</id>
- <url>https://repo.papermc.io/repository/maven-public/</url>
- </repository>
- #end
- <repository>
- <id>sonatype</id>
- <url>https://oss.sonatype.org/content/groups/public/</url>
- </repository>
- </repositories>
-
- <dependencies>
- #if ($IS_SPIGOT)
- <dependency>
- <groupId>org.spigotmc</groupId>
- <artifactId>spigot-api</artifactId>
- <version>${MC_VERSION}-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- #elseif ($IS_PAPER)
- <dependency>
- <groupId>io.papermc.paper</groupId>
- <artifactId>paper-api</artifactId>
- <version>${MC_VERSION}-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- #end
- #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>
-
- <build>
- <defaultGoal>clean package</defaultGoal>
- #if (${LANGUAGE} == 'Kotlin')
- <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
- #end
- <plugins>
- #if (${LANGUAGE} == 'Kotlin')
- <plugin>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-maven-plugin</artifactId>
- <version>${kotlin.version}</version>
- <executions>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jvmTarget>${java.version}</jvmTarget>
- </configuration>
- </plugin>
- #else
- <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>
- #end
- <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>
- </plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </build>
-
- <repositories>
- #if ($IS_SPIGOT)
- <repository>
- <id>spigotmc-repo</id>
- <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
- </repository>
- #elseif ($IS_PAPER)
- <repository>
- <id>papermc-repo</id>
- <url>https://repo.papermc.io/repository/maven-public/</url>
- </repository>
- #end
- </repositories>
-
- <dependencies>
- #if ($IS_SPIGOT)
- <dependency>
- <groupId>org.spigotmc</groupId>
- <artifactId>spigot-api</artifactId>
- <version>${MC_VERSION}-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- #elseif ($IS_PAPER)
- <dependency>
- <groupId>io.papermc.paper</groupId>
- <artifactId>paper-api</artifactId>
- <version>${MC_VERSION}-R0.1-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- #end
- #if (${LANGUAGE} == 'Kotlin')
- <dependency>
- <groupId>org.jetbrains.kotlin</groupId>
- <artifactId>kotlin-stdlib-jdk8</artifactId>
- <version>${kotlin.version}</version>
- </dependency>
- #end
- </dependencies>
- </project>