[RESOLVED] Task sonarqube dont resolve dependencies

sonarqube

(Caio Fabio Araujo) #1

Description:
I’ve a multi-project with Gradle, disponible on GitHub, it’s simple, only for get all sub-projects and send to SonarQube to capture metrics and coverage.

Problem:
When execute command: ./gradlew build, the Gradle execute this task normally. But, when execute command: ./gradlew sonarqube appears this error:

What went wrong:
Could not resolve all dependencies for configuration ':compileClasspath'.
> Could not find org.springframework.boot:spring-boot-starter-data-jpa:.
  Searched in the following locations:
      https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-data-jpa//spring-boot-starter-data-jpa-.pom
      https://repo1.maven.org/maven2/org/springframework/boot/spring-boot-starter-data-jpa//spring-boot-starter-data-jpa-.jar
      file:/home/caioaraujo/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa//spring-boot-starter-data-jpa-.pom
      file:/home/caioaraujo/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa//spring-boot-starter-data-jpa-.jar
  Required by:
      project : > project :common-utils
      project : > project :api-spring
> Could not find org.postgresql:postgresql:.
  Searched in the following locations:
      https://repo1.maven.org/maven2/org/postgresql/postgresql//postgresql-.pom
      https://repo1.maven.org/maven2/org/postgresql/postgresql//postgresql-.jar
      file:/home/caioaraujo/.m2/repository/org/postgresql/postgresql//postgresql-.pom
      file:/home/caioaraujo/.m2/repository/org/postgresql/postgresql//postgresql-.jar
  Required by:
      project : > project :api-spring

Resolution disponible on GitHub