Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-1025

MariaDB 3.1 driver increases application size of about 4MB

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1
    • documentation
    • None

    Description

      Hello,

      we noticed an increase of our application of about 5MB when upgrading from 3.09 to 3.1.0

      while the MariaDB driver (groupId : org.mariadb.jdbc, artifactId : mariadb-java-client) grows only from ~ 590K to 630K, we noticed, that it had a lot of new dependencies:

      [INFO] +- org.mariadb.jdbc:mariadb-java-client:jar:3.1.0:compile (~630K)
      [INFO] |  \- com.github.waffle:waffle-jna:jar:3.2.0:compile (~70K)
      [INFO] |     +- net.java.dev.jna:jna:jar:5.10.0:compile (~1,7MB)
      [INFO] |     +- net.java.dev.jna:jna-platform:jar:5.10.0:compile (~1,3M)
      [INFO] |     \- com.github.ben-manes.caffeine:caffeine:jar:2.9.3:compile (~910K)
      [INFO] |        \- com.google.errorprone:error_prone_annotations:jar:2.10.0:compile (~15K)
      

      It seems that the windows authentication framework (https://github.com/Waffle/waffle) will require these dependencies. As we (and many others) will use the driver in a linux environment, these dependencies are useless there. I assume also, that there are many people that would not use this feature in windows environment.
      So, I would suggest to add these dependencies as optional dependencies or add a short hint in README, if and how they can be excluded in pom.xml.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              Roland Praml Roland Praml
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.