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

Error "Could not find method implementation()" when building src project #45

Open
vaci opened this issue Sep 29, 2021 · 0 comments
Open

Comments

@vaci
Copy link

vaci commented Sep 29, 2021

I'm attempting to use gradle2nix to build a large project, https://github.com/real-logic/aeron.

Most of the dependencies seem to be processed successfully, but I get an odd error with the buildSrc sub-project, which has the following build.gradle file:

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.asciidoctor:asciidoctorj:2.5.2'
    implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.0.202109080827-r'
}

The error is:
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method implementation() for arguments [org.asciidoctor:asciidoctorj:2.5.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Reversing the order of the dependencies results in the error being triggered by the jgit project instead.

This seems to be a pretty normal dependency clause? I'm not particularly familiar with gradle, so there may be an obvious cause that I'm missing.

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

1 participant