2
當我的gradle構建腳本運行sonar時出現此錯誤。Gradle - 任務'sonarAnalyze'執行失敗 - java.lang.ClassCastException:java.util.ArrayList不能轉換爲java.lang.String
gradle這個sonarAnalyze
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter]
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
15:41:02.931 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':sonarAnalyze'.
15:41:02.934 [ERROR] [org.gradle.BuildExceptionReporter] > java.util.ArrayList cannot be cast to java.lang.String
My sonar
sonar {
server {
url = "http://server.com:9000"
}
database {
url="jdbc:mysql://server:3306/sonar?useUnicode=true&characterEncoding=utf8"
driverClassName="com.mysql.jdbc.Driver"
username="sonar"
password="sonar"
}
project {
coberturaReportPath=file("$buildDir/reports/cobertura/coverage.xml")
language = "java"
}
}
可能是什麼問題呢?
謝謝。我會做到這一點。 – eugened 2012-07-06 20:17:09