Reputation: 1066
Trying to build https://github.com/spring-projects/spring-social-samples/tree/master/spring-social-showcase-boot
gradle build --info
produces
Resource missing. [HTTP GET: http://repo.spring.io/milestone/org/springframework/social/spring-social-config/1.2.0.BUILD-SNAPSHOT/spring-social-config-1.2.0.BUILD-SNAPSHOT.pom]
If I just type into my browser... the resource exists at this (snapshot) url
Any ideas how to get gradle to go to the correct (snapshot) url?
Upvotes: 2
Views: 2566
Reputation: 1066
The snapshot repository was missing.
I was initially confused between the spring-boot Gradle plugin repositories and the project repositories.
// for plugin
buildscript {
repositories {
maven { url "https://repo.spring.io/libs-milestone" }
maven { url "https://repo.spring.io/libs-snapshot" }
mavenLocal()
}
...
// for project
repositories {
mavenLocal()
//added missing snapshot repository
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
mavenCentral()
maven { url "https://repo.spring.io/libs-milestone" }
}
Upvotes: 5