Run ./gradlew jar
.
Then run java -jar build/libs/AP2-1.0.jar
Execute ./gradlew archive
.
Hand in the file build/archive/AP2.zip
To build the project we will use gradle.
By executing gradle build
in the top level directory of the project, the
project will be built. If you do not have gradle installed, do not worry!
The template includes a gradle wrapper (./gradlew), that will download gradle
on-the-fly when executed. You can use the command ./gradlew
instead of
gradle
in all subsequent examples.
We have applied the idea (IntelliJ) and eclipse plugin to the gradle file.
If you want to import the project into eclipse, execute gradle eclipse
in the top-level directory. This will generate a project file that can be
imported in Eclipse. Likewise, if you run gradle idea
, gradle will
generate an IntelliJ project for you.
- Option 1: Use the buildship plugin.
- Option 2: Run
./gradlew eclipse
in the project directory, and then follow this.