Cannot resolve dependencies from mavenCentral

Hello I’m new here and also new to gradle and so i have a problem with loading my dependencies from maven central.

I searched the internet for solutions, but none of the worked for me. So this is my build.gradle

indent preformatted text by 4 spaces
plugins {
id 'java'

apply plugin: 'idea'

group 'com.gls'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {

dependencies {
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-web"

testCompile group: 'junit', name: 'junit', version: '4.12'

and when I run
gradle idea
i get
17:12:20: Executing task ‘idea’…

Task :ideaModule
Could not resolve: org.springframework.boot:spring-boot-starter-actuator
Could not resolve: org.springframework.boot:spring-boot-starter-web

Task :ideaProject
Task :ideaWorkspace

Task :idea

I saw that this issue might have to do with being behind a proxy, but I’m not behing a proxy and also I have a new java version.

gradle --version

looks like this:


Gradle 5.5.1

Build time: 2019-07-10 20:38:12 UTC
Revision: 3245f748c7061472da4dc184991919810f7935a5

Kotlin: 1.3.31
Groovy: 2.5.4
Ant: Apache Ant™ version 1.9.14 compiled on March 12 2019
JVM: 12.0.1 (Oracle Corporation 12.0.1+12)
OS: Mac OS X 10.14.5 x86_64

After this I tried with java 8 but the issue is still the same.
Maybe someone had a similar issue? Any help is appreciated. :slight_smile:


You have not specified the versions of org.springframework.boot:spring-boot-starter-actuator and org.springframework.boot:spring-boot-starter-web.

It is not possible to omit these versions in the dependency declaration unless you are applying the Spring Boot / Spring Dependency Management plugin which will align the dependencies to the Spring Boot release, declaring a dependency on a BOM, or otherwise providing a way for your build to determine the version you need.