Skip to content

Commit a33c921

Browse files
author
Gabrielle Gasse
committedFeb 27, 2020
feat: Added state configuration for hasPactsFromPactBrokerWithTag in gradle #1026
1 parent 2157cab commit a33c921

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎provider/pact-jvm-provider-gradle/src/main/groovy/au/com/dius/pact/provider/gradle/GradleProviderInfo.groovy

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ class GradleProviderInfo extends ProviderInfo {
3838
fromPactBroker
3939
}
4040

41+
List hasPactsFromPactBrokerWithTag(Map options = [:], String pactBrokerUrl, String tag, Closure closure) {
42+
def fromPactBroker = super.hasPactsFromPactBrokerWithTag(options, pactBrokerUrl, tag)
43+
fromPactBroker.each {
44+
ConfigureUtil.configure(closure, it)
45+
}
46+
fromPactBroker
47+
}
48+
4149
def url(String path) {
4250
new URL(path)
4351
}

0 commit comments

Comments
 (0)
Please sign in to comment.