@@ -93,7 +93,14 @@ class Tests {
9393 fun customRepoWithCreds () {
9494 val lines = listOf (
9595 """ @file:MavenRepository("imagej-releases", "http://maven.imagej.net/content/repositories/releases", user="user", password="pass") """ ,
96+ // Same but name arg comes last
9697 """ @file:MavenRepository("imagej-snapshots", "http://maven.imagej.net/content/repositories/snapshots", password="pass", user="user") """ ,
98+ // Whitespaces around credentials see #228
99+ """ @file:MavenRepository("spaceAroundCredentials", "http://maven.imagej.net/content/repositories/snapshots", password= "pass" , user= "user" ) """ ,
100+ // Different whitespaces around credentials see #228
101+ """ @file:MavenRepository("spaceAroundCredentials2", "http://maven.imagej.net/content/repositories/snapshots", password= "pass", user="user" ) """ ,
102+
103+ // some other script bits unrelated to the repo definition
97104 """ @file:DependsOnMaven("net.clearvolume:cleargl:2.0.1")""" ,
98105 """ @file:DependsOn("log4j:log4j:1.2.14")""" ,
99106 """ println("foo")"""
@@ -103,7 +110,9 @@ class Tests {
103110
104111 collectRepos() shouldBe listOf (
105112 MavenRepo (" imagej-releases" , " http://maven.imagej.net/content/repositories/releases" , " user" , " pass" ),
106- MavenRepo (" imagej-snapshots" , " http://maven.imagej.net/content/repositories/snapshots" , " user" , " pass" ) // Provided with name in non-typical order
113+ MavenRepo (" imagej-snapshots" , " http://maven.imagej.net/content/repositories/snapshots" , " user" , " pass" ),
114+ MavenRepo (" spaceAroundCredentials" , " http://maven.imagej.net/content/repositories/snapshots" , " user" , " pass" ),
115+ MavenRepo (" spaceAroundCredentials2" , " http://maven.imagej.net/content/repositories/snapshots" , " user" , " pass" )
107116 )
108117
109118 collectDependencies() shouldBe listOf (
@@ -116,7 +125,6 @@ class Tests {
116125 }
117126
118127
119-
120128 // combine kotlin opts spread over multiple lines
121129 @Test
122130 fun optsCollect () {
0 commit comments