Fix java-test-functions dependencies and packaging
java-test-functions should depend on pulsar-io-core (and pulsar-functions-api)
</dependency>
<dependency>
<groupId>org.apache.pulsar</groupId>
- <artifactId>pulsar-client</artifactId>
+ <artifactId>pulsar-functions-api</artifactId>
<version>${project.version}</version>
</dependency>
+ <!-- allow sinks to use native Avro and Json -->
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro</artifactId>
<version>${avro.version}</version>
+ <scope>provided</scope>
</dependency>
-
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
+ <scope>provided</scope>
</dependency>
</dependencies>
<packaging>jar</packaging>
<goal>shade</goal>
</goals>
<configuration>
- <!--Don't create dependency reduced pom. This causes maven to go into a infinite loop. May be a maven bug-->
- <createDependencyReducedPom>false</createDependencyReducedPom>>
- <transformers>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
- <transformer
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- </transformer>
- </transformers>
<artifactSet>
<includes>
- <include>org.apache.pulsar:pulsar-client</include>
<include>org.apache.pulsar:pulsar-functions-api-examples</include>
</includes>
</artifactSet>
