Could not resolve all files for configuration ':compileClasspath'

0

Mój projekt jest podzielony na 4 moduły

commmon https://pastebin.com/EiRL7Snk (build.gradle)
core https://pastebin.com/n1b1xWMb (build.gradle)
web https://pastebin.com/9CCrA9q0 (build.gradle)
app https://pastebin.com/uEHZDrmQ (build.gradle)

i główny plik build.gradle dla projektu https://pastebin.com/xbazbg5U

Po kliknięciu przycisku build dla modułu app w celu utworzenia aplikacji pojawiają się błędy

* What went wrong:
Could not resolve all files for configuration ':common:compileClasspath'.
> Could not find com.fasterxml.jackson.core:jackson-databind:.
  Required by:
      project :common
> Could not find org.hibernate.validator:hibernate-validator:.
  Required by:
      project :common

a podczas synchronizacji

Warning:
    root project 'REST-Web-Services': Unable to resolve additional project configuration.
    Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':core:compile'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.springframework.boot:spring-boot-starter-data-jpa:.
Required by:
    project :core

Po wejściu do karty Gradle w IntelliJ i wyświetleniu zależności modułów, otrzymuję podkreślone błędne zależności bez wersji

common https://zapodaj.net/002015941d147.png.html
core https://zapodaj.net/2c9929a99daed.png.html
web https://zapodaj.net/db09241a806ad.png.html

Importować biblioteki z tych zależności również nie da rady https://zapodaj.net/5659d080d6a95.png.html

Zależności są bez wersji i dlatego powodują błąd. Co się dzieje? Przecież podałem repozytorium do pobierania zależności. Jak to naprawić?

0

Ja miałem podobny problem po upgradzie ze springboot 15. do 2.0
pomogło dopisanie wersji do zależności

buildscript {
	ext {
		springBootVersion = '2.0.0.RELEASE'
	}
	repositories {
		mavenCentral()
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
	}
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.lyrog'
version = '0.1.0'
sourceCompatibility = 1.8

repositories {
	mavenCentral()
}

dependencies {
	compile("org.springframework.boot:spring-boot-starter-web:${springBootVersion}")
	compile("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}")
	compile("org.springframework.boot:spring-boot-starter-security:${springBootVersion}")
	compile("org.springframework.security:spring-security-jwt:${springBootVersion}")
	compile("org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}")
	compile("org.springframework.boot:spring-boot-devtools:${springBootVersion}")
	compile("org.springframework.boot:spring-boot-starter-mail:${springBootVersion}")
	compile("org.springframework.security.oauth:spring-security-oauth2:2.0.8.RELEASE")
	compile ("org.postgresql:postgresql:42.2.1")
	compile("org.hibernate.validator:hibernate-validator")
//    compile("org.hibernate.id.enhanced.SequenceStyleGenerator")
	testCompile('org.springframework.boot:spring-boot-starter-test')
}

1 użytkowników online, w tym zalogowanych: 0, gości: 1