Skip to content
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

Update to 1.20.4 #60

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Update to 1.20.4 #60

wants to merge 9 commits into from

Conversation

zax71
Copy link

@zax71 zax71 commented Apr 12, 2024

No description provided.

@thewanderingtraderm
Copy link

@zax71 do you have a compiled version

@zax71
Copy link
Author

zax71 commented Apr 14, 2024

Just download it and run ./gradlew build or press the hammer icon in IntelliJ

@thewanderingtraderm
Copy link

@zax71 it come up with this error:
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':shadowJar'.

Could not resolve all dependencies for configuration ':runtimeClasspath'.
Could not resolve net.minestom:minestom-snapshots:7daf8d69b7.
Required by:
project :
> No matching variant of net.minestom:minestom-snapshots:7daf8d69b7 was found. The consumer was configured to find a library for use during runtime, compatible with Java 17, packaged as a jar, preferably optimized for standard JVMs, and its dependencies declared externally but:
- Variant 'apiElements' declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 21 and the consumer needed a component for use during runtime, compatible with Java 17
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant 'javadocElements' declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 17)
- Variant 'runtimeElements' declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, compatible with Java 21 and the consumer needed a component, compatible with Java 17
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Variant 'sourcesElements' declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
- Doesn't say anything about its target Java version (required compatibility with Java 17)

  • Try:

Review the variant matching algorithm at https://docs.gradle.org/8.7/userguide/variant_attributes.html#sec:abm_algorithm.
No matching variant errors are explained in more detail at https://docs.gradle.org/8.7/userguide/variant_model.html#sub:variant-no-match.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.

BUILD FAILED in 7s

@zax71
Copy link
Author

zax71 commented Apr 14, 2024

Oh, the Minestom version is wrong. Try reverting 724795d

@thewanderingtraderm
Copy link

@zax71 now it comes up with this error

Task :compileJava
C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java:608: error: no suitable constructor found for ParticlePacket(Particle,double,double,double,float,float,float,float,int)
instance.sendGroupedPacket(new ParticlePacket(Particle.FIREWORK, pos.x(), pos.y(), pos.z(),
^
constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable
(actual and formal argument lists differ in length)
constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable
(actual and formal argument lists differ in length)
C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java:644: error: no suitable constructor found for ParticlePacket(Particle,double,double,double,float,float,float,float,int)
instance.sendGroupedPacket(new ParticlePacket(Particle.EXPLOSION, pos.x(), pos.y(), pos.z(),
^
constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable
(actual and formal argument lists differ in length)
constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable
(actual and formal argument lists differ in length)
C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\EvokerMob.java:53: error: no suitable constructor found for ParticlePacket(Particle,boolean,double,double,double,float,float,float,float,int)
instance.sendGroupedPacket(new ParticlePacket(Particle.POOF, true, pos.x(), pos.y(), pos.z(),
^
constructor ParticlePacket.ParticlePacket(NetworkBuffer) is not applicable
(actual and formal argument lists differ in length)
constructor ParticlePacket.ParticlePacket(int,boolean,double,double,double,float,float,float,float,int,byte[]) is not applicable
(actual and formal argument lists differ in length)
Note: C:\Users\wande\Downloads\Arena-update-1.20.4\src\main\java\net\minestom\arena\game\mob\MobArena.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

Task :compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 11s
1 actionable task: 1 executed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants