Skip to content

Commit

Permalink
[DB-22] Consolidate DatabaseTable and ScriptedSQL connectors into a s…
Browse files Browse the repository at this point in the history
…ingle bundle (#5)
  • Loading branch information
ilgrosso authored Mar 21, 2023
1 parent 1807bc0 commit e0e97b5
Show file tree
Hide file tree
Showing 62 changed files with 5,560 additions and 228 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 1.8
distribution: 'zulu'
java-version: 8

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down
103 changes: 103 additions & 0 deletions bundle/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2011 ConnId. All rights reserved.
The contents of this file are subject to the terms of the Common Development
and Distribution License("CDDL") (the "License"). You may not use this file
except in compliance with the License.
You can obtain a copy of the License at
http://opensource.org/licenses/cddl1.php
See the License for the specific language governing permissions and limitations
under the License.
When distributing the Covered Code, include this CDDL Header Notice in each file
and include the License file at http://opensource.org/licenses/cddl1.php.
If applicable, add the following below this CDDL Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
====================
-->
<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>net.tirasa.connid.bundles.db</groupId>
<artifactId>db</artifactId>
<version>2.3.0-SNAPSHOT</version>
</parent>

<groupId>net.tirasa.connid.bundles.db</groupId>
<artifactId>net.tirasa.connid.bundles.db</artifactId>

<name>Bundles: DB: assembly</name>

<packaging>jar</packaging>

<properties>
<rootpom.basedir>${basedir}/..</rootpom.basedir>
</properties>

<dependencies>
<dependency>
<groupId>net.tirasa.connid.bundles.db</groupId>
<artifactId>table</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>net.tirasa.connid.bundles.db</groupId>
<artifactId>scriptedsql</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/assemble/connector.xml</descriptor>
</descriptors>
<archive>
<index>true</index>
<manifestEntries>
<ConnectorBundle-FrameworkVersion>${connid.version}</ConnectorBundle-FrameworkVersion>
<ConnectorBundle-Name>${project.artifactId}</ConnectorBundle-Name>
<ConnectorBundle-Version>${project.version}</ConnectorBundle-Version>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>

<resources>
<resource>
<directory>..</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>LICENSE</include>
</includes>
</resource>
</resources>
</build>
</project>
81 changes: 81 additions & 0 deletions commons/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
====================
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
Copyright 2011 ConnId. All rights reserved.
The contents of this file are subject to the terms of the Common Development
and Distribution License("CDDL") (the "License"). You may not use this file
except in compliance with the License.
You can obtain a copy of the License at
http://opensource.org/licenses/cddl1.php
See the License for the specific language governing permissions and limitations
under the License.
When distributing the Covered Code, include this CDDL Header Notice in each file
and include the License file at http://opensource.org/licenses/cddl1.php.
If applicable, add the following below this CDDL Header, with the fields
enclosed by brackets [] replaced by your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"
====================
-->
<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>net.tirasa.connid.bundles.db</groupId>
<artifactId>db</artifactId>
<version>2.3.0-SNAPSHOT</version>
</parent>

<groupId>net.tirasa.connid.bundles.db</groupId>
<artifactId>commons</artifactId>

<name>Bundles: DB: commons</name>

<packaging>jar</packaging>

<properties>
<rootpom.basedir>${basedir}/..</rootpom.basedir>
</properties>

<dependencies>
<dependency>
<groupId>net.tirasa.connid</groupId>
<artifactId>connector-framework</artifactId>
</dependency>

<dependency>
<groupId>net.tirasa.connid</groupId>
<artifactId>connector-framework-internal</artifactId>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<directory>${rootpom.basedir}</directory>
<targetPath>META-INF</targetPath>
<includes>
<include>LICENSE</include>
<include>NOTICE</include>
</includes>
</resource>
</resources>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/*
* ====================
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2016 Tirasa. All rights reserved.
*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License("CDDL") (the "License"). You may not use this file
* except in compliance with the License.
*
* You can obtain a copy of the License at
* http://opensource.org/licenses/cddl1.php
* See the License for the specific language governing permissions and limitations
* under the License.
*
* When distributing the Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://opensource.org/licenses/cddl1.php.
* If applicable, add the following below this CDDL Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
*/
package net.tirasa.connid.bundles.db.commons;

public final class Constants {

public static final String MSG_JDBC_TEMPLATE_BLANK = "jdbc.template.blank";

public static final String MSG_USER_BLANK = "admin.user.blank";

public static final String MSG_PASSWORD_BLANK = "admin.password.blank";

public static final String MSG_HOST_BLANK = "host.blank";

public static final String MSG_PORT_BLANK = "port.blank";

public static final String MSG_DATABASE_BLANK = "database.blank";

public static final String MSG_JDBC_DRIVER_BLANK = "jdbc.driver.blank";

public static final String MSG_JDBC_DRIVER_NOT_FOUND = "jdbc.driver.not.found";

public static final String MSG_ACCOUNT_OBJECT_CLASS_REQUIRED = "acount.object.class.required";

public static final String MSG_INVALID_ATTRIBUTE_SET = "invalid.attribute.set";

public static final String MSG_UID_BLANK = "uid.blank";

public static final String MSG_RESULT_HANDLER_NULL = "result.handler.null";

private Constants() {
// private constructor for static utility class
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* ====================
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008-2009 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common Development
* and Distribution License("CDDL") (the "License"). You may not use this file
* except in compliance with the License.
*
* You can obtain a copy of the License at
* http://opensource.org/licenses/cddl1.php
* See the License for the specific language governing permissions and limitations
* under the License.
*
* When distributing the Covered Code, include this CDDL Header Notice in each file
* and include the License file at http://opensource.org/licenses/cddl1.php.
* If applicable, add the following below this CDDL Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
* ====================
* Portions Copyrighted 2011 ConnId.
*/
package net.tirasa.connid.bundles.db.commons;

abstract class DBMessages {

static final String ASSERT_NULL = "assert.null";

static final String ASSERT_NOT_NULL = "assert.notNull";

static final String ASSERT_BLANK = "assert.blank";

static final String ASSERT_NOT_BLANK = "assert.notBlank";

}
Loading

0 comments on commit e0e97b5

Please sign in to comment.