I'm trying to build the mongo-java-driver from github repo : https://github.com/mongodb/mongo-java-driver and followed the build steps from "Build" section on the page.
However, after running ./gradlew check i'm getting this errror :
./gradlew check
:bson:compileJava UP-TO-DATE
:bson:compileGroovy UP-TO-DATE
:bson:processResources UP-TO-DATE
:bson:classes UP-TO-DATE
:bson:checkstyleMain FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':bson:checkstyleMain'.
> Unable to create a Checker: cannot initialize module SuppressionFilter - Cannot set property 'file' in module SuppressionFilter to 'config/checkstyle-exclude.xml': unable to find config/checkstyle-exclude.xml
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.026 secs
Note: the file config/checkstyle-exclude.xml exists at the location
On running the with stacktrace option it shows that there is FileNotFoundException (PFA the stacktrace log)
Please let me know if any dependency needs to be fixed.