diff --git a/samples/webflux-security/build.gradle b/samples/webflux-security/build.gradle index 02328ff6..be7d2356 100644 --- a/samples/webflux-security/build.gradle +++ b/samples/webflux-security/build.gradle @@ -8,6 +8,12 @@ sourceCompatibility = '1.8' ext['spring-graphql.version'] = version +repositories { + mavenCentral() + maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://repo.spring.io/snapshot' } +} + dependencies { implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-webflux' @@ -20,4 +26,4 @@ dependencies { } test { useJUnitPlatform() -} \ No newline at end of file +} diff --git a/samples/webflux-websocket/build.gradle b/samples/webflux-websocket/build.gradle index 208b3058..ec04568c 100644 --- a/samples/webflux-websocket/build.gradle +++ b/samples/webflux-websocket/build.gradle @@ -8,6 +8,12 @@ sourceCompatibility = '1.8' ext['spring-graphql.version'] = version +repositories { + mavenCentral() + maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://repo.spring.io/snapshot' } +} + dependencies { implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-webflux' diff --git a/samples/webmvc-http-security/build.gradle b/samples/webmvc-http-security/build.gradle index 2f8d7a8d..4ba1d23f 100644 --- a/samples/webmvc-http-security/build.gradle +++ b/samples/webmvc-http-security/build.gradle @@ -8,6 +8,12 @@ sourceCompatibility = '1.8' ext['spring-graphql.version'] = version +repositories { + mavenCentral() + maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://repo.spring.io/snapshot' } +} + dependencies { implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-web' diff --git a/samples/webmvc-http/build.gradle b/samples/webmvc-http/build.gradle index 96961bec..fde4f48f 100644 --- a/samples/webmvc-http/build.gradle +++ b/samples/webmvc-http/build.gradle @@ -8,6 +8,12 @@ sourceCompatibility = '1.8' ext['spring-graphql.version'] = version +repositories { + mavenCentral() + maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://repo.spring.io/snapshot' } +} + dependencies { implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-web' diff --git a/settings.gradle b/settings.gradle index a4bcff93..c51c0ce2 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,10 +1,14 @@ pluginManagement { - repositories { - maven { url 'https://repo.spring.io/release' } - maven { url 'https://repo.spring.io/milestone' } - maven { url 'https://repo.spring.io/snapshot' } - gradlePluginPortal() - } + repositories { + mavenCentral() + gradlePluginPortal() + maven { + url 'https://repo.spring.io/release' + } + if (version.endsWith('-SNAPSHOT')) { + maven { url "https://repo.spring.io/snapshot" } + } + } resolutionStrategy { eachPlugin { if (requested.id.id == 'org.springframework.boot') {