cordapp-template-java icon indicating copy to clipboard operation
cordapp-template-java copied to clipboard

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

Open rajgohel89 opened this issue 1 year ago • 1 comments

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.

rajgohel89 avatar Jul 31 '23 06:07 rajgohel89

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

Ask-Doctor-X avatar Aug 21 '23 17:08 Ask-Doctor-X