If you want to do serious software development using Java,
then learning Gradle is probably a good investment of time and effort.
However, I want to emphasize that Gradle is not necessary if
you simply want to use Minie in your project.
I wrote up instructions to add Minie to either project type.
If the instructions for Ant-based projects are not working for you,
I need to understand why.
Gradle support is only required if you want to build/run a Gradle-based project.
MinieLibrary and MinieExample are Gradle-based (sub)projects. It looks like you
tried to convert them to Ant-based projects. If so, they might no longer work with Gradle.
Now that you’ve installed the Gradle Support plugin, you should either revert
your changes or start over with a fresh copy of the Minie repo.
Since your personal project is Ant-based, Gradle Support won’t benefit it unless
you convert it to a Gradle-based project. This is a non-trival conversion, but I’ll
provide a few pointers.
Just as the build instructions for an Ant-based build are stored in a
and files referenced by it (
nbproject/build-impl.xml in NetBeans), the build
instructions for a Gradle-based project are stored in a
build.gradle file and files
referenced by it.
build.gradle is written in an executable language: either
Kotlin or Groovy, neither of which I’m proficient in.
Once you have a working
build.gradle, the instructions about adding repos
and dependencies will make more sense.
The Gradle user manual is online at: https://docs.gradle.org/current/userguide/userguide.html
- The user manual is for the latest version (5.1) which is probably not the version provided
by the plugin.
- The user manual assumes fluency in Kotlin/Groovy, which might take awhile to acquire.
The plugin provides wizards to bootstrap new projects. In the IDE, “File -> New project” to
open the “New Project” dialog. Under “Categories” select “Gradle”. Under “Projects” select
"Single Gradle Project". This creates a generic Gradle-based project without any JME libraries.
Since your project is JME-based, it’s even better to start with an existing JME Gradle
project such as BasicGame-on-Gradle:
Clone the repo and run it once to make sure it’s working. Then delete
Copy the Java source files from your Ant project into the
src/main/java directory of
the Gradle project. Copy the assets from your Ant project into the
directory of the Gradle project. Edit
build.gradle to change the
and uncomment whichever libraries you need.
You’ll probably want to rename the project also.