You can compile Precogs as long as you have the Java Development Kit (JDK) for Java 8 or newer. You only need one version of the JDK installed.
The build process uses Gradle, which you do not need to download. Precogs is a multi-module project with three modules:
precogs-corecontains the Precogs APIprecogs-bukkitis the Bukkit pluginprecogs-spongeis the Sponge plugin
- Shift + right click the folder with Precogs's files and click "Open command prompt".
gradlew build
- In your terminal, navigate to the folder with Precogs's files (
cd /folder/of/precogs/files) ./gradlew build
You will find:
- The core Precogs API in precogs-core/build/libs
- Precogs for Bukkit in precogs-bukkit/build/libs
- Precogs for Sponge in precogs-sponge/build/libs
If you want to use Precogs, use the -dist version.
(The -dist version includes Precogs + necessary libraries.)
gradlew ideawill generate an IntelliJ IDEA module for each folder.gradlew eclipsewill generate an Eclipse project for each folder.