diff --git a/build.gradle.kts b/build.gradle.kts index a682f24..2c90ee3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,12 +3,11 @@ plugins { } group = "com.alttd" -version = "1.0.0-SNAPSHOT" +version = System.getenv("BUILD_NUMBER") ?: "1.0.0-SNAPSHOT" description = "Altitude Quests plugin." apply() - tasks { withType { options.encoding = Charsets.UTF_8.name() @@ -20,8 +19,6 @@ tasks { } dependencies { - compileOnly("com.alttd.cosmos:cosmos-api:1.21.8-R0.1-SNAPSHOT") { - isChanging = true - } + compileOnly("com.alttd.cosmos:cosmos-api:26.2.build.17-stable") compileOnly("com.alttd.datalock:api:1.1.0-SNAPSHOT") } diff --git a/settings.gradle.kts b/settings.gradle.kts index 828727e..f0f3137 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -13,6 +13,13 @@ dependencyResolutionManagement { password = nexusPass } } + maven { + url = uri("https://repo.alttd.com/repository/alttd/") + credentials { + username = nexusUser + password = nexusPass + } + } maven("https://repo.destro.xyz/snapshots") // Altitude - Cosmos maven("https://jitpack.io") { // Vault content { includeGroup("com.github.milkbowl") } diff --git a/src/main/java/com/alttd/altitudequests/events/LogoutEvent.java b/src/main/java/com/alttd/altitudequests/events/LogoutEvent.java index be93a54..8521953 100644 --- a/src/main/java/com/alttd/altitudequests/events/LogoutEvent.java +++ b/src/main/java/com/alttd/altitudequests/events/LogoutEvent.java @@ -12,7 +12,7 @@ import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerQuitEvent; -import javax.annotation.Nullable; +import org.jspecify.annotations.Nullable; import java.util.UUID; public class LogoutEvent implements Listener {