File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
buildSrc/src/test/java/org/springframework/boot/build/groovyscripts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,15 @@ void mavenRepositoriesWhenCommercialRelease() {
153153
154154 @ Test
155155 void mavenRepositoriesWhenConditionMatches () {
156- SpringRepositoriesExtension extension = createExtension ("0.0.0-SNAPSHOT " , "oss" );
157- extension .mavenRepositories ( true );
156+ SpringRepositoriesExtension extension = createExtension ("0.0.0" , "oss" );
157+ extension .mavenRepositoriesFor ( "1.2.3-SNAPSHOT" );
158158 assertThat (this .repositories ).hasSize (2 );
159159 }
160160
161161 @ Test
162162 void mavenRepositoriesWhenConditionDoesNotMatch () {
163163 SpringRepositoriesExtension extension = createExtension ("0.0.0-SNAPSHOT" , "oss" );
164- extension .mavenRepositories ( false );
164+ extension .mavenRepositoriesFor ( "1.2.3" );
165165 assertThat (this .repositories ).isEmpty ();
166166 }
167167
@@ -265,7 +265,7 @@ interface SpringRepositoriesExtension {
265265
266266 void mavenRepositories ();
267267
268- void mavenRepositories ( boolean condition );
268+ void mavenRepositoriesFor ( Object version );
269269
270270 void mavenRepositoriesExcludingBootGroup ();
271271
You can’t perform that action at this time.
0 commit comments