This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push: new 585ea13 Move pulsar functions dependency version to root pom and remove duplicated license headers (#1324) 585ea13 is described below commit 585ea13e288a9290b3b80af0324f73cf47d9e4de Author: Sijie Guo <guosi...@gmail.com> AuthorDate: Sun Mar 4 16:43:03 2018 -0800 Move pulsar functions dependency version to root pom and remove duplicated license headers (#1324) This addresses some comments in pulsar functions PR #1314 --- pom.xml | 37 +++++ pulsar-client/pom.xml | 1 - pulsar-functions/api-java/pom.xml | 1 - pulsar-functions/cli/pom.xml | 6 - .../org/apache/pulsar/admin/cli/CmdFunctions.java | 2 +- .../org/apache/pulsar/admin/cli/FunctionsTool.java | 3 +- .../pulsar/client/admin/PulsarFunctionsAdmin.java | 7 +- .../apache/pulsar/admin/cli/CmdFunctionsTest.java | 3 +- pulsar-functions/instance/pom.xml | 139 +----------------- .../instance/src/main/python/contextimpl.py | 17 --- pulsar-functions/instance/src/main/python/log.py | 17 --- .../instance/src/main/python/python_instance.py | 17 --- .../src/main/python/python_instance_main.py | 17 --- .../instance/src/main/python/server.py | 17 --- pulsar-functions/instance/src/main/python/util.py | 17 --- pulsar-functions/metrics/pom.xml | 56 ------- pulsar-functions/proto/pom.xml | 7 +- pulsar-functions/runtime/pom.xml | 163 --------------------- pulsar-functions/utils/pom.xml | 21 --- pulsar-functions/worker/pom.xml | 32 ---- 20 files changed, 55 insertions(+), 525 deletions(-) diff --git a/pom.xml b/pom.xml index c2c10d1..e44b2b5 100644 --- a/pom.xml +++ b/pom.xml @@ -129,6 +129,12 @@ flexible messaging model and an intuitive client API.</description> <jackson.version>2.8.4</jackson.version> <puppycrawl.checkstyle.version>6.19</puppycrawl.checkstyle.version> <dockerfile-maven.version>1.3.7</dockerfile-maven.version> + <typetools.version>0.5.0</typetools.version> + <protobuf3.version>3.5.1</protobuf3.version> + <grpc.version>1.5.0</grpc.version> + <protoc-gen-grpc-java.version>1.0.0</protoc-gen-grpc-java.version> + <gson.version>2.8.2</gson.version> + <sketches.version>0.6.0</sketches.version> <!-- test dependencies --> <disruptor.version>3.4.0</disruptor.version> @@ -619,6 +625,37 @@ flexible messaging model and an intuitive client API.</description> <version>${bouncycastle.version}</version> </dependency> + <dependency> + <groupId>net.jodah</groupId> + <artifactId>typetools</artifactId> + <version>${typetools.version}</version> + </dependency> + + <dependency> + <groupId>io.grpc</groupId> + <artifactId>grpc-all</artifactId> + <version>${grpc.version}</version> + </dependency> + + <dependency> + <groupId>com.google.code.gson</groupId> + <artifactId>gson</artifactId> + <version>${gson.version}</version> + </dependency> + + <dependency> + <groupId>com.yahoo.datasketches</groupId> + <artifactId>sketches-core</artifactId> + <version>${sketches.version}</version> + </dependency> + + <!-- use shaded dependency util pulsar bump zookeeper version to 3.5 --> + <dependency> + <groupId>org.apache.distributedlog</groupId> + <artifactId>distributedlog-core-shaded</artifactId> + <version>${bookkeeper.version}</version> + </dependency> + <!-- test dependencies --> <dependency> <groupId>com.lmax</groupId> diff --git a/pulsar-client/pom.xml b/pulsar-client/pom.xml index 3ab403f..267c5e7 100644 --- a/pulsar-client/pom.xml +++ b/pulsar-client/pom.xml @@ -62,7 +62,6 @@ <dependency> <groupId>com.yahoo.datasketches</groupId> <artifactId>sketches-core</artifactId> - <version>0.6.0 </version> </dependency> <dependency> diff --git a/pulsar-functions/api-java/pom.xml b/pulsar-functions/api-java/pom.xml index 9d47ee3..480d19a 100644 --- a/pulsar-functions/api-java/pom.xml +++ b/pulsar-functions/api-java/pom.xml @@ -40,7 +40,6 @@ <dependency> <groupId>net.jodah</groupId> <artifactId>typetools</artifactId> - <version>0.5.0</version> <scope>test</scope> </dependency> diff --git a/pulsar-functions/cli/pom.xml b/pulsar-functions/cli/pom.xml index 5e8f76b..b22a502 100644 --- a/pulsar-functions/cli/pom.xml +++ b/pulsar-functions/cli/pom.xml @@ -54,12 +54,6 @@ </dependency> <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>pulsar-client-tools-shaded</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> <groupId>org.glassfish.jersey.media</groupId> <artifactId>jersey-media-json-jackson</artifactId> </dependency> diff --git a/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java b/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java index f31135e..97fbf7b 100644 --- a/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java +++ b/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/CmdFunctions.java @@ -451,7 +451,7 @@ public class CmdFunctions extends CmdBase { throw new RuntimeException("Missing arguments"); } - String serviceUrl = ((PulsarFunctionsAdmin) admin).getClientConf().getConfigurationData().getServiceUrl(); + String serviceUrl = ((PulsarFunctionsAdmin) admin).getClientConf().getServiceUrl(); if (brokerServiceUrl != null) { serviceUrl = brokerServiceUrl; } diff --git a/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/FunctionsTool.java b/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/FunctionsTool.java index 9924330..f3eeaee 100644 --- a/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/FunctionsTool.java +++ b/pulsar-functions/cli/src/main/java/org/apache/pulsar/admin/cli/FunctionsTool.java @@ -28,6 +28,7 @@ import java.io.FileInputStream; import java.util.Arrays; import java.util.Properties; import org.apache.pulsar.client.api.ClientConfiguration; +import org.apache.pulsar.client.impl.conf.ClientConfigurationData; /** * TODO: merge this into {@link PulsarAdminTool}. @@ -73,7 +74,7 @@ public class FunctionsTool extends PulsarAdminTool { isLocalRun = "localrun" == args[cmdPos].toLowerCase(); } - BiFunction<URL, ClientConfiguration, ? extends PulsarAdmin> adminFactory; + BiFunction<URL, ClientConfigurationData, ? extends PulsarAdmin> adminFactory; if (isLocalRun) { // bypass constructing admin client adminFactory = (url, config) -> null; diff --git a/pulsar-functions/cli/src/main/java/org/apache/pulsar/client/admin/PulsarFunctionsAdmin.java b/pulsar-functions/cli/src/main/java/org/apache/pulsar/client/admin/PulsarFunctionsAdmin.java index f35473c..43ede46 100644 --- a/pulsar-functions/cli/src/main/java/org/apache/pulsar/client/admin/PulsarFunctionsAdmin.java +++ b/pulsar-functions/cli/src/main/java/org/apache/pulsar/client/admin/PulsarFunctionsAdmin.java @@ -21,6 +21,7 @@ package org.apache.pulsar.client.admin; import org.apache.pulsar.client.admin.internal.FunctionsImpl; import org.apache.pulsar.client.api.*; +import org.apache.pulsar.client.impl.conf.ClientConfigurationData; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -34,7 +35,7 @@ public class PulsarFunctionsAdmin extends PulsarAdmin { private static final Logger LOG = LoggerFactory.getLogger(PulsarFunctionsAdmin.class); private final Functions functions; - private final ClientConfiguration clientConf; + private final ClientConfigurationData clientConf; /** * Construct a new Pulsar Admin client object. @@ -46,13 +47,13 @@ public class PulsarFunctionsAdmin extends PulsarAdmin { * @param pulsarConfig * the ClientConfiguration object to be used to talk with Pulsar */ - public PulsarFunctionsAdmin(URL serviceUrl, ClientConfiguration pulsarConfig) throws PulsarClientException { + public PulsarFunctionsAdmin(URL serviceUrl, ClientConfigurationData pulsarConfig) throws PulsarClientException { super(serviceUrl, pulsarConfig); this.functions = new FunctionsImpl(web, auth); this.clientConf = pulsarConfig; } - public ClientConfiguration getClientConf() { + public ClientConfigurationData getClientConf() { return clientConf; } diff --git a/pulsar-functions/cli/src/test/java/org/apache/pulsar/admin/cli/CmdFunctionsTest.java b/pulsar-functions/cli/src/test/java/org/apache/pulsar/admin/cli/CmdFunctionsTest.java index ef807f7..5f390f8 100644 --- a/pulsar-functions/cli/src/test/java/org/apache/pulsar/admin/cli/CmdFunctionsTest.java +++ b/pulsar-functions/cli/src/test/java/org/apache/pulsar/admin/cli/CmdFunctionsTest.java @@ -54,6 +54,7 @@ import org.apache.pulsar.admin.cli.CmdFunctions.UpdateFunction; import org.apache.pulsar.client.admin.Functions; import org.apache.pulsar.client.admin.PulsarFunctionsAdmin; import org.apache.pulsar.client.api.ClientConfiguration; +import org.apache.pulsar.client.impl.conf.ClientConfigurationData; import org.apache.pulsar.functions.api.Context; import org.apache.pulsar.functions.api.PulsarFunction; import org.apache.pulsar.functions.api.utils.DefaultSerDe; @@ -104,7 +105,7 @@ public class CmdFunctionsTest { this.functions = mock(Functions.class); when(admin.functions()).thenReturn(functions); when(admin.getServiceUrl()).thenReturn(URI.create("http://localhost:1234").toURL()); - when(admin.getClientConf()).thenReturn(new ClientConfiguration()); + when(admin.getClientConf()).thenReturn(new ClientConfigurationData()); this.cmd = new CmdFunctions(admin); // mock reflections diff --git a/pulsar-functions/instance/pom.xml b/pulsar-functions/instance/pom.xml index e0bcb53..fb45cdf 100644 --- a/pulsar-functions/instance/pom.xml +++ b/pulsar-functions/instance/pom.xml @@ -53,136 +53,11 @@ <dependency> <groupId>${project.groupId}</groupId> - <artifactId>pulsar-client-tools-shaded</artifactId> - <version>${project.version}</version> - <!-- exclude shaded dependencies to avoid conflicts --> - <exclusions> - <exclusion> - <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - </exclusion> - <exclusion> - <groupId>commons-codec</groupId> - <artifactId>commons-codec</artifactId> - </exclusion> - <exclusion> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - </exclusion> - <exclusion> - <groupId>org.asynchttpclient</groupId> - <artifactId>async-http-client</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-codec-http</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-tcnative-boringssl-static</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-transport-native-epoll</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.code.gson</groupId> - <artifactId>gson</artifactId> - </exclusion> - <exclusion> - <groupId>net.jpountz.lz4</groupId> - <artifactId>lz4</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcomponents-core</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcomponents-client</artifactId> - </exclusion> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - <exclusion> - <groupId>com.yahoo.datasketches</groupId> - <artifactId>sketches-core</artifactId> - </exclusion> - </exclusions> - </dependency> - - <dependency> - <groupId>org.apache.pulsar</groupId> - <artifactId>pulsar-functions-proto</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>pulsar-functions-api</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> <artifactId>pulsar-functions-utils</artifactId> <version>${project.version}</version> </dependency> - <dependency> - <groupId>com.fasterxml.jackson.dataformat</groupId> - <artifactId>jackson-dataformat-yaml</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.google.code.gson</groupId> - <artifactId>gson</artifactId> - <version>${gson.version}</version> - </dependency> - - - <dependency> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - <version>3.5.1</version> - </dependency> - - <dependency> - <groupId>io.grpc</groupId> - <artifactId>grpc-all</artifactId> - <version>1.5.0</version> - </dependency> - + <!-- update this when bookkeeper produces a snapshot version --> <dependency> <groupId>org.apache.bookkeeper</groupId> <artifactId>stream-storage-java-client</artifactId> @@ -190,15 +65,8 @@ </dependency> <dependency> - <groupId>net.jodah</groupId> - <artifactId>typetools</artifactId> - <version>0.5.0</version> - </dependency> - - <dependency> <groupId>com.yahoo.datasketches</groupId> <artifactId>sketches-core</artifactId> - <version>0.6.0 </version> </dependency> <dependency> @@ -211,6 +79,11 @@ <artifactId>jcommander</artifactId> </dependency> + <dependency> + <groupId>net.jodah</groupId> + <artifactId>typetools</artifactId> + </dependency> + </dependencies> <!-- current the stream storage artifacts are hosted at streamlio. will give rid of this once it is proposed to merge to bookkeeper --> diff --git a/pulsar-functions/instance/src/main/python/contextimpl.py b/pulsar-functions/instance/src/main/python/contextimpl.py index 9218407..b021421 100644 --- a/pulsar-functions/instance/src/main/python/contextimpl.py +++ b/pulsar-functions/instance/src/main/python/contextimpl.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# """contextimpl.py: ContextImpl class that implements the Context interface """ diff --git a/pulsar-functions/instance/src/main/python/log.py b/pulsar-functions/instance/src/main/python/log.py index 3838b60..f36e684 100644 --- a/pulsar-functions/instance/src/main/python/log.py +++ b/pulsar-functions/instance/src/main/python/log.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# ''' log.py ''' import logging from logging.handlers import RotatingFileHandler diff --git a/pulsar-functions/instance/src/main/python/python_instance.py b/pulsar-functions/instance/src/main/python/python_instance.py index ed5f573..08fcef5 100644 --- a/pulsar-functions/instance/src/main/python/python_instance.py +++ b/pulsar-functions/instance/src/main/python/python_instance.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# """python_instance.py: Python Instance for running python functions """ import os diff --git a/pulsar-functions/instance/src/main/python/python_instance_main.py b/pulsar-functions/instance/src/main/python/python_instance_main.py index 9d4159d..3fd4358 100644 --- a/pulsar-functions/instance/src/main/python/python_instance_main.py +++ b/pulsar-functions/instance/src/main/python/python_instance_main.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# """python_instance_main.py: The main for the Python Instance """ import argparse diff --git a/pulsar-functions/instance/src/main/python/server.py b/pulsar-functions/instance/src/main/python/server.py index 816d5b7..3fe7bd4 100644 --- a/pulsar-functions/instance/src/main/python/server.py +++ b/pulsar-functions/instance/src/main/python/server.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# """python_instance.py: Python Instance for running python functions """ from concurrent import futures diff --git a/pulsar-functions/instance/src/main/python/util.py b/pulsar-functions/instance/src/main/python/util.py index 439f648..efa238d 100644 --- a/pulsar-functions/instance/src/main/python/util.py +++ b/pulsar-functions/instance/src/main/python/util.py @@ -20,23 +20,6 @@ # -*- encoding: utf-8 -*- -# 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. -# """util.py: Some misc utility functions """ import os diff --git a/pulsar-functions/metrics/pom.xml b/pulsar-functions/metrics/pom.xml index 6c890a3..421b4ec 100644 --- a/pulsar-functions/metrics/pom.xml +++ b/pulsar-functions/metrics/pom.xml @@ -22,10 +22,6 @@ 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> - <properties> - <gson.version>2.8.2</gson.version> - </properties> - <parent> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-functions</artifactId> @@ -37,20 +33,6 @@ <dependencies> - <!-- logging --> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-slf4j-impl</artifactId> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-core</artifactId> - </dependency> - <dependency> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-functions-proto</artifactId> @@ -63,44 +45,6 @@ <version>${project.version}</version> </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.dataformat</groupId> - <artifactId>jackson-dataformat-yaml</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - <version>${jackson.version}</version> - </dependency> - - <dependency> - <groupId>com.google.code.gson</groupId> - <artifactId>gson</artifactId> - <version>${gson.version}</version> - </dependency> - - - <dependency> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - <version>3.5.1</version> - </dependency> - - <dependency> - <groupId>net.jodah</groupId> - <artifactId>typetools</artifactId> - <version>0.5.0</version> - </dependency> - </dependencies> </project> diff --git a/pulsar-functions/proto/pom.xml b/pulsar-functions/proto/pom.xml index 03b1902..9bae8b5 100644 --- a/pulsar-functions/proto/pom.xml +++ b/pulsar-functions/proto/pom.xml @@ -38,13 +38,12 @@ <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> - <version>3.5.1</version> + <version>${protobuf3.version}</version> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-all</artifactId> - <version>1.5.0</version> </dependency> </dependencies> @@ -62,10 +61,10 @@ <artifactId>protobuf-maven-plugin</artifactId> <version>0.5.0</version> <configuration> - <protocArtifact>com.google.protobuf:protoc:3.5.1:exe:${os.detected.classifier}</protocArtifact> + <protocArtifact>com.google.protobuf:protoc:${protobuf3.version}:exe:${os.detected.classifier}</protocArtifact> <checkStaleness>true</checkStaleness> <pluginId>grpc-java</pluginId> - <pluginArtifact>io.grpc:protoc-gen-grpc-java:1.0.0:exe:${os.detected.classifier}</pluginArtifact> + <pluginArtifact>io.grpc:protoc-gen-grpc-java:${protoc-gen-grpc-java.version}:exe:${os.detected.classifier}</pluginArtifact> </configuration> <executions> <execution> diff --git a/pulsar-functions/runtime/pom.xml b/pulsar-functions/runtime/pom.xml index 4a49162..dc236b6 100644 --- a/pulsar-functions/runtime/pom.xml +++ b/pulsar-functions/runtime/pom.xml @@ -22,10 +22,6 @@ 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> - <properties> - <gson.version>2.8.2</gson.version> - </properties> - <parent> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-functions</artifactId> @@ -37,109 +33,6 @@ <dependencies> - <!-- logging --> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-slf4j-impl</artifactId> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-api</artifactId> - </dependency> - <dependency> - <groupId>org.apache.logging.log4j</groupId> - <artifactId>log4j-core</artifactId> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>pulsar-client-tools-shaded</artifactId> - <version>${project.version}</version> - <!-- exclude shaded dependencies to avoid conflicts --> - <exclusions> - <exclusion> - <groupId>org.apache.commons</groupId> - <artifactId>commons-lang3</artifactId> - </exclusion> - <exclusion> - <groupId>commons-codec</groupId> - <artifactId>commons-codec</artifactId> - </exclusion> - <exclusion> - <groupId>commons-collections</groupId> - <artifactId>commons-collections</artifactId> - </exclusion> - <exclusion> - <groupId>org.asynchttpclient</groupId> - <artifactId>async-http-client</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-all</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-codec-http</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-tcnative-boringssl-static</artifactId> - </exclusion> - <exclusion> - <groupId>io.netty</groupId> - <artifactId>netty-transport-native-epoll</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - </exclusion> - <exclusion> - <groupId>com.google.code.gson</groupId> - <artifactId>gson</artifactId> - </exclusion> - <exclusion> - <groupId>net.jpountz.lz4</groupId> - <artifactId>lz4</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcomponents-core</artifactId> - </exclusion> - <exclusion> - <groupId>org.apache.httpcomponents</groupId> - <artifactId>httpcomponents-client</artifactId> - </exclusion> - <exclusion> - <groupId>commons-logging</groupId> - <artifactId>commons-logging</artifactId> - </exclusion> - <exclusion> - <groupId>com.yahoo.datasketches</groupId> - <artifactId>sketches-core</artifactId> - </exclusion> - </exclusions> - </dependency> - - <dependency> - <groupId>org.apache.pulsar</groupId> - <artifactId>pulsar-functions-proto</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>pulsar-functions-api</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-functions-instance</artifactId> @@ -152,62 +45,6 @@ <version>${project.version}</version> </dependency> - <dependency> - <groupId>com.fasterxml.jackson.dataformat</groupId> - <artifactId>jackson-dataformat-yaml</artifactId> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-annotations</artifactId> - </dependency> - - <dependency> - <groupId>com.fasterxml.jackson.core</groupId> - <artifactId>jackson-databind</artifactId> - </dependency> - - <dependency> - <groupId>com.google.code.gson</groupId> - <artifactId>gson</artifactId> - <version>${gson.version}</version> - </dependency> - - - <dependency> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - <version>3.5.1</version> - </dependency> - - <dependency> - <groupId>io.grpc</groupId> - <artifactId>grpc-all</artifactId> - <version>1.5.0</version> - </dependency> - - <dependency> - <groupId>net.jodah</groupId> - <artifactId>typetools</artifactId> - <version>0.5.0</version> - </dependency> - - <dependency> - <groupId>com.yahoo.datasketches</groupId> - <artifactId>sketches-core</artifactId> - <version>0.6.0 </version> - </dependency> - - <dependency> - <groupId>com.google.guava</groupId> - <artifactId>guava</artifactId> - </dependency> - - <dependency> - <groupId>com.beust</groupId> - <artifactId>jcommander</artifactId> - </dependency> - </dependencies> <build> diff --git a/pulsar-functions/utils/pom.xml b/pulsar-functions/utils/pom.xml index 0568d5c..b71931d 100644 --- a/pulsar-functions/utils/pom.xml +++ b/pulsar-functions/utils/pom.xml @@ -22,10 +22,6 @@ 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> - <properties> - <gson.version>2.8.2</gson.version> - </properties> - <parent> <groupId>org.apache.pulsar</groupId> <artifactId>pulsar-functions</artifactId> @@ -143,38 +139,21 @@ <dependency> <groupId>com.fasterxml.jackson.dataformat</groupId> <artifactId>jackson-dataformat-yaml</artifactId> - <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> - <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> - <version>${jackson.version}</version> </dependency> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> - <version>${gson.version}</version> - </dependency> - - - <dependency> - <groupId>com.google.protobuf</groupId> - <artifactId>protobuf-java</artifactId> - <version>3.5.1</version> - </dependency> - - <dependency> - <groupId>net.jodah</groupId> - <artifactId>typetools</artifactId> - <version>0.5.0</version> </dependency> </dependencies> diff --git a/pulsar-functions/worker/pom.xml b/pulsar-functions/worker/pom.xml index b653304..24f690f 100644 --- a/pulsar-functions/worker/pom.xml +++ b/pulsar-functions/worker/pom.xml @@ -39,42 +39,22 @@ <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> </dependency> - <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> </dependency> - <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> </dependency> <dependency> - <groupId>org.apache.pulsar</groupId> - <artifactId>pulsar-client-tools-shaded</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> <groupId>${project.groupId}</groupId> <artifactId>pulsar-functions-runtime</artifactId> <version>${project.version}</version> </dependency> <dependency> - <groupId>org.apache.pulsar</groupId> - <artifactId>pulsar-functions-proto</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>${project.groupId}</groupId> - <artifactId>pulsar-functions-metrics</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> <groupId>org.glassfish.jersey.media</groupId> <artifactId>jersey-media-json-jackson</artifactId> </dependency> @@ -109,22 +89,10 @@ <artifactId>jetty-servlet</artifactId> </dependency> - <dependency> - <groupId>com.beust</groupId> - <artifactId>jcommander</artifactId> - </dependency> - - <dependency> - <groupId>org.inferred</groupId> - <artifactId>freebuilder</artifactId> - <version>1.14.6</version> - </dependency> - <!-- use shaded dependency util pulsar bump zookeeper version to 3.5 --> <dependency> <groupId>org.apache.distributedlog</groupId> <artifactId>distributedlog-core-shaded</artifactId> - <version>${bookkeeper.version}</version> </dependency> </dependencies> -- To stop receiving notification emails like this one, please contact si...@apache.org.