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

How would I compile Baritone for 1.21.3 using ItelliJ? #4557

Open
3 of 5 tasks
criscanz opened this issue Nov 17, 2024 · 6 comments
Open
3 of 5 tasks

How would I compile Baritone for 1.21.3 using ItelliJ? #4557

criscanz opened this issue Nov 17, 2024 · 6 comments
Labels
question Further information is requested

Comments

@criscanz
Copy link

criscanz commented Nov 17, 2024

What do you need help with?

With as much detail as possible, describe your question and what you may need help with.
I need help with building the jar files from IntelliJ Community edition, using java 8. I cant find a dist directory where the files are outputted to, and it seems that nothing is outputted at all.

Final checklist

  • I know how to properly use check boxes
  • I have not used any OwO's or UwU's in this issue.
  • Compile Baritone
  • Find the .Jar Artifacts
  • run successfully
@criscanz criscanz added the question Further information is requested label Nov 17, 2024
@Chanlanfan
Copy link

Is it just Baritone that doesn't work? Have you tried another project? Have you read the logs, if so: are there any hints?

@ZacSharp
Copy link
Collaborator

You say you can't find the dist directory, did you make sure the build completed successfully?
The dist directory is created as the last build step so if anything fails it won't be there.

@criscanz
Copy link
Author

I have checked for the dist directory, and it has successfully built the project. I tried manually setting the artifact output, but that still didn't change anything. It could be my IntelliJ version, or Java versions (could be using Java 21, 8, or 17, which are all on my system, but I set java 8 and restarted.) Ill comeback to this when I have the time, but for now Ill double check everything.

@ZacSharp
Copy link
Collaborator

Java version shouldn't matter too much, I think, since gradle can download a fitting runtime automatically. Besides that, my system default is java 21 and that's also what our CI build for mc 1.21 uses (CI for 1.19 uses java 17).

@GrahamJenkins
Copy link

I have been attempting to build the 1.21 branch but have encountered build errors.

Compiling with toolchain '/usr/lib/jvm/java-21-openjdk-amd64'.
Compiling with JDK Java compiler API.

Execution failed for task ':compileApiJava'.
> error: release version 21 not supported

The stacktrace option also provides the following error: ```
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.


I thought this was a java issue, checked CI and tried building with java 8, but that caused other errors. When I got past that it threw errors complaining about version 21 being missing IIRC.

Is it possible to request more detailed build instructions? I am guessing that the difference between my current environment and past builds may be related to the recent (1.21?) upgrade to java 21, before that I used 17 if I'm not mistaken. 

This is on Ubuntu with openjdk-21-jdk (and jre) installed, though I installed version 8 and it was unsuccessful.

@ZacSharp
Copy link
Collaborator

To be honest I have no idea what to do about that error. At that point I'd try wiping caches (and potentially try whether other branches still work).

You can also enable actions on you repository and trigger them with a dummy commit.

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

No branches or pull requests

4 participants