How to build from source for dummies?
I can't use the install4j installer.
How do I build the game from source?
Even without the installer you should be able to run triplea by using the provided zip downloads for the latest master version or the same asset file for the current stable.
If you unzip the folder, and have java installed on your system (latest master requires java 11, latest stable java 8 ) you should be able to run it either via command line or by double klicking.
But if you really insist on building triplea from source you can of course do that as well by checking out repository via git and running
./gradlew :game-headed:run, which should build it from source and execute it right away when you have java 11/8 installed on your system.
@RoiEX, thanks for the tips.
I was able to download the game and running it with "java -jar triplea-game-headed-126.96.36.199.13066-all.jar" command.
(My saved games didn't work with the newest pre-release. I downloaded the 1.9 release)
@agbottan Yeah, the latest pre-release is not save game compatible with 1.9.
Yes, 1.10 is incompatible with 1.9 has to do with the way savegames are saved and such
To launch the game without installer (on Windows), from the triplea directory (you can create a shortcut for the command):
jre\bin\javaw.exe -jar bin\triplea-game-headed-2.5.22294.jar
To compile from source to get the jar file (a java executable containing the compiled packages/classes in zip format), you need to have a Java11 JDK installed and download the source code available from the triplea website.
There might be a command to generate only the jar file, but I used:
which downloads the required dependencies and builds the output files including triplea-game-headed.jar (but doesn't create an installer exe).
I had to set the version number manually in a product.properties file (otherwise was v2.5.0).
the paths have changed in v2.6.
from the triplea directory:
you can list the different tasks available with: gradlew tasks