Reputation: 99
Trying to create my own api gateway using spring cloud gateway
Below is my build.gradle file,
buildscript {
ext {
springBootVersion = "1.5.9.RELEASE"
}
apply plugin: "io.spring.dependency-management"
apply plugin: "org.springframework.boot"
dependencies {
compile(
'org.springframework.boot:spring-boot-starter-web',
'org.springframework.boot:spring-boot-starter-tomcat',
'org.springframework.boot:spring-boot-starter-actuator',
'org.springframework.boot:spring-boot-starter-webflux',
'org.springframework.cloud:spring-cloud-starter-gateway',
'org.springframework.cloud:spring-cloud-starter-eureka'
)
testCompile(
'org.springframework.boot:spring-boot-starter-test',
'org.springframework.cloud:spring-cloud-starter-eureka-server'
)
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:Finchley.M5"
mavenBom 'org.springframework.cloud:spring-cloud-gateway:2.0.0.BUILD-SNAPSHOT'
}
}
Whwn I am trying to do refresh gradle project, getting below error
CONFIGURE SUCCESSFUL in 0s Could not resolve: org.springframework.cloud:spring-cloud-starter-eureka: Could not resolve: org.springframework.cloud:spring-cloud-starter-eureka-server:
Can you please confirm my spring boot and cloud version?
Upvotes: 8
Views: 8491
Reputation: 25167
They were renamed in Edgware. This one to spring-cloud-starter-netflix-eureka-client. The other to spring-cloud-starter-netflix-eureka-server.
Upvotes: 13