-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Build everything
Compile, run tests, and assemble the executable JAR files for the Sagan indexer and site applications.
The following command will build both the Sagan site and indexer applications, running all unit and integration tests along the way:
./gradlew build
NOTE: Sagan uses the Gradle build system, and thanks to the Gradle wrapper, there's nothing you need to install. Running the
./gradlew
script as above (orgradlew.bat
on Windows) will fetch and use the correct Gradle binaries if you don't already have them installed on your system.
TIP: Check out the
find-gradle
convenience script if you'd like to avoid relative pathing to thegradlew
script.
TIP: if you wish to skip longer-running integration tests, run the above with
-x integTest
. See also Gradle's documentation on excluding tasks.
When the build is complete, you should now have the following two JARs in place:
sagan-site/build/libs/sagan-site.jar
sagan-indexer/build/libs/sagan-indexer.jar
You're now ready to import into IDEA or Eclipse or you can run the site locally straight away.