SonarRunner with gradle: Fail to download libraries from server

北城余情 提交于 2019-12-01 10:12:08

Recent Sonar versions require Gradle 2.2. (2.1 might also work but I'm not sure.)

As a work around, i've installed sonar-runner, and analyzing my gradle project now via sonar-runner 2.4.

As said before, recent SonarQube versions need Gradle 2.2 on client side.

If you cannot or do not want to update your used Gradle version, you can easily copy the Gradle Sonar Runner plugin to your buildSrc project with some slight modifications to not depend on Gradle Injection which does not work for a custom plugin.

I just did this for our project that is still using Gradle 1.12 and it works great.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!