Skip to content

Commit 410e7e6

Browse files
committed
Revisit Gradle repositories configuration
1 parent 1bbaf9e commit 410e7e6

File tree

5 files changed

+35
-7
lines changed

5 files changed

+35
-7
lines changed

samples/webflux-security/build.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sourceCompatibility = '1.8'
88

99
ext['spring-graphql.version'] = version
1010

11+
repositories {
12+
mavenCentral()
13+
maven { url 'https://repo.spring.io/milestone' }
14+
maven { url 'https://repo.spring.io/snapshot' }
15+
}
16+
1117
dependencies {
1218
implementation 'org.springframework.boot:spring-boot-starter-graphql'
1319
implementation 'org.springframework.boot:spring-boot-starter-webflux'
@@ -20,4 +26,4 @@ dependencies {
2026
}
2127
test {
2228
useJUnitPlatform()
23-
}
29+
}

samples/webflux-websocket/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sourceCompatibility = '1.8'
88

99
ext['spring-graphql.version'] = version
1010

11+
repositories {
12+
mavenCentral()
13+
maven { url 'https://repo.spring.io/milestone' }
14+
maven { url 'https://repo.spring.io/snapshot' }
15+
}
16+
1117
dependencies {
1218
implementation 'org.springframework.boot:spring-boot-starter-graphql'
1319
implementation 'org.springframework.boot:spring-boot-starter-webflux'

samples/webmvc-http-security/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sourceCompatibility = '1.8'
88

99
ext['spring-graphql.version'] = version
1010

11+
repositories {
12+
mavenCentral()
13+
maven { url 'https://repo.spring.io/milestone' }
14+
maven { url 'https://repo.spring.io/snapshot' }
15+
}
16+
1117
dependencies {
1218
implementation 'org.springframework.boot:spring-boot-starter-graphql'
1319
implementation 'org.springframework.boot:spring-boot-starter-web'

samples/webmvc-http/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ sourceCompatibility = '1.8'
88

99
ext['spring-graphql.version'] = version
1010

11+
repositories {
12+
mavenCentral()
13+
maven { url 'https://repo.spring.io/milestone' }
14+
maven { url 'https://repo.spring.io/snapshot' }
15+
}
16+
1117
dependencies {
1218
implementation 'org.springframework.boot:spring-boot-starter-graphql'
1319
implementation 'org.springframework.boot:spring-boot-starter-web'

settings.gradle

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
pluginManagement {
2-
repositories {
3-
maven { url 'https://repo.spring.io/release' }
4-
maven { url 'https://repo.spring.io/milestone' }
5-
maven { url 'https://repo.spring.io/snapshot' }
6-
gradlePluginPortal()
7-
}
2+
repositories {
3+
mavenCentral()
4+
gradlePluginPortal()
5+
maven {
6+
url 'https://repo.spring.io/release'
7+
}
8+
if (version.endsWith('-SNAPSHOT')) {
9+
maven { url "https://repo.spring.io/snapshot" }
10+
}
11+
}
812
resolutionStrategy {
913
eachPlugin {
1014
if (requested.id.id == 'org.springframework.boot') {

0 commit comments

Comments
 (0)