neoFormJoined[...]DownloadAssets task error in multiprojects
Closed this issue · 2 comments
When I try ./gradlew build
on my project, I get this error:
Reason: Task ':NeoForgeApi:neoFormJoined1.20.6-20240429.153634DownloadAssets' uses this output of task ':NeoForge:neoFormJoined1.20.6-20240429.153634DownloadAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
full log: https://gist.github.com/mezz/b20871b078635a5b100ba49182a4dfd3
my current code is here: mezz/JustEnoughItems#3529
my understanding is that my :NeoForgeApi
project is using output from the same-named task in :NeoForge
, but it is not declared explicitly
this is pretty concerning, because :NeoForgeApi
does not depend on the :NeoForge
project at all
let me know if there's any additional info I can provide to help
I have the same issue in a multiproject build:
> Task :MagicMirror:neoFormJoined1.20.6-20240429.153634DownloadAssets FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':MagicMirror:neoFormJoined1.20.6-20240429.153634DownloadAssets' (type 'DownloadAssets').
- Gradle detected a problem with the following location: '/home/tom/.gradle/caches/minecraft/assets/1.20.6'.
Reason: Task ':MagicMirror:neoFormJoined1.20.6-20240429.153634DownloadAssets' uses this output of task ':MagicDoorknob:neoFormJoined1.20.6-20240429.153634DownloadAssets' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
This specifically breaks when I run ./gradlew build
(locally but also in CI with a clean cache).
Other commands like ./gradlew :MagicMirror:runClient
work fine.
I am working around this for now by running each project's build separately instead of with ./gradlew build
See mezz/JustEnoughItems@fbb53cb
(#3529)