WorldEdit

WorldEdit

44M Downloads

Compilation Error when building Mojmap Bukkit

PhilCCMG opened this issue ยท 0 comments

commented

WorldEdit Version

7.3.0-SNAPSHOT

Platform Version

n/a (target server Mojang Mapped Paper 1.20.2)

Confirmations

  • I am using the most recent Minecraft release.
  • I am using a version of WorldEdit compatible with my Minecraft version.
  • I am using the latest or recommended version of my platform software.
  • I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
  • I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description

When building WorldEdit with the Gradle property enginehub.obf.none, the build fails with the following error:

  - Gradle detected a problem with the following location: '/home/runner/work/WorldEdit/WorldEdit/worldedit-bukkit/build/libs/worldedit-bukkit-7.3.0-SNAPSHOT.jar'.
    
    Reason: Task ':worldedit-bukkit:shadowJar' uses this output of task ':worldedit-bukkit:jar' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
    
    Possible solutions:
      1. Declare task ':worldedit-bukkit:jar' as an input of ':worldedit-bukkit:shadowJar'.
      2. Declare an explicit dependency on ':worldedit-bukkit:jar' from ':worldedit-bukkit:shadowJar' using Task#dependsOn.
      3. Declare an explicit dependency on ':worldedit-bukkit:jar' from ':worldedit-bukkit:shadowJar' using Task#mustRunAfter.

Expected Behavior

The Gradle build should complete fully, creating a mojang-mapped (i.e. without Spigot reobfuscations) in the worldedit-bukkit/build/libs directory.

Reproduction Steps

  1. Clone or open WorldEdit at commit 397d735a15820d455da8fb3bced99ef91ca015f8 (or any, this is the master commit at time of report)
  2. Run ./gradlew build -Penginehub.obf.none=true within the root project (or gradlew.bat on windows)

Anything Else?

A full build via GitHub actions is available at https://github.com/PhilCCMG/WorldEdit/actions/runs/6625680931/job/17997102891

In this build, I have hard-coded enginehub.obf.none=true within gradle.properties.