Created
July 29, 2016 10:44
-
-
Save cpilsworth/f6fc4d7f4970af0a93c877ec995231dc to your computer and use it in GitHub Desktop.
Maven module pom for wrapping jjwt 0.6.0 and making android.util import optional
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.myapp</groupId> | |
<artifactId>jjwt</artifactId> | |
<version>0.6.0</version> | |
<packaging>bundle</packaging> | |
<name>JSON Web Token support for the JVM</name> | |
<description> | |
This bundle simply wraps ${pkgGroupId}-${pkgVersion}.jar and makes android.util optional | |
</description> | |
<properties> | |
<pkgGroupId>io.jsonwebtoken</pkgGroupId> | |
<pkgArtifactId>jjwt</pkgArtifactId> | |
<pkgVersion>0.6.0</pkgVersion> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>${pkgGroupId}</groupId> | |
<artifactId>${pkgArtifactId}</artifactId> | |
<version>${pkgVersion}</version> | |
<optional>true</optional> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.felix</groupId> | |
<artifactId>maven-bundle-plugin</artifactId> | |
<version>2.5.3</version> | |
<extensions>true</extensions> | |
<configuration> | |
<classifier>no-android</classifier> | |
<instructions> | |
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> | |
<Export-Package> | |
io.jsonwebtoken;version=${pkgVersion};-split-package:=merge-first, | |
io.jsonwebtoken.lang;version=${pkgVersion};-split-package:=merge-first | |
</Export-Package> | |
<Import-Package> | |
android.util;resolution:=optional, | |
com.fasterxml.jackson.core;version="[2.4,3)", | |
com.fasterxml.jackson.databind;version="[2.4,3)", | |
javax.crypto, | |
javax.crypto.spec, | |
javax.xml.bind, | |
org.bouncycastle.jce;version="[1.51,2)";resolution:=optional, | |
org.bouncycastle.jce.spec;version="[1.51,2)";resolution:=optional, | |
* | |
</Import-Package> | |
<Embed-Dependency>${pkgArtifactId};inline=META-INF/**</Embed-Dependency> | |
<_failok>true</_failok> | |
</instructions> | |
<unpackBundle>true</unpackBundle> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment