-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to process SERVER only jar when trying to build #1129
Comments
Hi, can you run with --stacktrace please? It may also be worth trying the latest version of loom (1.7.1) |
Hi, thanks for fast answer :) I can't use 1.7-SNAPSHOT because of java version, I stay max on 1.6-SNAPSHOT. Here are my stacktrace:
|
This is likely caused by one of your other gradle plugins, or an incorrect setup of the plugins in a multi project build. Please make sure to define all of your plugin versions in the root project as detailed in the gradle docs here: https://docs.gradle.org/current/userguide/plugins.html#sec:subprojects_plugins_dsl
1.7 has the same Java version requirements of 1.6. |
Oh yes, I can use 1.7 and the java issue were because of gradle version not supported. After upgrading from 8.6 to 8.8, I can use version 1.7. I'm not using this for subprojects. I changed the gradle config by using this in the main project: plugins {
id 'java-library'
id 'io.github.goooler.shadow' version '8.1.7'
id 'fabric-loom' version '1.7-SNAPSHOT' apply false
} But I got the same issue |
Humm, odd, can you run with It will then give you a path saying where the asm classes have been loaded from, it should be |
It's using version 9.2 and not 9.6:
|
Thats annoying, this is Gradle at its finest, its likely caused by one of your other plugins, make sure they are all up to date. Do make sure that ALL the plugin versions are defined in the root project, not just loom. |
I just upgraded all possible plugins I'm using, I also checked for each build gradle file and it should be fine. You can find my commit here: Elikill58/Negativity@fcdaa2f |
I suppose that shading most dependencies would fix this issue? |
They are already shadowed |
I tried 1.8.11 with gradle 8.10 and I got the same result |
I want to build my plugin Negativity.
My command used:
./gradlew build
. It were working fine few weeks ago, idk why it changes. Example of working moment on my repo here.Actually, here is my
gradle.properties
:Here is my
builde.gradle
:Here are my logs:
Without the line
serverOnlyMinecraftJar()
, I got this error:Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap minecraft
.How to fix it?
The text was updated successfully, but these errors were encountered: