diff --git a/build.gradle.kts b/build.gradle.kts index e06b635..b623302 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,12 +8,6 @@ description = "Altitude player flag plugin." apply() -java { - toolchain { - languageVersion.set(JavaLanguageVersion.of(21)) - } -} - tasks { withType { options.encoding = Charsets.UTF_8.name() @@ -25,7 +19,5 @@ tasks { } dependencies { - compileOnly("com.alttd.cosmos:cosmos-api:1.21.6-R0.1-SNAPSHOT") { - isChanging = true - } + compileOnly("com.alttd.cosmos:cosmos-api:26.2.build.17-stable") } diff --git a/settings.gradle.kts b/settings.gradle.kts index a331471..e0962b7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,10 +1,27 @@ rootProject.name = "LiteFlags" +val nexusUser = providers.gradleProperty("alttdSnapshotUsername").orNull ?: System.getenv("NEXUS_USERNAME") +val nexusPass = providers.gradleProperty("alttdSnapshotPassword").orNull ?: System.getenv("NEXUS_PASSWORD") + dependencyResolutionManagement { repositories { mavenLocal() mavenCentral() - maven("https://repo.destro.xyz/snapshots") // Altitude - Galaxy + maven { + url = uri("https://repo.alttd.com/repository/alttd-snapshot/") + credentials { + username = nexusUser + password = nexusPass + } + } + maven { + url = uri("https://repo.alttd.com/repository/alttd/") + credentials { + username = nexusUser + password = nexusPass + } + } + maven("https://repo.destro.xyz/snapshots") maven("https://jitpack.io") { // Vault content { includeGroup("com.github.milkbowl") } }