Flethuseo
Flethuseo

Reputation: 6189

Getting an error when adding a 3rd-party jar file

Good day,

I have modified the cordapp-tutorial demo application by modifying the gradle file \cordapp-tutorial\java-source\build.gradle. More specifically, I am adding a jar file to compile a 3rd party library. I'm making the following change to the build.gradle script

but it causes the following error for the M14 milestone release: Build fails when using M14 :java-source:configureCordappFatJar FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':java-source:configureCordappFatJar'.

Cannot invoke method contains() on null object * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

I do not get this error when I am using milestone release M13

Upvotes: 2

Views: 306

Answers (1)

Clintonio
Clintonio

Reputation: 434

There was a bug in the 0.14.0 release of the Corda gradle plugins that caused this (a missing null check when checking with a dependency without a group).

The way to fix it would be to change the corda_gradle_plugins_version to 0.14.1.

Upvotes: 1

Related Questions