[CONJ-1053] Mark waffle-jna dependency optional in module descriptor Created: 2023-02-11  Updated: 2023-06-19

Status: Open
Project: MariaDB Connector/J
Component/s: java9
Affects Version/s: 3.1.0, 3.1.1, 3.1.2
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Anand Beh Assignee: Diego Dupin
Resolution: Unresolved Votes: 0
Labels: None


 Description   

As discussed in CONJ-1025, the dependency on waffle-jna is used only for the GSSAPI feature on Windows. Clients who want a smaller jar size can exclude the dependency using Maven or Gradle configuration.

*JPMS*
Excluding the dependency on waffle-jna works, – most of the time. However, the `module-info` of mariadb-java-client uses `requires waffle.jna`. This means, with JPMS enabled, waffle-jna must be present.

The optionality of the waffle-jna dependency should be reflected in the JPMS module descriptor. The requires declaration should be requires static to properly reflect that waffle-jna is optional.

It used to be `requires static`, but this commit changed it to `requires`. I'm not sure why. https://github.com/mariadb-corporation/mariadb-connector-j/commit/5ac67b2d17dcf4e0272781426d67299dedf5a377


Generated at Thu Feb 08 03:20:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.