You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/it/check-buildplan-version-range-fail/verify.groovy
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
21
21
def buildLog =newFile(basedir, 'build.log').text
22
22
23
-
assert buildLog =~/(?m)^\[WARNING] Dependency io\.cucumber:messages:jar:.+ \(compile\) via io\.cucumber:gherkin:jar:.+ is referenced with a range version \[32\.0\.0,33\.0\.0\)\s*$/
24
-
assert buildLog =~/(?m)^\[WARNING] Dependency commons-io:commons-io:jar:.+ \(compile\) is referenced with a range version \[2.20.0,\)\s*$/
25
-
assert buildLog =~/(?m)^\[WARNING] Dependency commons-collections:commons-collections:jar:LATEST \(compile\) is referenced with a range version LATEST\s*$/
23
+
assert buildLog.contains('[ERROR] Version with range found in dependencies, project can be non-reproducible')
24
+
assert buildLog.contains(' - Dependency io.cucumber:messages:jar:32.2.0 (compile) via io.cucumber:gherkin:jar:38.0.0 is referenced with a range version [32.0.0,33.0.0)')
25
+
assert buildLog.contains(' - Dependency commons-io:commons-io:jar:2.21.0 (compile) is referenced with a range version [2.20.0,)')
26
+
assert buildLog.contains(' - Dependency commons-collections:commons-collections:jar:LATEST (compile) is referenced with a range version LATEST')
Copy file name to clipboardExpand all lines: src/it/check-buildplan-version-range-no-fail/verify.groovy
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
21
21
def buildLog =newFile(basedir, 'build.log').text
22
22
23
-
assert buildLog =~/(?m)^\[ERROR] Dependency io\.cucumber:messages:jar:.+ \(compile\) via io\.cucumber:gherkin:jar:.+ is referenced with a range version \[32\.0\.0,33\.0\.0\)\s*$/
24
-
assert buildLog =~/(?m)^\[ERROR] Dependency commons-io:commons-io:jar:.+ \(compile\) is referenced with a range version \[2.20.0,\)\s*$/
25
-
assert buildLog =~/(?m)^\[ERROR] Dependency commons-collections:commons-collections:jar:LATEST \(compile\) is referenced with a range version LATEST\s*$/
23
+
assert buildLog.contains('[WARNING] Version with range found in dependencies, project can be non-reproducible')
24
+
assert buildLog.contains(' - Dependency io.cucumber:messages:jar:32.2.0 (compile) via io.cucumber:gherkin:jar:38.0.0 is referenced with a range version [32.0.0,33.0.0)')
25
+
assert buildLog.contains(' - Dependency commons-io:commons-io:jar:2.21.0 (compile) is referenced with a range version [2.20.0,)')
26
+
assert buildLog.contains(' - Dependency commons-collections:commons-collections:jar:LATEST (compile) is referenced with a range version LATEST')
0 commit comments