File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
buildSrc/src/main/groovy/org/springframework/restdocs/build/matrix Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2014-2018 the original author or authors.
2
+ * Copyright 2014-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@ public class MatrixTestExtension {
43
43
void configureTestTasks (Project project ) {
44
44
if (! entries. empty) {
45
45
cartesianProduct(entries. collect { entry ->
46
- entry. versions. collect { [' group' : entry. group, ' version' : it] }
46
+ entry. versions. collect { [' group' : entry. group, ' artifact ' : entry . artifact, ' version' : it] }
47
47
}). forEach { configureTestTask(project, it) }
48
48
}
49
49
}
@@ -64,6 +64,7 @@ public class MatrixTestExtension {
64
64
resolutionStrategy. eachDependency { dependency ->
65
65
versionSelectors
66
66
.findAll{ it. group == dependency. requested. group }
67
+ .findAll { ! it. artifact || it. artifact == dependency. requested. name }
67
68
.each { dependency. useVersion it. version }
68
69
}
69
70
}
@@ -98,6 +99,8 @@ public class MatrixTestExtension {
98
99
99
100
String group
100
101
102
+ String artifact
103
+
101
104
List<String > versions
102
105
103
106
}
You can’t perform that action at this time.
0 commit comments