How would I compile Baritone for 1.21.3 using ItelliJ?
criscanz opened this issue ยท 6 comments
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
Is it just Baritone that doesn't work? Have you tried another project? Have you read the logs, if so: are there any hints?
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.
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.
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).
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.