Skip to content

Commit

Permalink
Move JDBC drivers to a single location, fixes apache#2129
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Sep 24, 2023
1 parent d254db7 commit e370681
Show file tree
Hide file tree
Showing 130 changed files with 330 additions and 466 deletions.
12 changes: 12 additions & 0 deletions assemblies/client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-assemblies-libs-jdbc</artifactId>
<version>${project.version}</version>
<type>zip</type>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-engine-beam</artifactId>
Expand Down
10 changes: 10 additions & 0 deletions assemblies/client/src/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@
<useTransitiveDependencies>false</useTransitiveDependencies>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
<!-- hop lib jar files -->
<dependencySet>
<includes>
<include>org.apache.hop:hop-assemblies-libs-jdbc:zip</include>
</includes>
<unpack>true</unpack>
<outputDirectory>lib/jdbc</outputDirectory>
<useTransitiveDependencies>false</useTransitiveDependencies>
<useProjectArtifact>false</useProjectArtifact>
</dependencySet>
<!-- swt -->
<dependencySet>
<includes>
Expand Down
159 changes: 159 additions & 0 deletions assemblies/lib-jdbc/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
<?xml version="1.0" 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.
-->

<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>

<artifactId>hop-assemblies-libs-jdbc</artifactId>
<packaging>pom</packaging>

<name>Hop Assemblies Libraries JDBC</name>

<parent>
<artifactId>hop-assemblies</artifactId>
<groupId>org.apache.hop</groupId>
<version>2.7.0-SNAPSHOT</version>
</parent>

<properties>
<clickhouse.jdbc.version>0.4.6</clickhouse.jdbc.version>
<derby.version>10.16.1.1</derby.version>
<duckdb.version>0.8.1</duckdb.version>
<h2.version>2.2.224</h2.version>
<hyersonic.version>2.7.2</hyersonic.version>
<jt400.version>10.2</jt400.version>
<monetdb.version>3.3</monetdb.version>
<mssqlnative.version>12.4.1.jre11</mssqlnative.version>
<postgresql.version>42.6.0</postgresql.version>
<redshift.version>2.1.0.19</redshift.version>
<snowflake.jdbc.version>3.14.1</snowflake.jdbc.version>
<sqlite.version>3.43.0.0</sqlite.version>
<vertica.jdbc.version>23.3.0-0</vertica.jdbc.version>
</properties>

<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<dependency>
<groupId>net.sf.jt400</groupId>
<artifactId>jt400</artifactId>
<version>${jt400.version}</version>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>${clickhouse.jdbc.version}</version>
<!-- below is only needed when all you want is a shaded jar -->
<classifier>all</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>${derby.version}</version>
</dependency>
<dependency>
<groupId>org.duckdb</groupId>
<artifactId>duckdb_jdbc</artifactId>
<version>${duckdb.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>${hyersonic.version}</version>
</dependency>
<dependency>
<groupId>monetdb</groupId>
<artifactId>monetdb-jdbc</artifactId>
<version>${monetdb.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>${mssqlnative.version}</version>
</dependency>
<dependency>
<groupId>com.amazon.redshift</groupId>
<artifactId>redshift-jdbc42</artifactId>
<version>${redshift.version}</version>
</dependency>
<dependency>
<groupId>net.snowflake</groupId>
<artifactId>snowflake-jdbc</artifactId>
<version>${snowflake.jdbc.version}</version>
</dependency>
<dependency>
<groupId>org.xerial</groupId>
<artifactId>sqlite-jdbc</artifactId>
<version>${sqlite.version}</version>
</dependency>
<dependency>
<groupId>com.vertica.jdbc</groupId>
<artifactId>vertica-jdbc</artifactId>
<version>${vertica.jdbc.version}</version>
</dependency>
</dependencies>

<repositories>
<repository>
<id>clojars</id>
<url>https://clojars.org/repo/</url>
<name>Clojars</name>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
</repositories>

<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-libs</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeScope>compile</includeScope>
<outputDirectory>${assembly.dir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
33 changes: 33 additions & 0 deletions assemblies/lib-jdbc/src/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!--
~ 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.
~
-->

<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd">
<id>libs-jdbc</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>true</includeBaseDirectory>
<baseDirectory>.</baseDirectory>
<fileSets>
<fileSet>
<directory>${assembly.dir}</directory>
<outputDirectory>.</outputDirectory>
</fileSet>
</fileSets>
</assembly>
9 changes: 0 additions & 9 deletions assemblies/plugins/databases/as400-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,12 @@
<name>Hop Assemblies Plugins Databases AS400</name>
<description />

<properties>
<jt400.version>10.2</jt400.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-databases-as400</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>net.sf.jt400</groupId>
<artifactId>jt400</artifactId>
<version>${jt400.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,5 @@
<include>org.apache.hop:hop-databases-as400:jar</include>
</includes>
</dependencySet>
<dependencySet>
<includes>
<include>net.sf.jt400:jt400</include>
</includes>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
3 changes: 0 additions & 3 deletions assemblies/plugins/databases/cache-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
<name>Hop Assemblies Plugins Databases Cache</name>
<description />

<properties>
<cache.version>3.0.0</cache.version>
</properties>

<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
<outputDirectory>.</outputDirectory>
<filtered>true</filtered>
</file>
<file>
<source>${project.basedir}/src/main/resources/PUT_JDBC_HERE</source>
<outputDirectory>lib</outputDirectory>
<filtered>true</filtered>
</file>

</files>
<fileSets>
<fileSet>
Expand Down
Empty file.
17 changes: 0 additions & 17 deletions assemblies/plugins/databases/clickhouse-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,11 @@
<name>Hop Assemblies Plugins Databases ClickHouse</name>
<description />

<properties>
<clickhouse.jdbc.version>0.3.2-patch11</clickhouse.jdbc.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-databases-clickhouse</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>${clickhouse.jdbc.version}</version>
<!-- below is only needed when all you want is a shaded jar -->
<classifier>all</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,5 @@
<include>org.apache.hop:hop-databases-clickhouse:jar</include>
</includes>
</dependencySet>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<useProjectArtifact>false</useProjectArtifact>
<includes>
<include>com.clickhouse:clickhouse-jdbc:jar:all</include>
</includes>
</dependencySet>
</dependencySets>
</assembly>
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@
<outputDirectory>.</outputDirectory>
<filtered>true</filtered>
</file>
<file>
<source>${project.basedir}/src/main/resources/PUT_JDBC_HERE</source>
<outputDirectory>lib</outputDirectory>
<filtered>true</filtered>
</file>

</files>
<fileSets>
<fileSet>
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
<outputDirectory>.</outputDirectory>
<filtered>true</filtered>
</file>
<file>
<source>${project.basedir}/src/main/resources/PUT_JDBC_HERE</source>
<outputDirectory>lib</outputDirectory>
<filtered>true</filtered>
</file>

</files>
<fileSets>
<fileSet>
Expand Down
Empty file.
10 changes: 0 additions & 10 deletions assemblies/plugins/databases/derby-assemblies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,12 @@
<name>Hop Assemblies Plugins Databases Derby</name>
<description />

<properties>
<derby.version>10.15.1.3</derby.version>
</properties>


<dependencies>
<dependency>
<groupId>org.apache.hop</groupId>
<artifactId>hop-databases-derby</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>${derby.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,5 @@
<include>org.apache.hop:hop-databases-derby:jar</include>
</includes>
</dependencySet>
<dependencySet>
<includes>
<include>org.apache.derby:derbyclient:jar</include>
</includes>
<useProjectArtifact>false</useProjectArtifact>
<outputDirectory>lib</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
Loading

0 comments on commit e370681

Please sign in to comment.