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 dist: focal
language: java language: java
jdk: jdk:
- oraclejdk16 - openjdk16
cache: cache:
directories: directories:
- '$HOME/.m2/repository' - '$HOME/.m2/repository'

12
pom.xml
View File

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