Skip to content

Commit b852509

Browse files
committed
fix(Gradle): fixes gradle provider verification from pact file #1587
1 parent d7ec724 commit b852509

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

provider/gradle/src/main/groovy/au/com/dius/pact/provider/gradle/PactPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class PactPlugin extends PactPluginBase {
8383
@SuppressWarnings('CatchRuntimeException')
8484
@CompileStatic
8585
private void setupPactConsumersFromBroker(GradleProviderInfo provider, Project project, PactPluginExtension ext) {
86-
if (provider.brokerConfig && project.gradle.startParameter.taskNames.any {
86+
if (ext.broker && project.gradle.startParameter.taskNames.any {
8787
it.toLowerCase().contains(PACT_VERIFY.toLowerCase()) }) {
8888
def options = [:]
8989
if (ext.broker.pactBrokerUsername) {

provider/gradle/src/main/groovy/au/com/dius/pact/provider/gradle/PactVerificationTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class PactVerificationTask extends PactVerificationBaseTask {
2323
verificationSource = 'gradle'
2424
projectHasProperty = { project.hasProperty(it) }
2525
projectGetProperty = { project.property(it) }
26-
pactLoadFailureMessage = { 'You must specify the pactfile to execute (use pactFile = ...)' }
26+
pactLoadFailureMessage = { 'You must specify the pact file to execute (use pactSource = file(...) etc.)' }
2727
checkBuildSpecificTask = { it instanceof Task || it instanceof String && project.tasks.findByName(it) }
2828
executeBuildSpecificTask = this.&executeStateChangeTask
2929
projectClasspath = {

0 commit comments

Comments
 (0)