Skip to content

Commit 231e72d

Browse files
committed
Initial setup
1 parent b1cced3 commit 231e72d

22 files changed

+2217
-9
lines changed

.github/workflows/maven-ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build & Test with Maven
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 17
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '17'
23+
distribution: 'temurin'
24+
25+
- name: Cache Maven packages
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/.m2/repository
29+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
restore-keys: |
31+
${{ runner.os }}-maven-
32+
33+
- name: Run Tests with Maven
34+
run: mvn -B verify --file pom.xml
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Maven Central Repository
11+
uses: actions/setup-java@v4
12+
with:
13+
java-version: '17'
14+
distribution: 'temurin'
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
- name: Publish package
19+
run: mvn -B deploy --file pom.xml
20+
env:
21+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
22+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.gitignore

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Compiled class file
2+
*.class
3+
4+
# Log file
5+
*.log
6+
7+
# BlueJ files
8+
*.ctxt
9+
10+
# Mobile Tools for Java (J2ME)
11+
.mtj.tmp/
12+
13+
# Package Files #
14+
*.jar
15+
*.war
16+
*.nar
17+
*.ear
18+
*.zip
19+
*.tar.gz
20+
*.rar
21+
target/
22+
23+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
24+
hs_err_pid*
25+
replay_pid*
26+
27+
#Maven
28+
pom.xml.tag
29+
pom.xml.releaseBackup
30+
pom.xml.versionsBackup
31+
release.properties
32+
.flattened-pom.xml
33+
34+
# Eclipse
35+
.project
36+
.classpath
37+
.settings/
38+
bin/
39+
40+
# IntelliJ
41+
.idea
42+
*.ipr
43+
*.iml
44+
*.iws
45+
46+
# NetBeans
47+
nb-configuration.xml
48+
49+
# Visual Studio Code
50+
.vscode
51+
.factorypath
52+
53+
# OSX
54+
.DS_Store
55+
56+
# Vim
57+
*.swp
58+
*.swo
59+
60+
# patch
61+
*.orig
62+
*.rej
63+
64+
# Local environment
65+
.env
66+
67+
# TLS Certificates
68+
.certs/

LICENSE

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
MIT License
2-
3-
Copyright (c) 2025 aaa - all about apps GmbH
1+
The MIT License (MIT)
2+
Copyright (c) 2025 aaa – all about apps GmbH | Clemens Probst and the "integresql-client-java" project contributors
43

54
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
5+
of this software and associated documentation files (the Software), to deal
76
in the Software without restriction, including without limitation the rights
87
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
98
copies of the Software, and to permit persons to whom the Software is
109
furnished to do so, subject to the following conditions:
1110

12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
1413

15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1615
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1716
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1817
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1918
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# integresql-client-java

pom.xml

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>at.allaboutapps.integresql</groupId>
7+
<artifactId>integresql-java-client</artifactId>
8+
<description>A Java client library for interacting with an IntegreSQL server.</description>
9+
<version>1.0-SNAPSHOT</version>
10+
<name>${project.groupId}:${project.artifactId}</name>
11+
<url>https://github.com/allaboutapps/integresql-client-java</url>
12+
13+
<properties>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<maven.compiler.release>17</maven.compiler.release>
16+
<jackson.version>2.18.3</jackson.version>
17+
<assertj.version>3.27.3</assertj.version>
18+
<jackson-databind.version>2.18.3</jackson-databind.version>
19+
<slf4j.version>2.0.17</slf4j.version>
20+
<testcontainers.version>1.20.6</testcontainers.version>
21+
<postgresql.version>42.7.4</postgresql.version>
22+
</properties>
23+
24+
<developers>
25+
<developer>
26+
<name>Clemens Probst</name>
27+
<email>[email protected]</email>
28+
<organization>aaa – all about apps GmbH</organization>
29+
<organizationUrl>http://www.allaboutapps.at</organizationUrl>
30+
</developer>
31+
</developers>
32+
33+
<scm>
34+
<connection>scm:git:git://github.com/allaboutapps/integresql-client-java.git</connection>
35+
<developerConnection>scm:git:ssh://github.com:allaboutapps/integresql-client-java.git</developerConnection>
36+
<url>http://github.com/allaboutapps/integresql-client-java/tree/master</url>
37+
</scm>
38+
39+
<licenses>
40+
<license>
41+
<name>MIT License</name>
42+
<url>http://www.opensource.org/licenses/mit-license.php</url>
43+
</license>
44+
</licenses>
45+
46+
<distributionManagement>
47+
<snapshotRepository>
48+
<id>ossrh</id>
49+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
50+
</snapshotRepository>
51+
<repository>
52+
<id>ossrh</id>
53+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54+
</repository>
55+
</distributionManagement>
56+
57+
<dependencyManagement>
58+
<dependencies>
59+
<dependency>
60+
<groupId>org.junit</groupId>
61+
<artifactId>junit-bom</artifactId>
62+
<version>5.11.0</version>
63+
<type>pom</type>
64+
<scope>import</scope>
65+
</dependency>
66+
</dependencies>
67+
</dependencyManagement>
68+
69+
<dependencies>
70+
<dependency>
71+
<groupId>org.junit.jupiter</groupId>
72+
<artifactId>junit-jupiter-api</artifactId>
73+
<scope>test</scope>
74+
</dependency>
75+
<dependency>
76+
<groupId>org.junit.jupiter</groupId>
77+
<artifactId>junit-jupiter-params</artifactId>
78+
<scope>test</scope>
79+
</dependency>
80+
<dependency>
81+
<groupId>com.fasterxml.jackson.core</groupId>
82+
<artifactId>jackson-annotations</artifactId>
83+
<version>${jackson.version}</version>
84+
</dependency>
85+
<dependency>
86+
<groupId>org.junit.jupiter</groupId>
87+
<artifactId>junit-jupiter-engine</artifactId>
88+
<scope>test</scope>
89+
</dependency>
90+
<dependency>
91+
<groupId>org.assertj</groupId>
92+
<artifactId>assertj-core</artifactId>
93+
<version>${assertj.version}</version>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>com.fasterxml.jackson.core</groupId>
98+
<artifactId>jackson-databind</artifactId>
99+
<version>${jackson-databind.version}</version>
100+
</dependency>
101+
<dependency>
102+
<groupId>org.testcontainers</groupId>
103+
<artifactId>testcontainers</artifactId>
104+
<version>${testcontainers.version}</version>
105+
<scope>test</scope>
106+
</dependency>
107+
<dependency>
108+
<groupId>org.testcontainers</groupId>
109+
<artifactId>junit-jupiter</artifactId>
110+
<version>${testcontainers.version}</version>
111+
<scope>test</scope>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.slf4j</groupId>
115+
<artifactId>slf4j-api</artifactId>
116+
<version>${slf4j.version}</version>
117+
<scope>test</scope> </dependency>
118+
<dependency>
119+
<groupId>org.slf4j</groupId>
120+
<artifactId>slf4j-simple</artifactId>
121+
<version>${slf4j.version}</version>
122+
<scope>test</scope>
123+
</dependency>
124+
<dependency>
125+
<groupId>org.postgresql</groupId>
126+
<artifactId>postgresql</artifactId>
127+
<version>${postgresql.version}</version>
128+
<scope>test</scope> </dependency>
129+
<dependency>
130+
<groupId>org.testcontainers</groupId>
131+
<artifactId>postgresql</artifactId>
132+
<version>${testcontainers.version}</version>
133+
<scope>test</scope>
134+
</dependency>
135+
</dependencies>
136+
137+
<build>
138+
<pluginManagement>
139+
<plugins>
140+
<plugin>
141+
<artifactId>maven-clean-plugin</artifactId>
142+
<version>3.4.0</version>
143+
</plugin>
144+
<plugin>
145+
<artifactId>maven-resources-plugin</artifactId>
146+
<version>3.3.1</version>
147+
</plugin>
148+
<plugin>
149+
<artifactId>maven-compiler-plugin</artifactId>
150+
<version>3.13.0</version>
151+
<configuration>
152+
<release>${maven.compiler.release}</release>
153+
</configuration>
154+
</plugin>
155+
<plugin>
156+
<artifactId>maven-surefire-plugin</artifactId>
157+
<version>3.3.0</version>
158+
</plugin>
159+
<plugin>
160+
<artifactId>maven-jar-plugin</artifactId>
161+
<version>3.4.2</version>
162+
</plugin>
163+
<plugin>
164+
<artifactId>maven-install-plugin</artifactId>
165+
<version>3.1.2</version>
166+
</plugin>
167+
<plugin>
168+
<artifactId>maven-deploy-plugin</artifactId>
169+
<version>3.1.2</version>
170+
</plugin>
171+
<plugin>
172+
<artifactId>maven-site-plugin</artifactId>
173+
<version>3.12.1</version>
174+
</plugin>
175+
<plugin>
176+
<artifactId>maven-project-info-reports-plugin</artifactId>
177+
<version>3.6.1</version>
178+
</plugin>
179+
<plugin>
180+
<groupId>org.sonatype.central</groupId>
181+
<artifactId>central-publishing-maven-plugin</artifactId>
182+
<version>0.7.0</version>
183+
<extensions>true</extensions>
184+
<configuration>
185+
<publishingServerId>central</publishingServerId>
186+
<autoPublish>false</autoPublish>
187+
</configuration>
188+
</plugin>
189+
<plugin>
190+
<groupId>org.apache.maven.plugins</groupId>
191+
<artifactId>maven-source-plugin</artifactId>
192+
<version>3.3.1</version> <executions>
193+
<execution>
194+
<id>attach-sources</id>
195+
<goals>
196+
<goal>jar-no-fork</goal>
197+
</goals>
198+
</execution>
199+
</executions>
200+
</plugin>
201+
<plugin>
202+
<groupId>org.apache.maven.plugins</groupId>
203+
<artifactId>maven-javadoc-plugin</artifactId>
204+
<version>3.8.0</version> <executions>
205+
<execution>
206+
<id>attach-javadocs</id>
207+
<goals>
208+
<goal>jar</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-gpg-plugin</artifactId>
216+
<version>3.2.4</version> <executions>
217+
<execution>
218+
<id>sign-artifacts</id>
219+
<phase>verify</phase>
220+
<goals>
221+
<goal>sign</goal>
222+
</goals>
223+
</execution>
224+
</executions>
225+
</plugin>
226+
</plugins>
227+
</pluginManagement>
228+
</build>
229+
</project>

0 commit comments

Comments
 (0)