Fix Java16 build

This commit is contained in:
Gabriele C 2021-09-27 20:59:25 +02:00
parent 8efc339b84
commit 0e45670c12
2 changed files with 12 additions and 2 deletions

View File

@ -2,7 +2,7 @@ sudo: false
dist: focal
language: java
jdk:
- oraclejdk16
- openjdk16
cache:
directories:
- '$HOME/.m2/repository'

12
pom.xml
View File

@ -51,7 +51,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<spigot-api.version>1.16.3-R0.1-SNAPSHOT</spigot-api.version>
<spigot-api.version>1.17.1-R0.1-SNAPSHOT</spigot-api.version>
</properties>
<repositories>
@ -99,6 +99,12 @@
<version>3.28.0-GA</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
@ -111,6 +117,10 @@
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</dependency>
</dependencies>
<build>