SonarRunner with gradle: Fail to download libraries from server

后端 未结 3 1552
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 13:02

I have updated Sonar to the 4.5.1 LTS version, and now in my gradle task i have got the following error and can\'t fix it:

Fail to download lib         


        
相关标签:
3条回答
  • 2021-01-14 13:38

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

    0 讨论(0)
  • 2021-01-14 13:39

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

    0 讨论(0)
  • 2021-01-14 13:51

    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.

    0 讨论(0)
提交回复
热议问题