-
Notifications
You must be signed in to change notification settings - Fork 22
Gradle cleanup #39
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
base: main
Are you sure you want to change the base?
Gradle cleanup #39
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate the contribution, but I've left a few review comments. I could see my way to merging something like this but it would need to remove a bit less of the existing functionality. As it stands this is less a "cleanup" and more a "rewrite".
Especially, it still needs to be possible to build a jcardsim jar with zero javacard dependencies present on the build machine, and it needs to be IMpossible to build an applet that relies on a jcardsim-only function.
build.gradle
Outdated
jcdk files('../jckit/lib/api_classic-3.0.5.jar') | ||
|
||
// Main and test dependencies use JCardSim | ||
implementation files('../jcardsim-3.0.5.jar') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JCardSim shouldn't be a dependency for the javacard applet. It's only used for testing builds.
Overall, my main goal was to get rid of the klinec javacard plugin, and ideally be able to use Visual Studio Code with the Java Extension Pack. From the command line everything is working fine, but in Visual Studio Code I still have a nagging issue in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there now, but there should be some way to build with your choice of version of the JCDK without editing the sources.
Sorry to be so late responding, but this still doesn't appear to work properly with SDKs other than the last login-required one from Oracle.
I'd love to merge this but it needs to be able to build the javacard applet when using older SDKs. This fails as written because of three problems:
I don't see cleaning up as being more important than being portable to a wider variety of build environments, so I'd rather not lose support for older tools just to reduce the size of the build.gradle file. If you can ensure this works with both older and newer SDKs I'd be glad to merge it. I really do appreciate the contribution, but what's being improved (the size and "cleanness" of the gradle file) needs to be greater than what's being lost (compatibility). |
Hi Bryan, I like your project and since the tools for working with Java Cards are not frequently updated I removed dependencias since they tend to become technical debt. The
build.gradle
file is now simpler and I changed the README to help newcomers.