Add MojangLibraries repository to resolve com.mojang transitive artifacts #4

Merged
NotAlexNoyle merged 1 commits from codex/fix-gradle-build-dependencies-for-plugin into master 2026-03-18 07:46:23 -04:00
NotAlexNoyle commented 2026-03-18 07:46:14 -04:00 (Migrated from github.com)

Motivation

  • CraftBukkit fallback dependencies require transitive Mojang artifacts like com.mojang:authlib, com.mojang:datafixerupper, and com.mojang:logging, which were not resolvable from the current repository configuration.

Description

  • Add a MojangLibraries Maven repository to settings.gradle.kts scoped to the com.mojang group so those artifacts can be resolved by the CraftBukkit fallback dependency path (settings.gradle.kts updated to include the filtered https://libraries.minecraft.net/ repository).

Testing

  • Ran ./gradlew clean build eclipse --warning-mode all and ./gradlew clean build eclipse --warning-mode all --stacktrace; repository-related missing-com.mojang errors are addressed but the full Gradle script compilation was blocked in this container by a separate JDK/Kotlin DSL compatibility error (java.lang.IllegalArgumentException: 25.0.1), so a complete green build could not be produced here.

Codex Task

### Motivation - CraftBukkit fallback dependencies require transitive Mojang artifacts like `com.mojang:authlib`, `com.mojang:datafixerupper`, and `com.mojang:logging`, which were not resolvable from the current repository configuration. ### Description - Add a `MojangLibraries` Maven repository to `settings.gradle.kts` scoped to the `com.mojang` group so those artifacts can be resolved by the CraftBukkit fallback dependency path (`settings.gradle.kts` updated to include the filtered `https://libraries.minecraft.net/` repository). ### Testing - Ran `./gradlew clean build eclipse --warning-mode all` and `./gradlew clean build eclipse --warning-mode all --stacktrace`; repository-related missing-`com.mojang` errors are addressed but the full Gradle script compilation was blocked in this container by a separate JDK/Kotlin DSL compatibility error (`java.lang.IllegalArgumentException: 25.0.1`), so a complete green build could not be produced here. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_69ba8d3b1b34832facb0a27094af62be)
Sign in to join this conversation.