xref: /aosp_15_r20/external/aws-sdk-java-v2/third-party/third-party-slf4j-api/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" f4ile 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-slf4j-api</artifactId>
28*8a52c783SCole Faust    <name>AWS Java SDK :: Third Party :: SLF4J API</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            <!-- Shaded -->
46*8a52c783SCole Faust            <groupId>org.slf4j</groupId>
47*8a52c783SCole Faust            <artifactId>slf4j-api</artifactId>
48*8a52c783SCole Faust            <version>${slf4j.version}</version>
49*8a52c783SCole Faust            <optional>true</optional>
50*8a52c783SCole Faust        </dependency>
51*8a52c783SCole Faust    </dependencies>
52*8a52c783SCole Faust
53*8a52c783SCole Faust    <build>
54*8a52c783SCole Faust        <plugins>
55*8a52c783SCole Faust            <!-- Shade SLF4J -->
56*8a52c783SCole Faust            <plugin>
57*8a52c783SCole Faust                <groupId>org.apache.maven.plugins</groupId>
58*8a52c783SCole Faust                <artifactId>maven-shade-plugin</artifactId>
59*8a52c783SCole Faust                <version>3.5.0</version>
60*8a52c783SCole Faust
61*8a52c783SCole Faust                <configuration>
62*8a52c783SCole Faust                    <artifactSet>
63*8a52c783SCole Faust                        <includes>
64*8a52c783SCole Faust                            <include>org.slf4j:*</include>
65*8a52c783SCole Faust                        </includes>
66*8a52c783SCole Faust                    </artifactSet>
67*8a52c783SCole Faust                    <relocations>
68*8a52c783SCole Faust                        <relocation>
69*8a52c783SCole Faust                            <pattern>org.slf4j</pattern>
70*8a52c783SCole Faust                            <shadedPattern>software.amazon.awssdk.thirdparty.org.slf4j</shadedPattern>
71*8a52c783SCole Faust                        </relocation>
72*8a52c783SCole Faust                    </relocations>
73*8a52c783SCole Faust                    <filters>
74*8a52c783SCole Faust                        <filter>
75*8a52c783SCole Faust                            <artifact>org.slf4j:*</artifact>
76*8a52c783SCole Faust                            <excludes>
77*8a52c783SCole Faust                                <exclude>META-INF/**/pom.xml</exclude>
78*8a52c783SCole Faust                                <exclude>META-INF/**/pom.properties</exclude>
79*8a52c783SCole Faust                                <!-- exclude multirelease classes -->
80*8a52c783SCole Faust                                <exclude>META-INF/versions/**/*.class</exclude>
81*8a52c783SCole Faust                            </excludes>
82*8a52c783SCole Faust                        </filter>
83*8a52c783SCole Faust                    </filters>
84*8a52c783SCole Faust                    <transformers>
85*8a52c783SCole Faust                        <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
86*8a52c783SCole Faust                    </transformers>
87*8a52c783SCole Faust                    <shadedArtifactAttached>false</shadedArtifactAttached>
88*8a52c783SCole Faust                    <createDependencyReducedPom>true</createDependencyReducedPom>
89*8a52c783SCole Faust                    <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
90*8a52c783SCole Faust                </configuration>
91*8a52c783SCole Faust                <executions>
92*8a52c783SCole Faust                    <execution>
93*8a52c783SCole Faust                        <phase>package</phase>
94*8a52c783SCole Faust                        <goals>
95*8a52c783SCole Faust                            <goal>shade</goal>
96*8a52c783SCole Faust                        </goals>
97*8a52c783SCole Faust                    </execution>
98*8a52c783SCole Faust                </executions>
99*8a52c783SCole Faust            </plugin>
100*8a52c783SCole Faust
101*8a52c783SCole Faust            <!-- Ensure that IntelliJ loads the shaded jar -->
102*8a52c783SCole Faust            <plugin>
103*8a52c783SCole Faust                <groupId>org.codehaus.mojo</groupId>
104*8a52c783SCole Faust                <artifactId>build-helper-maven-plugin</artifactId>
105*8a52c783SCole Faust                <executions>
106*8a52c783SCole Faust                    <execution>
107*8a52c783SCole Faust                        <id>compile</id>
108*8a52c783SCole Faust                        <phase>package</phase>
109*8a52c783SCole Faust                        <goals>
110*8a52c783SCole Faust                            <goal>attach-artifact</goal>
111*8a52c783SCole Faust                        </goals>
112*8a52c783SCole Faust                        <configuration>
113*8a52c783SCole Faust                            <artifacts>
114*8a52c783SCole Faust                                <artifact>
115*8a52c783SCole Faust                                    <file>${basedir}/target/aws-sdk-java-third-party-slf4j-api-${awsjavasdk.version}.jar</file>
116*8a52c783SCole Faust                                    <type>jar</type>
117*8a52c783SCole Faust                                    <classifier>optional</classifier>
118*8a52c783SCole Faust                                </artifact>
119*8a52c783SCole Faust                            </artifacts>
120*8a52c783SCole Faust                        </configuration>
121*8a52c783SCole Faust                    </execution>
122*8a52c783SCole Faust                </executions>
123*8a52c783SCole Faust            </plugin>
124*8a52c783SCole Faust            <plugin>
125*8a52c783SCole Faust                <groupId>org.apache.maven.plugins</groupId>
126*8a52c783SCole Faust                <artifactId>maven-jar-plugin</artifactId>
127*8a52c783SCole Faust                <configuration>
128*8a52c783SCole Faust                    <archive>
129*8a52c783SCole Faust                        <manifestEntries>
130*8a52c783SCole Faust                            <Automatic-Module-Name>software.amazon.awssdk.thirdparty.slf4j</Automatic-Module-Name>
131*8a52c783SCole Faust                        </manifestEntries>
132*8a52c783SCole Faust                        <manifest>
133*8a52c783SCole Faust                            <addDefaultEntries>false</addDefaultEntries>
134*8a52c783SCole Faust                        </manifest>
135*8a52c783SCole Faust                        <addMavenDescriptor>false</addMavenDescriptor>
136*8a52c783SCole Faust                    </archive>
137*8a52c783SCole Faust                </configuration>
138*8a52c783SCole Faust            </plugin>
139*8a52c783SCole Faust            <plugin>
140*8a52c783SCole Faust                <artifactId>maven-javadoc-plugin</artifactId>
141*8a52c783SCole Faust                <executions>
142*8a52c783SCole Faust                    <execution>
143*8a52c783SCole Faust                        <id>javadoc-jar</id>
144*8a52c783SCole Faust                        <phase>package</phase>
145*8a52c783SCole Faust                        <goals>
146*8a52c783SCole Faust                            <goal>jar</goal>
147*8a52c783SCole Faust                        </goals>
148*8a52c783SCole Faust                    </execution>
149*8a52c783SCole Faust                </executions>
150*8a52c783SCole Faust                <configuration>
151*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>
152*8a52c783SCole Faust                    <failOnError>false</failOnError>
153*8a52c783SCole Faust                </configuration>
154*8a52c783SCole Faust            </plugin>
155*8a52c783SCole Faust        </plugins>
156*8a52c783SCole Faust    </build>
157*8a52c783SCole Faust</project>
158