- Refresh tradle project in IntelliJ
- Close intellij
- clean build project from console (./gradlew clean cleanTest build -x testWebsite -x :rat -x test)
- Open IntelliJ
What command should I run locally before creating a pull request?
We recommend running this command, in order to catch common style issues, potential bugs (using code analysis), and javadoc issues before creating a pull request. Running this takes 5-10 minutes.
./gradlew spotlessApply && ./gradlew checkstyleMain checkstyleTest javadoc spotbugsMain compileJava compileTestJava
If you don't run this locally, they will be ran during presubmit, by Jenkins. However, if these fail during presubmit, you may not see the output of test failures. So doing this first is recommended to make your development process a bit smoother and iterate on your PR until it passes the presubmit.