xref: /aosp_15_r20/external/aws-sdk-java-v2/third-party/third-party-jackson-dataformat-cbor/pom.xml (revision 8a52c7834d808308836a99fc2a6e0ed8db339086)
1*8a52c783SCole Faust<?xml version="1.0" encoding="UTF-8"?>
2*8a52c783SCole Faust<!--
3*8a52c783SCole Faust  ~ Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
4*8a52c783SCole Faust  ~
5*8a52c783SCole Faust  ~ Licensed under the Apache License, Version 2.0 (the "License").
6*8a52c783SCole Faust  ~ You may not use this file except in compliance with the License.
7*8a52c783SCole Faust  ~ A copy of the License is located at
8*8a52c783SCole Faust  ~
9*8a52c783SCole Faust  ~  http://aws.amazon.com/apache2.0
10*8a52c783SCole Faust  ~
11*8a52c783SCole Faust  ~ or in the "license" file accompanying this file. This file is distributed
12*8a52c783SCole Faust  ~ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13*8a52c783SCole Faust  ~ express or implied. See the License for the specific language governing
14*8a52c783SCole Faust  ~ permissions and limitations under the License.
15*8a52c783SCole Faust  -->
16*8a52c783SCole Faust
17*8a52c783SCole Faust<project xmlns="http://maven.apache.org/POM/4.0.0"
18*8a52c783SCole Faust         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19*8a52c783SCole Faust         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20*8a52c783SCole Faust    <parent>
21*8a52c783SCole Faust        <artifactId>third-party</artifactId>
22*8a52c783SCole Faust        <groupId>software.amazon.awssdk</groupId>
23*8a52c783SCole Faust        <version>2.24.3</version>
24*8a52c783SCole Faust    </parent>
25*8a52c783SCole Faust    <modelVersion>4.0.0</modelVersion>
26*8a52c783SCole Faust
27*8a52c783SCole Faust    <artifactId>third-party-jackson-dataformat-cbor</artifactId>
28*8a52c783SCole Faust    <name>AWS Java SDK :: Third Party :: Jackson-dataformat-cbor</name>
29*8a52c783SCole Faust    <url>https://aws.amazon.com/sdkforjava</url>
30*8a52c783SCole Faust
31*8a52c783SCole Faust    <dependencyManagement>
32*8a52c783SCole Faust        <dependencies>
33*8a52c783SCole Faust            <dependency>
34*8a52c783SCole Faust                <groupId>software.amazon.awssdk</groupId>
35*8a52c783SCole Faust                <artifactId>bom-internal</artifactId>
36*8a52c783SCole Faust                <version>${project.version}</version>
37*8a52c783SCole Faust                <type>pom</type>
38*8a52c783SCole Faust                <scope>import</scope>
39*8a52c783SCole Faust            </dependency>
40*8a52c783SCole Faust        </dependencies>
41*8a52c783SCole Faust    </dependencyManagement>
42*8a52c783SCole Faust
43*8a52c783SCole Faust    <dependencies>
44*8a52c783SCole Faust        <dependency>
45*8a52c783SCole Faust            <groupId>software.amazon.awssdk</groupId>
46*8a52c783SCole Faust            <artifactId>third-party-jackson-core</artifactId>
47*8a52c783SCole Faust            <version>${awsjavasdk.version}</version>
48*8a52c783SCole Faust        </dependency>
49*8a52c783SCole Faust
50*8a52c783SCole Faust        <!-- Shaded -->
51*8a52c783SCole Faust        <dependency>
52*8a52c783SCole Faust            <groupId>com.fasterxml.jackson.dataformat</groupId>
53*8a52c783SCole Faust            <artifactId>jackson-dataformat-cbor</artifactId>
54*8a52c783SCole Faust            <version>${jackson.version}</version>
55*8a52c783SCole Faust            <optional>true</optional>
56*8a52c783SCole Faust        </dependency>
57*8a52c783SCole Faust    </dependencies>
58*8a52c783SCole Faust
59*8a52c783SCole Faust    <build>
60*8a52c783SCole Faust        <plugins>
61*8a52c783SCole Faust            <!-- Shade Jackson -->
62*8a52c783SCole Faust            <plugin>
63*8a52c783SCole Faust                <groupId>org.apache.maven.plugins</groupId>
64*8a52c783SCole Faust                <artifactId>maven-shade-plugin</artifactId>
65*8a52c783SCole Faust                <version>3.5.0</version>
66*8a52c783SCole Faust
67*8a52c783SCole Faust                <configuration>
68*8a52c783SCole Faust                    <artifactSet>
69*8a52c783SCole Faust                        <includes>
70*8a52c783SCole Faust                            <include>com.fasterxml.jackson.dataformat:*</include>
71*8a52c783SCole Faust                        </includes>
72*8a52c783SCole Faust                    </artifactSet>
73*8a52c783SCole Faust                    <relocations>
74*8a52c783SCole Faust                        <relocation>
75*8a52c783SCole Faust                            <pattern>com.fasterxml.jackson.dataformat.cbor</pattern>
76*8a52c783SCole Faust                            <shadedPattern>software.amazon.awssdk.thirdparty.jackson.dataformat.cbor</shadedPattern>
77*8a52c783SCole Faust                        </relocation>
78*8a52c783SCole Faust                        <relocation>
79*8a52c783SCole Faust                            <pattern>com.fasterxml.jackson.core</pattern>
80*8a52c783SCole Faust                            <shadedPattern>software.amazon.awssdk.thirdparty.jackson.core</shadedPattern>
81*8a52c783SCole Faust                        </relocation>
82*8a52c783SCole Faust                    </relocations>
83*8a52c783SCole Faust                    <filters>
84*8a52c783SCole Faust                        <filter>
85*8a52c783SCole Faust                            <artifact>com.fasterxml.jackson.dataformat:*</artifact>
86*8a52c783SCole Faust                            <excludes>
87*8a52c783SCole Faust                                <!-- Exclude components that require Jackson-databind, because we don't use it. -->
88*8a52c783SCole Faust                                <exclude>com/fasterxml/jackson/dataformat/cbor/databind/**</exclude>
89*8a52c783SCole Faust                                <exclude>META-INF/**/pom.xml</exclude>
90*8a52c783SCole Faust                                <exclude>META-INF/**/pom.properties</exclude>
91*8a52c783SCole Faust                                <!-- exclude multirelease classes -->
92*8a52c783SCole Faust                                <exclude>META-INF/versions/**/*.class</exclude>
93*8a52c783SCole Faust                            </excludes>
94*8a52c783SCole Faust                        </filter>
95*8a52c783SCole Faust                    </filters>
96*8a52c783SCole Faust                    <transformers>
97*8a52c783SCole Faust                        <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
98*8a52c783SCole Faust                    </transformers>
99*8a52c783SCole Faust                    <shadedArtifactAttached>false</shadedArtifactAttached>
100*8a52c783SCole Faust                    <createDependencyReducedPom>true</createDependencyReducedPom>
101*8a52c783SCole Faust                    <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
102*8a52c783SCole Faust                </configuration>
103*8a52c783SCole Faust                <executions>
104*8a52c783SCole Faust                    <execution>
105*8a52c783SCole Faust                        <phase>package</phase>
106*8a52c783SCole Faust                        <goals>
107*8a52c783SCole Faust                            <goal>shade</goal>
108*8a52c783SCole Faust                        </goals>
109*8a52c783SCole Faust                    </execution>
110*8a52c783SCole Faust                </executions>
111*8a52c783SCole Faust            </plugin>
112*8a52c783SCole Faust
113*8a52c783SCole Faust            <!-- Ensure that IntelliJ loads the shaded jar -->
114*8a52c783SCole Faust            <plugin>
115*8a52c783SCole Faust                <groupId>org.codehaus.mojo</groupId>
116*8a52c783SCole Faust                <artifactId>build-helper-maven-plugin</artifactId>
117*8a52c783SCole Faust                <executions>
118*8a52c783SCole Faust                    <execution>
119*8a52c783SCole Faust                        <id>compile</id>
120*8a52c783SCole Faust                        <phase>package</phase>
121*8a52c783SCole Faust                        <goals>
122*8a52c783SCole Faust                            <goal>attach-artifact</goal>
123*8a52c783SCole Faust                        </goals>
124*8a52c783SCole Faust                        <configuration>
125*8a52c783SCole Faust                            <artifacts>
126*8a52c783SCole Faust                                <artifact>
127*8a52c783SCole Faust                                    <file>${basedir}/target/aws-sdk-java-third-party-jackson-dataformat-cbor-${project.version}.jar</file>
128*8a52c783SCole Faust                                    <type>jar</type>
129*8a52c783SCole Faust                                    <classifier>optional</classifier>
130*8a52c783SCole Faust                                </artifact>
131*8a52c783SCole Faust                            </artifacts>
132*8a52c783SCole Faust                        </configuration>
133*8a52c783SCole Faust                    </execution>
134*8a52c783SCole Faust                </executions>
135*8a52c783SCole Faust            </plugin>
136*8a52c783SCole Faust            <plugin>
137*8a52c783SCole Faust                <groupId>org.apache.maven.plugins</groupId>
138*8a52c783SCole Faust                <artifactId>maven-jar-plugin</artifactId>
139*8a52c783SCole Faust                <configuration>
140*8a52c783SCole Faust                    <archive>
141*8a52c783SCole Faust                        <manifestEntries>
142*8a52c783SCole Faust                            <Automatic-Module-Name>software.amazon.awssdk.thirdparty.jackson.dataformat.cbor</Automatic-Module-Name>
143*8a52c783SCole Faust                        </manifestEntries>
144*8a52c783SCole Faust                        <manifest>
145*8a52c783SCole Faust                            <addDefaultEntries>false</addDefaultEntries>
146*8a52c783SCole Faust                        </manifest>
147*8a52c783SCole Faust                        <addMavenDescriptor>false</addMavenDescriptor>
148*8a52c783SCole Faust                    </archive>
149*8a52c783SCole Faust                </configuration>
150*8a52c783SCole Faust            </plugin>
151*8a52c783SCole Faust            <plugin>
152*8a52c783SCole Faust                <artifactId>maven-javadoc-plugin</artifactId>
153*8a52c783SCole Faust                <executions>
154*8a52c783SCole Faust                    <execution>
155*8a52c783SCole Faust                        <id>javadoc-jar</id>
156*8a52c783SCole Faust                        <phase>package</phase>
157*8a52c783SCole Faust                        <goals>
158*8a52c783SCole Faust                            <goal>jar</goal>
159*8a52c783SCole Faust                        </goals>
160*8a52c783SCole Faust                    </execution>
161*8a52c783SCole Faust                </executions>
162*8a52c783SCole Faust                <configuration>
163*8a52c783SCole Faust                    <sourcepath>${basedir}/../../core/profiles/src/main/java/software/amazon/awssdk/profiles;${basedir}/../../core/sdk-core/src/main/java/software/amazon/awssdk/core</sourcepath>
164*8a52c783SCole Faust                    <failOnError>false</failOnError>
165*8a52c783SCole Faust                </configuration>
166*8a52c783SCole Faust            </plugin>
167*8a52c783SCole Faust        </plugins>
168*8a52c783SCole Faust    </build>
169*8a52c783SCole Faust</project>
170