Initial Build Verification Guide
To run the initial build of the project, use the command below. This will execute a clean build of the project.
./gradlew --rerun-tasks clean build
Below are some errors that can occur and steps to resolve them.
Styleguide: NoSuchFileException
Example error:
> Task :{project}-frontend:validateEmptyHandlebars FAILED
> Task :{project}-theme-default:yarnInstall UP-TO-DATE
FAILURE: Build failed with an exception.
* Where:
Script 'https://artifactory.psdops.com/psddev-releases/com/psddev/brightspot-gradle-plugins/root-styleguide-empty-handlebars/4.2.12/root-styleguide-empty-handlebars.gradle' line: 19
* What went wrong:
Execution failed for task ':{project}-frontend:validateEmptyHandlebars'.
> java.nio.file.NoSuchFileException: styleguide
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
16 actionable tasks: 5 executed, 11 up-to-date
Resolution:
- Remove the following line that lives under
frontend/build.gradle
: apply from"https://artifactory.psdops.com/psddev-releases/com/psddev/brightspot-gradle-plugins/root-styleguide-empty-handlebars/$brightspotGradlePluginVersion/root-styleguide-empty-handlebars.gradle"
. - This test is not being used for new projects; therefore, it is not necessary and can be removed.
Previous Topic
4.5 Table of Contents
Next Topic
Verifying ThemeCompatibilityTest (TCT) Guide