| <!-- |
| |
| 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/xsd/maven-4.0.0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-sql</artifactId> |
| <version>3.1.2</version> |
| </parent> |
| |
| <artifactId>pulsar-presto-connector-original</artifactId> |
| <description>Pulsar SQL - Pulsar Presto Connector</description> |
| <name>Pulsar SQL :: Pulsar Presto Connector Packaging</name> |
| |
| <properties> |
| <jctools.version>2.1.2</jctools.version> |
| <dslJson.verson>1.8.4</dslJson.verson> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>bootstrap</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>org.apache.logging.log4j</groupId> |
| <artifactId>log4j-to-slf4j</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>io.airlift</groupId> |
| <artifactId>json</artifactId> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.avro</groupId> |
| <artifactId>avro</artifactId> |
| <version>${avro.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-client-admin-original</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>managed-ledger</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.jctools</groupId> |
| <artifactId>jctools-core</artifactId> |
| <version>${jctools.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>com.dslplatform</groupId> |
| <artifactId>dsl-json</artifactId> |
| <version>${dslJson.verson}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.trino</groupId> |
| <artifactId>trino-plugin-toolkit</artifactId> |
| <version>${trino.version}</version> |
| </dependency> |
| |
| <!-- Presto SPI --> |
| <dependency> |
| <groupId>io.trino</groupId> |
| <artifactId>trino-spi</artifactId> |
| <version>${trino.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>joda-time</groupId> |
| <artifactId>joda-time</artifactId> |
| <version>${joda.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.trino</groupId> |
| <artifactId>trino-record-decoder</artifactId> |
| <version>${trino.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| <version>${javax.annotation-api.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.jsonwebtoken</groupId> |
| <artifactId>jjwt-impl</artifactId> |
| <version>${jsonwebtoken.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.trino</groupId> |
| <artifactId>trino-main</artifactId> |
| <version>${trino.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.trino</groupId> |
| <artifactId>trino-testing</artifactId> |
| <version>${trino.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-broker</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>testmocks</artifactId> |
| <version>${project.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.eclipse.jetty</groupId> |
| <artifactId>jetty-http</artifactId> |
| <version>${jetty.version}</version> |
| <scope>test</scope> |
| </dependency> |
| |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>${shadePluginPhase}</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| |
| <artifactSet> |
| <includes> |
| <include>org.apache.pulsar:pulsar-client-original</include> |
| <include>org.apache.pulsar:pulsar-client-admin-original</include> |
| <include>org.apache.pulsar:managed-ledger</include> |
| <include>org.apache.pulsar:pulsar-metadata</include> |
| |
| <include>org.glassfish.jersey*:*</include> |
| <include>javax.ws.rs:*</include> |
| <include>javax.annotation:*</include> |
| <include>org.glassfish.hk2*:*</include> |
| |
| <include>org.eclipse.jetty:*</include> |
| |
| </includes> |
| </artifactSet> |
| <filters> |
| <filter> |
| <artifact>org.apache.pulsar:pulsar-client-original</artifact> |
| <includes> |
| <include>**</include> |
| </includes> |
| <excludes> |
| <!-- bouncycastle jars could not be shaded, or the signatures will be wrong--> |
| <exclude>org/bouncycastle/**</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <relocations> |
| <relocation> |
| <pattern>org.glassfish</pattern> |
| <shadedPattern>org.apache.pulsar.shade.org.glassfish</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>javax.ws</pattern> |
| <shadedPattern>org.apache.pulsar.shade.javax.ws</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>javax.annotation</pattern> |
| <shadedPattern>org.apache.pulsar.shade.javax.annotation</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>jersey</pattern> |
| <shadedPattern>org.apache.pulsar.shade.jersey</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>org.eclipse.jetty</pattern> |
| <shadedPattern>org.apache.pulsar.shade.org.eclipse.jetty</shadedPattern> |
| </relocation> |
| |
| </relocations> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer" /> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <!-- enables builds with -Dmaven.test.skip=true --> |
| <id>test-jar-dependencies</id> |
| <activation> |
| <property> |
| <name>maven.test.skip</name> |
| <value>!true</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-broker</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |