Skip to content

Compiling using gradle

Paul Wedeck edited this page Mar 22, 2022 · 8 revisions

Check out the repository

git clone https://github.com/jsettlers/settlers-remake.git

Download and set up Android SDK

  • Download the Android SDK
  • Create a new file called local.properties:
sdk.dir=<path to where you put your android sdk>

Run

./gradlew run

You can also use runMapCreator to start the map creator.

In this configuration, all maps including the test maps are available to be played.

Run on your Android device:

./gradlew runAndroid

Build the release

./gradlew release

If you just intent to build the release version of the desktop client run:

./gradlew releaseJSettlers

You will find the zip files in release/

The maps in the maps/release directory are packed into the release ZIP and the Android APK package.

Using IntelliJ / Android studio

You should first follow the above steps until you can run the application.

You need to download IntelliJ IDEA or Android Studio.

Start it. When prompted about the project directory, point it to where you cloned our repository to.

You should follow our guide to set up code formatting.