Skip to content

Dependencies

Mike Angstadt edited this page Aug 27, 2023 · 14 revisions

ez-vcard requires Java 1.8 or above.

ez-vcard uses the following dependencies. Many can be excluded, depending on the kind of vCard formats your application requires.

vinnie required
Maven coordinates: com.github.mangstadt:vinnie:2.0.2
A lightweight library that reads and writes "vobject" data (vCard and iCalendar).

jsoup optional
Maven coordinates: org.jsoup:jsoup:1.16.1
HTML parser used for parsing hCards (HTML-encoded vCards).

FreeMarker optional
Maven coordinates: org.freemarker:freemarker:2.3.32
Templating library used for creating HTML pages that contain hCards (HTML-encoded vCards).

Jackson optional
Maven coordinates: com.fasterxml.jackson.core:jackson-core:2.15.2
JSON library used for parsing and writing jCards (JSON-encoded vCards).

Apache Commons Codec
Maven coordinates: commons-codec:commons-codec:1.10
Utility library providing common decoder/encoder algorithms. Selected portions of this library's source code have been inserted directly into the ez-vcard code base in order to resolve an Android compatibility issue (see this discussion).

Maven-enabled projects can exclude dependencies like so:

<dependency>
  <groupId>com.googlecode.ez-vcard</groupId>
  <artifactId>ez-vcard</artifactId>
  <version>...</version>
  <exclusions>

    <!-- hCard functionality not needed -->
    <exclusion>
      <groupId>org.jsoup</groupId>
      <artifactId>jsoup</artifactId>
    </exclusion>
    <exclusion>
      <groupId>org.freemarker</groupId>
      <artifactId>freemarker</artifactId>
    </exclusion>

    <!-- jCard functionality not needed -->
    <exclusion>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
    </exclusion>

  </exclusions>
</dependency>
Clone this wiki locally