javacard-gradle-plugin icon indicating copy to clipboard operation
javacard-gradle-plugin copied to clipboard

Dependencies not working

Open promovicz opened this issue 5 years ago • 1 comments

I am trying to use your plugin in favor of the fidesmo one because yours supports library dependencies.

Unfortunately, this does not seem to be working. I have declared two libraries and one applet with some simple dependencies between them. The builds for all of them do not seem to have correct build dependencies, so the build fails unless it is executed specifically in dependency order.

My project can be found here: https://github.com/OpenJavaCard/openjavacard-coap

There are several problems with this build:

  • the "build" target does not depend on "buildJavaCard"
  • the varios "buildJavaCard" targets do not reflect project dependencies

The following will not build JavaCard files: $ ./gradlew clean build

The following will fail because of missing library dependencies: $ ./gradlew clean buildJavaCard

The following does work: $ ./gradlew clean library-core:buildJavaCard library-server:buildJavaCard applet-server-tiny:buildJavaCard

Am I doing something wrong?

promovicz avatar Feb 10 '19 22:02 promovicz