Skip to content

Commit

Permalink
generate scala 2.12 and 2.13 jars; switch to use wget to get jars for…
Browse files Browse the repository at this point in the history
… examples
  • Loading branch information
elakito committed Dec 23, 2020
1 parent 1870ae5 commit d2ad19e
Show file tree
Hide file tree
Showing 29 changed files with 321 additions and 771 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and use the following command.
mvn clean install -DskipTests
```

which should produce the Kafka Connector jar file `kafka-connect-hana-n.n.jar` in the `target` folder, where `n.n` corresponds to the current version.
which should produce the Kafka Connector jar file `kafka-connector-hana_m-n.jar` in the `modules/scala_m/target` folder, where `m` corresponds to Scala binary version and `n` corresponds to the connector version.

**Include the Jdbc Jar**

Expand Down
4 changes: 2 additions & 2 deletions assembly/examples.xml → examples/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
</formats>
<fileSets>
<fileSet>
<directory>.</directory>
<directory>..</directory>
<outputDirectory>kafka-connector-hana-examples-${project.version}</outputDirectory>
<includes>
<include>LICENSE</include>
<include>NOTICE.txt</include>
</includes>
</fileSet>
<fileSet>
<directory>examples</directory>
<directory>.</directory>
<outputDirectory>kafka-connector-hana-examples-${project.version}</outputDirectory>
<includes>
<include>README.*</include>
Expand Down
4 changes: 3 additions & 1 deletion examples/persons1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#

DOCKER_TAG ?= latest
REPO_URL = https://repo1.maven.org/maven2

.PHONY: get_libs
get_libs:
@echo "Getting jar files into target ..."
@mvn install
@mkdir -p target
@while read -r line; do wget $(REPO_URL)/$$line -P target; done<libs.txt
1 change: 1 addition & 0 deletions examples/persons1/libs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com/sap/cloud/db/jdbc/ngdbc/2.5.49/ngdbc-2.5.49.jar
48 changes: 0 additions & 48 deletions examples/persons1/pom.xml

This file was deleted.

4 changes: 3 additions & 1 deletion examples/persons1db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#

DOCKER_TAG ?= latest
REPO_URL = https://repo1.maven.org/maven2

.PHONY: get_libs
get_libs:
@echo "Getting jar files into target ..."
@mvn install
@mkdir -p target
@while read -r line; do wget $(REPO_URL)/$$line -P target; done<libs.txt

.PHONY: docker_build
docker_build:
Expand Down
2 changes: 2 additions & 0 deletions examples/persons1db/libs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
com/google/guava/guava/29.0-jre/guava-29.0-jre.jar
com/sap/cloud/db/jdbc/ngdbc/2.5.49/ngdbc-2.5.49.jar
53 changes: 0 additions & 53 deletions examples/persons1db/pom.xml

This file was deleted.

4 changes: 3 additions & 1 deletion examples/persons1ds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#

DOCKER_TAG ?= latest
REPO_URL = https://repo1.maven.org/maven2

.PHONY: get_libs
get_libs:
@echo "Getting jar files into target ..."
@mvn install
@mkdir -p target
@while read -r line; do wget $(REPO_URL)/$$line -P target; done<libs.txt

.PHONY: docker_build
docker_build:
Expand Down
1 change: 1 addition & 0 deletions examples/persons1ds/libs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com/sap/cloud/db/jdbc/ngdbc/2.5.49/ngdbc-2.5.49.jar
48 changes: 0 additions & 48 deletions examples/persons1ds/pom.xml

This file was deleted.

5 changes: 4 additions & 1 deletion examples/persons3/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
#

DOCKER_TAG ?= latest
REPO_URL = https://repo1.maven.org/maven2

.PHONY: get_libs
get_libs:
@echo "Getting jar files into target ..."
@mvn install
@mkdir -p target
@while read -r line; do wget $(REPO_URL)/$$line -P target; done<libs.txt

24 changes: 24 additions & 0 deletions examples/persons3/libs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
com/sap/cloud/db/jdbc/ngdbc/2.5.49/ngdbc-2.5.49.jar
io/apicurio/apicurio-registry-client/1.2.3.Final/apicurio-registry-client-1.2.3.Final.jar
io/apicurio/apicurio-registry-common/1.2.3.Final/apicurio-registry-common-1.2.3.Final.jar
io/apicurio/apicurio-registry-utils-converter/1.2.3.Final/apicurio-registry-utils-converter-1.2.3.Final.jar
io/apicurio/apicurio-registry-utils-serde/1.2.3.Final/apicurio-registry-utils-serde-1.2.3.Final.jar
org/eclipse/yasson/1.0.3/yasson-1.0.3.jar
javax/interceptor/javax.interceptor-api/1.2/javax.interceptor-api-1.2.jar
jakarta/json/bind/jakarta.json.bind-api/1.0.2/jakarta.json.bind-api-1.0.2.jar
org/glassfish/jersey/media/jersey-media-json-binding/2.29.1/jersey-media-json-binding-2.29.1.jar
jakarta/json/jakarta.json-api/1.1.5/jakarta.json-api-1.1.5.jar
org/glassfish/jakarta.json/1.1.5/jakarta.json-1.1.5.jar
org/apache/avro/avro/1.9.2/avro-1.9.2.jar
javax/enterprise/cdi-api/2.0/cdi-api-2.0.jar
org/apache/geronimo/config/geronimo-config-impl/1.2.2/geronimo-config-impl-1.2.2.jar
org/glassfish/jersey/ext/cdi/jersey-cdi1x/2.29.1/jersey-cdi1x-2.29.1.jar
org/glassfish/jersey/core/jersey-client/2.29.1/jersey-client-2.29.1.jar
org/glassfish/jersey/core/jersey-common/2.29.1/jersey-common-2.29.1.jar
org/glassfish/jersey/inject/jersey-hk2/2.29.1/jersey-hk2-2.29.1.jar
org/glassfish/jersey/media/jersey-media-jaxb/2.29.1/jersey-media-jaxb-2.29.1.jar
org/glassfish/jersey/ext/microprofile/jersey-mp-config/2.29.1/jersey-mp-config-2.29.1.jar
org/glassfish/jersey/ext/microprofile/jersey-mp-rest-client/2.29.1/jersey-mp-rest-client-2.29.1.jar
org/glassfish/jersey/core/jersey-server/2.29.1/jersey-server-2.29.1.jar
org/eclipse/microprofile/config/microprofile-config-api/1.4/microprofile-config-api-1.4.jar
org/eclipse/microprofile/rest/client/microprofile-rest-client-api/1.4.0/microprofile-rest-client-api-1.4.0.jar
Loading

0 comments on commit d2ad19e

Please sign in to comment.