Chris Okebata
Chris Okebata

Reputation: 11

Grails application not starting

I have been getting these errors all day long when trying to start my Grails application

FAILURE: Build failed with an exception.

Could not resolve all dependencies for configuration ':server:runtime'. Could not resolve io.grpc:grpc-api:[1.30.1]. Required by: project :server > io.grpc:grpc-core:1.30.1 > Could not resolve io.grpc:grpc-api:[1.30.1]. > Failed to list versions for io.grpc:grpc-api. > Unable to load Maven meta-data from http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-api/maven-metadata.xml. > Could not GET 'http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-api/maven-metadata.xml'. Received status code 403 from server: Forbidden Could not resolve net.minidev:json-smart:[1.3.1,2.3]. Required by: project :server > org.grails.plugins:spring-security-rest:2.0.0.RC1 > com.nimbusds:nimbus-jose-jwt:4.36 > Could not resolve net.minidev:json-smart:[1.3.1,2.3]. > Failed to list versions for net.minidev:json-smart. > Unable to load Maven meta-data from http://dl.bintray.com/agorapulse/libs/net/minidev/json-smart/maven-metadata.xml. > Could not GET 'http://dl.bintray.com/agorapulse/libs/net/minidev/json-smart/maven-metadata.xml'. Received status code 403 from server: Forbidden Could not resolve io.grpc:grpc-api:[1.30.0]. Required by: project :server > com.google.cloud:google-cloud-dlp:2.0.0 > io.grpc:grpc-auth:1.30.0 > Could not resolve io.grpc:grpc-api:[1.30.0]. > Failed to list versions for io.grpc:grpc-api. > Unable to load Maven meta-data from http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-api/maven-metadata.xml. > Could not GET 'http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-api/maven-metadata.xml'. Received status code 403 from server: Forbidden Could not resolve io.grpc:grpc-netty-shaded:[1.30.0]. Required by: project :server > com.google.cloud:google-cloud-dlp:2.0.0 > io.grpc:grpc-alts:1.30.0 > Could not resolve io.grpc:grpc-netty-shaded:[1.30.0]. > Failed to list versions for io.grpc:grpc-netty-shaded. > Unable to load Maven meta-data from http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-netty-shaded/maven-metadata.xml. > Could not GET 'http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-netty-shaded/maven-metadata.xml'. Received status code 403 from server: Forbidden

CONFIGURE FAILED

Total time: 9.626 secs | Error Error initializing classpath: Could not GET 'http://dl.bintray.com/agorapulse/libs/io/grpc/grpc-api/maven-metadata.xml'. Received status code 403 from server: Forbidden (Use --stacktrace to see the full trace)

Upvotes: 0

Views: 456

Answers (1)

Cisco
Cisco

Reputation: 23060

You are trying to resolve a dependency using JCenter which has been retired: https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

You need remove any references to JCenter and replace them with a repository that hosts the dependency your project is trying to resolve.

io.grpc:grpc-core is available from Central: https://search.maven.org/artifact/io.grpc/grpc-core

So you can use mavenCentral() in place of jcenter():

repositories {
    // jcenter() <- remove
    mavenCentral()
}

Upvotes: 1

Related Questions