Skip to content

Commit

Permalink
fix(Gradle): fixes gradle provider verification from pact file #1587
Browse files Browse the repository at this point in the history
  • Loading branch information
uglyog committed Aug 2, 2022
1 parent 77b79a2 commit d7fccb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class PactPlugin extends PactPluginBase {
@SuppressWarnings('CatchRuntimeException')
@CompileStatic
private void setupPactConsumersFromBroker(GradleProviderInfo provider, Project project, PactPluginExtension ext) {
if (provider.brokerConfig && project.gradle.startParameter.taskNames.any {
if (ext.broker && project.gradle.startParameter.taskNames.any {
it.toLowerCase().contains(PACT_VERIFY.toLowerCase()) }) {
def options = [:]
if (ext.broker.pactBrokerUsername) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class PactVerificationTask extends PactVerificationBaseTask {
verificationSource = 'gradle'
projectHasProperty = { project.hasProperty(it) }
projectGetProperty = { project.property(it) }
pactLoadFailureMessage = { 'You must specify the pactfile to execute (use pactFile = ...)' }
pactLoadFailureMessage = { 'You must specify the pact file to execute (use pactSource = file(...) etc.)' }
checkBuildSpecificTask = { it instanceof Task || it instanceof String && project.tasks.findByName(it) }
executeBuildSpecificTask = this.&executeStateChangeTask
projectClasspath = {
Expand Down

0 comments on commit d7fccb6

Please sign in to comment.