mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-29 04:27:38 +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
|
||||
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -179,4 +179,5 @@ logs/
|
||||
|
||||
.gradle/
|
||||
build/
|
||||
logs/
|
||||
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