BramStoutProductions / MiEx

A modern Minecraft Exporter
BSD 3-Clause "New" or "Revised" License
61 stars 9 forks source link

Add gradle build support #15

Closed minetoblend closed 5 months ago

minetoblend commented 7 months ago

Couldn't figure out how to make it build in intellij with the eclipse config files so I made a gradle build config. That way it should be easily buildable from intellij & command line.

Project can be built with ./gradlew build and run with ./gradlew run (Replace ./gradlew with ./gradlew.bat on Windows). Jar file will be generated in ./build/libs/MiEx.jar.

It downloads the required dependencies from mavenCentral instead of reusing the jar file from <project root>/libs, though I can change it to use the local file.

I also added the gradle wrapper to vcs since gradle's documentation recommend to do so.

michal212345 commented 7 months ago

In intelij, Open project then open the Eclipse .project file > Open as project > Open Existing project This worked for me!

minetoblend commented 7 months ago

Oh, looks like the files don't show up in intellij because Mac OS automatically hides files starting with a dot. I thought it was intellij not recognizing them.