Skip to content

Commit 683686e

Browse files
committed
Restrict samples' usage of Maven local
1 parent 169c29b commit 683686e

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-6
lines changed

samples/junit5/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ plugins {
55
}
66

77
repositories {
8-
mavenLocal()
8+
mavenLocal {
9+
content {
10+
includeGroup("org.springframework.restdocs")
11+
}
12+
}
913
maven { url 'https://repo.spring.io/milestone' }
1014
maven { url 'https://repo.spring.io/snapshot' }
1115
mavenCentral()

samples/rest-assured/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ plugins {
44
}
55

66
repositories {
7+
mavenLocal {
8+
content {
9+
includeGroup("org.springframework.restdocs")
10+
}
11+
}
712
maven { url 'https://repo.spring.io/milestone' }
813
maven { url 'https://repo.spring.io/snapshot' }
914
mavenCentral()
10-
mavenLocal()
1115
}
1216

1317
group = 'com.example'

samples/rest-notes-slate/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ plugins {
33
}
44

55
repositories {
6-
mavenLocal()
6+
mavenLocal {
7+
content {
8+
includeGroup("org.springframework.restdocs")
9+
}
10+
}
711
maven { url 'https://repo.spring.io/milestone' }
812
maven { url 'https://repo.spring.io/snapshot' }
913
mavenCentral()

samples/rest-notes-spring-hateoas/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ plugins {
44
}
55

66
repositories {
7-
mavenLocal()
7+
mavenLocal {
8+
content {
9+
includeGroup("org.springframework.restdocs")
10+
}
11+
}
812
maven { url 'https://repo.spring.io/milestone' }
913
maven { url 'https://repo.spring.io/snapshot' }
1014
mavenCentral()

samples/testng/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ plugins {
55
}
66

77
repositories {
8-
mavenLocal()
8+
mavenLocal {
9+
content {
10+
includeGroup("org.springframework.restdocs")
11+
}
12+
}
913
maven { url 'https://repo.spring.io/milestone' }
1014
maven { url 'https://repo.spring.io/snapshot' }
1115
mavenCentral()

samples/web-test-client/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ apply plugin: 'java'
66
apply plugin: 'eclipse'
77

88
repositories {
9+
mavenLocal {
10+
content {
11+
includeGroup("org.springframework.restdocs")
12+
}
13+
}
914
maven { url 'https://repo.spring.io/milestone' }
1015
maven { url 'https://repo.spring.io/snapshot' }
1116
mavenCentral()
12-
mavenLocal()
1317
}
1418

1519
group = 'com.example'

0 commit comments

Comments
 (0)