Fix GH actions build

This commit is contained in:
Dan Mulloy 2021-09-22 13:29:23 -04:00
parent dbedab0c14
commit 8361cf078f
No known key found for this signature in database
GPG Key ID: BFACD592A5F0DFD6
3 changed files with 22 additions and 7 deletions

View File

@ -12,9 +12,8 @@ jobs:
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: '16'
check-latest: true
- name: Run maven build lifecycle
run: mvn --batch-mode clean test package

1
.gitignore vendored
View File

@ -180,3 +180,4 @@ logs/
.gradle/
build/
logs/
.java-version

View File

@ -40,12 +40,27 @@ public class BukkitInitialization {
private boolean initialized;
private boolean packaged;
public static synchronized void initializePackage() {
instance.setPackage();
/**
* Statically initializes the mock server for unit testing
*/
public static synchronized void initializeAll() {
instance.initialize();
}
/**
* @deprecated - Replaced with initializeAll()
*/
@Deprecated
public static synchronized void initializePackage() {
initializeAll();
}
/**
* @deprecated - Replaced with initializeAll()
*/
@Deprecated
public static synchronized void initializeItemMeta() {
instance.initialize();
initializeAll();
}
/**
@ -63,7 +78,7 @@ public class BukkitInitialization {
ex.printStackTrace();
}
initializePackage();
instance.setPackage();
SharedConstants.a();
DispenserRegistry.init();