SonarRunner with gradle:无法从服务器下载库 [英] SonarRunner with gradle: Fail to download libraries from server

查看:23
本文介绍了SonarRunner with gradle:无法从服务器下载库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Sonar 更新到 4.5.1 LTS 版本,现在在我的 gradle 任务中出现以下错误并且无法修复:

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 libraries from server

带有声纳运行器的build.gradle

build.gradle with sonar runner

sonarRunner {
 sonarProperties {
    property "sonar.host.url", "http://sonar:9000"
    property "sonar.login", ""
    property "sonar.password", ""
    property "sonar.jdbc.url", "jdbc:mysql://sonar"
    property "sonar.jdbc.driverClassName", "com.mysql.jdbc.Driver"
    property "sonar.jdbc.username", "sonar"
    property "sonar.jdbc.password", "sonar"
    property "sonar.profile", "sonar"
    property "sonar.projectName", "sonar"
    property "sonar.language", "java"
    property "sonar.sources", "src/main/java"
    property "sonar.binaries", "build";
 }
}

我试图写这个属性,但什么也没发生:

i've tried to write this property, but nothing happend:

toolVersion = '2.3' // default

推荐答案

最近的 Sonar 版本需要 Gradle 2.2.(2.1 也可能有效,但我不确定.)

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

这篇关于SonarRunner with gradle:无法从服务器下载库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆