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

Failed to apply plugin 'net.corda.plugins.cordapp' #70

Open
rajgohel89 opened this issue Jul 31, 2023 · 1 comment
Open

Failed to apply plugin 'net.corda.plugins.cordapp' #70

rajgohel89 opened this issue Jul 31, 2023 · 1 comment

Comments

@rajgohel89
Copy link

I cloned cordapp-template-java using the below link.
https://github.com/corda/cordapp-template-java.git
Branch - release-V4

1) I executed gradle build/clean from IntelliJ gradle sidebar. It's failing with below error stack.

Build file 'D:\blockchain\build.gradle' line: 60

Failed to apply plugin 'net.corda.plugins.cordapp'.
Collection contains no element matching the predicate.

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

2) Executed gradle command with --stacktrace.

  • Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'net.corda.plugins.cordapp'

  • Caused by: java.util.NoSuchElementException: Collection contains no element matching the predicate.

@Ask-Doctor-X
Copy link

Ask-Doctor-X commented Aug 21, 2023

You have to update plugin versions as below in root project gradle.build file:

dependencies {
classpath "net.corda.plugins:cordapp:$corda_gradle_plugins_version"
classpath "net.corda.plugins:cordformation:$cord_Formation"
classpath "net.corda.plugins:quasar-utils:$quasar_util_version"
}

  • $corda_gradle_plugins_version = 5.1.0
  • $cord_Formation = 5.1.0
  • $quasar_util_version = 6.0.0-DevPreview

It seems that it is unable to fetch the dependencies from the repository. It solved this problem in my case.
@rajgohel89

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