mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-23 19:16:14 +01:00
Fix GH actions build
This commit is contained in:
parent
dbedab0c14
commit
8361cf078f
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -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
1
.gitignore
vendored
@ -180,3 +180,4 @@ logs/
|
||||
.gradle/
|
||||
build/
|
||||
logs/
|
||||
.java-version
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user