Skip to content

Commit 4c810b4

Browse files
Update dependency net.onelitefeather:mycelium-bom to v1.5.0 (#47)
* Update dependency net.onelitefeather:mycelium-bom to v1.5.0 * Update to java 25 * Migrate boolean consumer usage --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com>
1 parent 9f18ca6 commit 4c810b4

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
uses: actions/setup-java@v5
1919
with:
2020
distribution: temurin
21-
java-version: 21
21+
java-version: 25
2222
- name: Build on ${{ matrix.os }}
2323
run: ./gradlew clean build

.github/workflows/main-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
uses: actions/setup-java@v5
2626
with:
2727
distribution: temurin
28-
java-version: 21
28+
java-version: 25
2929
- name: Build on ${{ matrix.os }}
3030
run: ./gradlew test

.github/workflows/publishing.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v5
1616

17-
- name: Set up JDK 21
17+
- name: Set up JDK 25
1818
uses: actions/setup-java@v5
1919
with:
2020
distribution: 'temurin'
21-
java-version: '21'
21+
java-version: '25'
2222
- name: Build with Gradle
2323
run: ./gradlew build
2424
- name: Publish to Maven

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description = "Aves"
1010

1111
java {
1212
toolchain {
13-
languageVersion = JavaLanguageVersion.of(21)
13+
languageVersion = JavaLanguageVersion.of(25)
1414
}
1515
withJavadocJar()
1616
withSourcesJar()
@@ -37,7 +37,7 @@ dependencies {
3737
tasks {
3838
compileJava {
3939
options.encoding = "UTF-8"
40-
options.release.set(21)
40+
options.release.set(25)
4141
}
4242

4343
jacocoTestReport {

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencyResolutionManagement {
2121
}
2222
versionCatalogs {
2323
create("libs") {
24-
version("bom", "1.4.5")
24+
version("bom", "1.5.0")
2525
library("mycelium.bom", "net.onelitefeather", "mycelium-bom").versionRef("bom")
2626
library("minestom","net.minestom", "minestom").withoutVersion()
2727
library("adventure", "net.kyori", "adventure-text-minimessage").withoutVersion()

src/main/java/net/theevilreaper/aves/util/Futures.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package net.theevilreaper.aves.util;
22

3-
import it.unimi.dsi.fastutil.booleans.BooleanConsumer;
43
import org.jetbrains.annotations.NotNull;
54

65
import java.time.Duration;
76
import java.util.concurrent.CompletableFuture;
87
import java.util.concurrent.CountDownLatch;
98
import java.util.concurrent.TimeUnit;
9+
import java.util.function.Consumer;
1010

1111
/**
1212
* Taken from <a href="https://github.com/Minestom/Arena/blob/master/src/main/java/net/minestom/arena/utils/ConcurrentUtils.java">...</a>
@@ -33,7 +33,7 @@ private Futures() {
3333
* </ul>
3434
* @return the new CompletionStage
3535
*/
36-
public static CompletableFuture<Void> thenRunOrTimeout(@NotNull CompletableFuture<?> future, @NotNull Duration timeout, BooleanConsumer action) {
36+
public static CompletableFuture<Void> thenRunOrTimeout(@NotNull CompletableFuture<?> future, @NotNull Duration timeout, Consumer<Boolean> action) {
3737
final CompletableFuture<Boolean> f = new CompletableFuture<>();
3838
CompletableFuture.delayedExecutor(timeout.toNanos(), TimeUnit.NANOSECONDS).execute(() -> f.complete(true));
3939
future.thenRun(() -> f.complete(false));

0 commit comments

Comments
 (0)