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

Builds fail with error "Could not find method getSharedServices()" #154

Open
brightshine1111 opened this issue Jun 16, 2021 · 1 comment

Comments

@brightshine1111
Copy link

brightshine1111 commented Jun 16, 2021

I added this plugin to a project exactly as described in the instructions and now any Gradle task, including clean fails with the following error:

> Configure project :
Evaluating root project '[project]' using build file '/Users/benfa/repos/[project]/build.gradle'.

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/benfa/repos/[project]/build.gradle' line: 5

* What went wrong:
An exception occurred applying plugin request [id: 'ai.clarity.codeartifact', version: '0.0.12']
> Failed to apply plugin [id 'ai.clarity.codeartifact']
   > Could not find method getSharedServices() for arguments [] on build '[project]' of type org.gradle.invocation.DefaultGradle.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

I'm using the latest version of this plugin (0.0.12) and Gradle 5.3. Is there a minimum Gradle version this plugin can be used with?

@jerolba
Copy link
Collaborator

jerolba commented Jun 19, 2021

We have not tested the plugin with versions lower than 6.x

The failing method was introduced in the API in version 6:

https://docs.gradle.org/current/javadoc/org/gradle/api/invocation/Gradle.html#getSharedServices--

Then, the minimum Gradle version seems to be 6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants