Build and run the QA

Building with Gradle

The recommended way to execute any Gradle build is with the help of the Gradle Wrapper (in short just “Wrapper”). The Wrapper is a script that invokes a declared version of Gradle, downloading it beforehand if necessary. As a result, developers can get up and running with a Gradle project quickly without having to follow manual installation. For more information please refer to the Gradle’s documentation website.

gradlew vs. gradlew.bat

Depending on which scripting environment you are using the wrapper can be invoked with gradlew or gradlew.bat. Windows users are likely to use the latter.

Building the project

The project can get build via Gradle:

./gradlew assemble --parallel

When imported in IntelliJ Idea as Gradle project, the IDE will use Gradle under the hood to run the necessary steps to perform compilation and packaging.

Testing

Testing can be executed by issuing

./gradlew test --parallel

Quality Assurance

To perform a QA run

./gradlew check --parallel

Generating the website

To generate the Alchemist website run

./gradlew hugoBuild --parallel

Website preview

For a preview of the website issue:

./gradlew hugo --command=serve

The terminal output will show a link, most likely https://localhost:1313/, where the website is being served.