Error with Gradle Build SonarQube Plugin Registering Findbugs Plugin
How to Fix the Error: Unable to register extension org.sonar.plugins.findbugs.FindbugsConfiguration when Running Gradle sonarqube task
Using Gradle, Sonarqube and Findbugs you may get the following error when you try to execute the command:
./gradlew clean build sonarqube
Here is the error:
FAILURE: Build failed with an exception.
* What went wrong:Execution failed for task ':sonarqube'.> Unable to register extension org.sonar.plugins.findbugs.FindbugsConfiguration
* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Root Cause
This bug seems to occur when there is a mismatch of versions that don't play nice together.
For instance here are the versions of our stack:
- Sonar Version: 5.3
- SonarQube Gradle Plugin: 2.0.1
Update Findbugs plugin on Sonar:
First, we had to update our Sonar server:
Navigate to the Update Center
Navigate to the Sonar Update Center |
Update the findbugs plugin and restart the sonar instance
Update findbugs plugin |
Update your Gradle Dependencies:
Update the sonarqube Gradle Plugin
Update sonarqube dependency
dependencies { classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.1-rc1" }
Update sonar version
sonarqube { version='2.1-rc1' }
Update sonar-findbugs-plugin
dependencies { compile: 'org.codehaus.sonar-plugins.java', name: 'sonar-findbugs-plugin', version: '3.2' }
Update Findbugs
Update findbugs dependency
dependencies { compile: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1' }
Update Findbugs version
findbugs { toolVersion = "3.0.1" ignoreFailures = true sourceSets = [ project.sourceSets.main ] }
Thanks for sharing this information with us and it was a nice blog.
ReplyDeleteAWS Cloud Support in Delhi
Web Application Development Company In Westerville
ReplyDeleteTHANK U FOR SHARING THIS POST
ReplyDeletecustom software design, custom software development
custom software systems
Sora paper premium blogger template jiska price 10 $ hai lekin mein aap sabhi ko free mein de raha hu kyuki mein nhi chahta newbie blogger ko koi pareshani ho jo mujhe huyi thi or crack theme apne blogger se hata do warna rank karne mein bohot mushkil hoga maine bhi hata diya hai ye wala theme use karo AMP version hai or bohot Fast hai
ReplyDeleteSorapaperpremiumbloggertemplate and please put my premium template links in your article
ReplyDeleteThanks for sharing such a nice info.I hope you will share more information like this. please keep on sharing!
DevOps Training in Chennai | DevOps Training in anna nagar | DevOps Training in omr | DevOps Training in porur | DevOps Training in tambaram | DevOps Training in velachery
Best and informative article. please check our website for new article. Accounting firms in dubai
ReplyDeleteAudit firms in dubai
Economic Substance Dubai
Thanks for sharing this information. Keep share more and more article. ICV Certificate
ReplyDeleteThis very informative and interesting blog. I have read many blog in days but your writing style is very unique and understanding. if you are interested in home appliances then click below.
ReplyDeletebest buy refrigerators
chiq led
This very informative and interesting blog.
ReplyDeleteweb design company
Boiler Services London is a reliable and efficient company that provides boiler repair, installation, and maintenance services to a diverse range of clients in London. With their experienced engineers and state-of-the-art equipment, they aim to keep their clients' boilers in good working condition and ensure they operate safely and efficiently.
ReplyDelete