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 FAILED2> Task :{project}-theme-default:yarnInstall UP-TO-DATE3FAILURE: Build failed with an exception.4* Where:5Script 'https://artifactory.psdops.com/psddev-releases/com/psddev/brightspot-gradle-plugins/root-styleguide-empty-handlebars/4.2.12/root-styleguide-empty-handlebars.gradle' line: 196* What went wrong:7Execution failed for task ':{project}-frontend:validateEmptyHandlebars'.8> java.nio.file.NoSuchFileException: styleguide9* Try:10Run 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.org12BUILD FAILED in 4s1316 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.