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

Compatible with gradle 7.1 not working #380

Open
deanhiller opened this issue Feb 12, 2022 · 2 comments
Open

Compatible with gradle 7.1 not working #380

deanhiller opened this issue Feb 12, 2022 · 2 comments

Comments

@deanhiller
Copy link

I think it is a version issue. I ran into this when re-using the file https://github.com/shekhargulati/gradle-react-app/blob/master/build.gradle . I upgraded the version of the plugin to the latest and got this error ->

Could not find method layout() for arguments [pattern, com.moowork.gradle.node.task.SetupTask$_addRepository_closure5$_closure7@2a9dd171] on object of type org.gradle.api.internal.artifacts.repositories.DefaultIvyArtifactRepository

Inside my react-native project android is using gradle 7.2 so I was hoping to match that version.

@chrisr3
Copy link

chrisr3 commented Apr 7, 2022

I am seeing an exception like this too:

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method layout() for arguments [pattern, com.moowork.gradle.node.task.SetupTask$_addRepository_closure5$_closure7@1251e743] on object of type org.gradle.api.internal.artifacts.repositories.DefaultIvyArtifactRepository.
        at org.gradle.internal.metaobject.AbstractDynamicObject$CustomMissingMethodExecutionFailed.<init>(AbstractDynamicObject.java:190)
        at org.gradle.internal.metaobject.AbstractDynamicObject.methodMissingException(AbstractDynamicObject.java:184)
        at org.gradle.internal.metaobject.ConfigureDelegate.invokeMethod(ConfigureDelegate.java:86)
        at com.moowork.gradle.node.task.SetupTask$_addRepository_closure5.doCall(SetupTask.groovy:182)
        at org.gradle.util.internal.ClosureBackedAction.execute(ClosureBackedAction.java:72)
        ...

Gradle 7.4.2.

@deepy
Copy link

deepy commented Sep 8, 2022

There's more history in #315, but the short of it is that this repository is no longer actively developed and does not work with Gradle 7 (or even 6 I think)
Luckily there's a community fork that's actively developed and has Gradle 7 support https://github.com/node-gradle/gradle-node-plugin

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

3 participants