While running the SonarQube Gradle plugin on our project, during the Java Main Files AST scan, we're getting a number of warnings about joda-convert:
[WARN] [org.sonarqube.gradle.SonarQubeTask] Class not found: org.joda.convert.FromString [WARN] [org.sonarqube.gradle.SonarQubeTask] Class not found: org.joda.convert.ToString
I've tried several ways of pulling in org.joda:joda-convert:1.8 and none of them have solved the problem. How can we figure out why this dependency is not being found?
Note: we're using Java JDK 1.8, Gradle 2.11, and SonarQube 5.3.
EDIT: this is the relevant snippet from build.gradle. I've tried joda-convert versions 1.7, 1.8, and 1.8.1 with no success.
buildscript {
repositories {
maven {
url "http://artifactory:7980/artifactory/libs-release"
}
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2"
classpath 'org.joda:joda-convert:1.7'
}
}
apply plugin: 'org.sonarqube'
sonarqube {
properties {
property "sonar.projectName", "Project"
property "sonar.projectKey", "local.project"
}
}