Skip to main content

Initial Build Verification Guide

Running the initial build

To run the initial build of the project, use the command below. This will execute a clean build of the project.

showLineNumbers
1
./gradlew --rerun-tasks clean build

Troubleshooting

Below are some errors that can occur and steps to resolve them.

Styleguide: NoSuchFileException

Example error:

showLineNumbers
1
> Task :{project}-frontend:validateEmptyHandlebars FAILED
2
> Task :{project}-theme-default:yarnInstall UP-TO-DATE
3
FAILURE: Build failed with an exception.
4
* Where:
5
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
6
* What went wrong:
7
Execution failed for task ':{project}-frontend:validateEmptyHandlebars'.
8
> java.nio.file.NoSuchFileException: styleguide
9
* Try:
10
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.
11
* Get more help at https://help.gradle.org
12
BUILD FAILED in 4s
13
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.