Compile against 1.18.1/Java 17

This commit is contained in:
selfslaughter 2022-02-25 19:40:46 +10:00
parent f1647babf8
commit 47fb6625dd

106
pom.xml
View File

@ -1,15 +1,15 @@
<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>nl.Steffion</groupId>
<artifactId>BlockHunt</artifactId>
<version>0.5.0-SNAPSHOT</version>
<name>BlockHunt</name>
<modelVersion>4.0.0</modelVersion>
<groupId>nl.Steffion</groupId>
<artifactId>BlockHunt</artifactId>
<version>0.5.0-SNAPSHOT</version>
<name>BlockHunt</name>
<properties>
<plugin.version>${project.version}-${buildnumber}</plugin.version>
<buildnumber />
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spigot.api.version>1.15</spigot.api.version>
<spigot.version>${spigot.api.version}.2-R0.1-SNAPSHOT</spigot.version>
<spigot.api.version>1.18</spigot.api.version>
<spigot.version>${spigot.api.version}.1-R0.1-SNAPSHOT</spigot.version>
</properties>
<scm>
<connection>scm:git:git@github.com:AddstarMC/Blockhunt.git</connection>
@ -21,46 +21,46 @@
<repository>
<id>maven.addstar.com.au</id>
<name>maven.addstar.com.au-releases</name>
<url>http://maven.addstar.com.au/artifactory/ext-release-local</url>
<url>https://maven.addstar.com.au/artifactory/ext-release-local</url>
</repository>
<snapshotRepository>
<id>maven.addstar.com.au</id>
<name>maven.addstar.com.au-snapshots</name>
<url>http://maven.addstar.com.au/artifactory/ext-snapshot-local</url>
<url>https://maven.addstar.com.au/artifactory/ext-snapshot-local</url>
</snapshotRepository>
</distributionManagement>
<repositories>
<!-- Addstar repo -->
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>addstar-repo</id>
<name>all-release</name>
<url>http://maven.addstar.com.au/artifactory/all-release</url>
</repository>
<repository>
<snapshots />
<id>addstar-snapshot-repo</id>
<name>all-snapshot</name>
<url>http://maven.addstar.com.au/artifactory/all-snapshot</url>
</repository>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>addstar-repo</id>
<name>all-release</name>
<url>https://maven.addstar.com.au/artifactory/all-release</url>
</repository>
<repository>
<snapshots />
<id>addstar-snapshot-repo</id>
<name>all-snapshot</name>
<url>https://maven.addstar.com.au/artifactory/all-snapshot</url>
</repository>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>md_5-releases</id>
<url>http://repo.md-5.net/content/repositories/releases/</url>
<url>https://repo.md-5.net/content/repositories/releases/</url>
</repository>
<repository>
<id>md_5-snapshots</id>
<url>http://repo.md-5.net/content/repositories/snapshots/</url>
<url>https://repo.md-5.net/content/repositories/snapshots/</url>
</repository>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/content/groups/public/</url>
</repository>
<repository>
<id>dmulloy2-repo</id>
<url>http://repo.dmulloy2.net/content/groups/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
@ -73,7 +73,7 @@
<dependency>
<groupId>LibsDisguises</groupId>
<artifactId>LibsDisguises</artifactId>
<version>10.0.12</version>
<version>10.0.26</version>
<scope>provided</scope>
<exclusions>
<exclusion>
@ -87,21 +87,21 @@
<build>
<resources>
<resource>
<targetPath>.</targetPath>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>*.yml</include>
</includes>
<targetPath>.</targetPath>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>*.yml</include>
</includes>
</resource>
<resource>
<targetPath>.</targetPath>
<directory>src/main/resources/lang</directory>
<filtering>false</filtering>
<includes>
<include>*.properties</include>
</includes>
</resource>
<resource>
<targetPath>.</targetPath>
<directory>src/main/resources/lang</directory>
<filtering>false</filtering>
<includes>
<include>*.properties</include>
</includes>
</resource>
</resources>
<sourceDirectory>src/main/java</sourceDirectory>
@ -109,17 +109,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.10.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<source>17</source>
<target>17</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<version>3.0.0-M5</version>
</plugin>
</plugins>
</build>