Releases: libgdx/gdx-liftoff
1.9.9.0, targeting libGDX 1.9.9 with Gradle 5.4
It's a setup application for libGDX that Just Works with Gradle 5.4, and so Just Works with Java 8-12 (at the least), and so should be a useful way to make new projects, especially for first-time libGDX users. This is just the first release, but since it's based off the functioning code in SquidSetup, which is based off czyzby's functioning gdx-setup, I have more confidence in this release doing its job than a typical first release.
You use this much like the other setup jars: assuming you have Java installed (AdoptOpenJDK is recommended), you can run gdx-liftoff-1.9.9.0.jar
like any other jar on your OS, and plug in the project name, project package, main class name, project directory, etc. Make sure to check any platforms you want to target; LWJGL3 or "new desktop" is recommended for all projects, even if they won't release on desktop platforms, because it makes it easier to debug. You can add optional JVM language support, although this feature hasn't been given much attention. You can add various official and third-party extensions (third-party libraries) from the big lists on other tabs, and choose a different starting sample project template if you want. The Advanced tab lets you choose a different minimum JVM level (1.7 is safest for Android, but desktop-only can be 11 or 12 easily), a different libGDX version, and so on; most of the defaults are probably fine to stay with unless you want to use Java 8's Streams and lambdas, which would mean switching Java version
to 1.8
, 11
, or 12
depending on what minimum version to target. When you're ready, press Generate; it's much faster than the official setup because gdx-liftoff doesn't need to start up Gradle to generate a project. You should import the build.gradle
file in your chosen project directory in your IDE of choice; the rest of usage follows the libGDX documentation](https://libgdx.badlogicgames.com/documentation/gettingstarted/Importing%20into%20IDE.html).
I hope this can be useful!