| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <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> |
| <parent> |
| <groupId>org.apache.tinkerpop</groupId> |
| <artifactId>tinkerpop</artifactId> |
| <version>3.6.5-SNAPSHOT</version> |
| </parent> |
| <artifactId>gremlin-shaded</artifactId> |
| <name>Apache TinkerPop :: Gremlin Shaded</name> |
| <dependencies> |
| <!-- Review the shade plugin config whenever you change the versions of these dependencies. Specifically, |
| validate that there are no package naming changes in these dependencies and that no new paths need |
| to be shaded --> |
| <dependency> |
| <groupId>com.esotericsoftware</groupId> |
| <artifactId>kryo-shaded</artifactId> |
| <version>3.0.3</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>com.esotericsoftware</groupId> |
| <artifactId>minlog</artifactId> |
| <version>1.3.0</version> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>org.objenesis</groupId> |
| <artifactId>objenesis</artifactId> |
| <optional>true</optional> |
| </dependency> |
| <dependency> |
| <groupId>com.fasterxml.jackson.core</groupId> |
| <artifactId>jackson-databind</artifactId> |
| <version>2.14.0</version> |
| <optional>true</optional> |
| </dependency> |
| </dependencies> |
| <build> |
| <directory>${basedir}/target</directory> |
| <finalName>${project.artifactId}-${project.version}</finalName> |
| <plugins> |
| <plugin> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>shade-kryo</id> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>false</createDependencyReducedPom> |
| <artifactSet> |
| <includes> |
| <include>com.esotericsoftware:*</include> |
| <include>org.objenesis:*</include> |
| <include>com.fasterxml.jackson.core:*</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>com.esotericsoftware.reflectasm</pattern> |
| <shadedPattern>org.apache.tinkerpop.shaded.kryo</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.kryo</pattern> |
| <shadedPattern>org.apache.tinkerpop.shaded.kryo</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.objenesis</pattern> |
| <shadedPattern>org.apache.tinkerpop.shaded.objenesis</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.esotericsoftware.minlog</pattern> |
| <shadedPattern>org.apache.tinkerpop.shaded.minlog</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>com.fasterxml.jackson</pattern> |
| <shadedPattern>org.apache.tinkerpop.shaded.jackson</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <!-- Exclude service descriptors because they still reference unshaded classes, this |
| causes an error if the JAR is used as an automatic module in a JPMS app. --> |
| <filter> |
| <artifact>*</artifact> |
| <excludes> |
| <exclude>META-INF/services/**</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <!-- false below means the shade plugin overwrites the main project artifact (the one |
| with no classifier). false does *not* actually detach the main artifact, despite what |
| the option name suggests. --> |
| <shadedArtifactAttached>false</shadedArtifactAttached> |
| <minimizeJar>false</minimizeJar> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/licenses/kryo</resource> |
| <file>src/main/static/licenses/kryo</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/licenses/minilog</resource> |
| <file>src/main/static/licenses/minilog</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| <resources> |
| <resource>NOTICE</resource> |
| </resources> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/NOTICE</resource> |
| <file>src/main/static/NOTICE</file> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| <resources> |
| <resource>LICENSE</resource> |
| </resources> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| <resource>META-INF/LICENSE</resource> |
| <file>src/main/static/LICENSE</file> |
| </transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |