Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pact Gradle plugin causes build to fail since 4.3.13 #1588

Closed
wojniemiec opened this issue Aug 5, 2022 · 8 comments
Closed

Pact Gradle plugin causes build to fail since 4.3.13 #1588

wojniemiec opened this issue Aug 5, 2022 · 8 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@wojniemiec
Copy link

Hello, after upgrading Pact gradle plugin to 4.3.13 (from 4.3.12) our gradle build fails almost immediately after starting it.

The error I got:
Could not apply requested plugin [id: ‘au.com.dius.pact’, version: ‘4.3.13’] as it does not provide a plugin with id ‘au.com.dius.pact’. This is caused by an incorrect plugin implementation. Please contact the plugin author(s)

Version 4.3.12 works perfectly fine. :)

@rholshausen
Copy link
Contributor

How are you applying the plugin to the project?

@rholshausen
Copy link
Contributor

Also, can you let us know what version of Gradle you are using?

@diptee-warudkar
Copy link

Same for us.

We are using gradle-7.4.2.

build.gradle ->

buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'au.com.dius.pact' version '4.3.13'
}
.....

Error->
Could not apply requested plugin [id: 'au.com.dius.pact', version: '4.3.13'] as it does not provide a plugin with id 'au.com.dius.pact'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).

Plugin with id 'au.com.dius.pact' not found.

@rholshausen rholshausen added the bug Indicates an unexpected problem or unintended behavior label Aug 8, 2022
@rholshausen
Copy link
Contributor

If you remove mavenCentral() from the build script repositories, it will then work.

@wojniemiec
Copy link
Author

Hello @rholshausen , we are using gradle 7.4.2.
Also, we are not using mavenCentral() as repository, we are using our own nexus repositories (but I suppose they fetch most of the dependencies from central repo).

@rholshausen
Copy link
Contributor

The problem is that the plugin needs to be fetched from plugins.gradle.org, not from a Maven repository.

The next released version should be fixed and be able to be loaded from a Maven repository.

@christiansiegel
Copy link

Thanks for fixing this with 4.3.14. However, the gradle plugin artifact was not released on Maven Central: https://mvnrepository.com/artifact/au.com.dius.pact.provider/gradle

@rholshausen
Copy link
Contributor

The gradle artifact is there now: https://repo1.maven.org/maven2/au/com/dius/pact/provider/gradle/4.3.14/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

4 participants