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

No signature of method: org.gradle.api.internal.tasks.RealizableTaskCollection.configureEach #338

Open
diamondo25 opened this issue Apr 24, 2020 · 5 comments

Comments

@diamondo25
Copy link

> Failed to apply plugin [id 'com.jfrog.artifactory']
   > No signature of method: org.gradle.api.internal.tasks.RealizableTaskCollection.configureEach() is applicable for argument types: (org.jfrog.gradle.plugin.artifactory.ArtifactoryPluginBase$_addModuleInfoTask_closure1) values: [org.jfrog.gradle.plugin.artifactory.ArtifactoryPluginBase$_addModuleInfoTask_closure1@3a86c166]

This error randomly appeared after the latest version of the build-info-extractor-gradle release. 4.15.1 does not have this issue.

build-info-gradle-extractor-4.15.1...build-info-gradle-extractor-4.15.2

I'm unable to figure out why it happens, so i've included the build.gradle, maybe you can figure it out.

buildscript {
    repositories {
        jcenter()
        maven {
            name 'forge'
            url 'http://files.minecraftforge.net/maven'
        }
    }
    dependencies {
        classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.15.2"
    }
}

apply plugin: 'com.jfrog.artifactory'

This code already triggers the exception. I think its related to the gradle version, which is 4.4. Updating to 6.3 through gradlew wrapper --gradle-version 6.3 did not help.

FAILURE: Build failed with an exception.

* What went wrong:
java.lang.ExceptionInInitializerError (no error message)
> org.gradle.api.internal.file.DefaultSourceDirectorySet.<init>(java.lang.String, org.gradle.api.internal.file.FileResolver, org.gradle.api.internal.file.collections.DirectoryFileTreeFactory)
@sophiataskova
Copy link

Just seconding the post. The project I'm trying to build is https://github.com/jfrog/project-examples/tree/master/gradle-examples/gradle-cache-example

@diamondo25
Copy link
Author

You can downgrade to 4.15.1 to fix the build

@atul9911
Copy link

You can downgrade to 4.15.1 to fix the build

same problem and spend around 2hrs to fix this

@eyalbe4
Copy link
Contributor

eyalbe4 commented Jul 24, 2020

@atul9911,
Did you upgrade your gradle version to fix this issue? If so, which gradle version did you use before?
As far as I understand the issue is related to the usage of old gradle APIs.
Thanks

@eyalbe4
Copy link
Contributor

eyalbe4 commented Oct 22, 2020

All -
I believe that upgrading the Gradle version used resolves this issue. The minimum supported Gradle as of today is 4.10.

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

4 participants