You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I select Finchley.M4 version, copy provided build.gradle into clipboard, paste it, then do gradle build, the build fails with:
Could not find org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M6.
If I select Edgware (GA) version, copy provided build.gradle into clipboard, paste it, then do gradle build, the build fails with:
> gradle build
> Configure project :
The plugin id 'spring-boot' is deprecated. Please use 'org.springframework.boot' instead.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRepackage'.
> Could not resolve all dependencies for configuration ':runtime'.
> Cannot resolve external dependency :spring-cloud-starter-config: because no repositories are defined.
Required by:
project :
> Cannot resolve external dependency :spring-cloud-starter-eureka: because no repositories are defined.
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
3 actionable tasks: 3 executed
Also please note that spring-boot plugin is deprecated, the new plugin name is org.springframework.boot.
For Edgware (based on spring-boot 1.5.9) the fix is:
Add
repositories {
mavenCentral()
}
Add dependency group org.springframework.cloud to both
I don't know if this repo is good place for this issue but can't find a better place. Feel free to point me to right repo if this is wrong one.
The
build.gradle
example from https://projects.spring.io/spring-cloud/ doesn't work at all.If I select
Finchley.M4
version, copy providedbuild.gradle
into clipboard, paste it, then dogradle build
, the build fails with:If I select
Edgware
(GA) version, copy providedbuild.gradle
into clipboard, paste it, then dogradle build
, the build fails with:Also please note that
spring-boot
plugin is deprecated, the new plugin name isorg.springframework.boot
.For
Edgware
(based on spring-boot 1.5.9) the fix is:org.springframework.cloud
to bothand
Without this gradle cannot resolve dependencies.
Maybe the trick with skipping dependency group only works since spring-boot 2.0?
Current not working
build.gradle
for Edgware from https://projects.spring.io/spring-cloud/The text was updated successfully, but these errors were encountered: