Skip to content

Commit 03e72ff

Browse files
authored
Merge pull request #141 from PgBulkInsert/rework-api
Rework PgBulkInsert API
2 parents 79fb7f7 + a5ae84a commit 03e72ff

107 files changed

Lines changed: 1243 additions & 8132 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

PgBulkInsert/pom.xml

Lines changed: 57 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>de.bytefish</groupId>
77
<artifactId>pgbulkinsert</artifactId>
8-
<version>8.1.8</version>
8+
<version>9.0.0</version>
99
<name>pgbulkinsert</name>
1010
<description>PgBulkInsert is a Java library for Bulk Inserts with PostgreSQL.</description>
1111
<url>http://www.github.com/bytefish/PgBulkInsert</url>
@@ -22,7 +22,6 @@
2222
<connection>scm:git:git://github.com/PgBulkInsert/PgBulkInsert.git</connection>
2323
<developerConnection>scm:git:git@github.com:bytefish/PgBulkInsert.git</developerConnection>
2424
</scm>
25-
<!-- Developers -->
2625
<developers>
2726
<developer>
2827
<name>Irmo Manie</name>
@@ -42,68 +41,77 @@
4241
</developers>
4342

4443
<properties>
44+
<!-- Java 21 as target -->
45+
<maven.compiler.release>21</maven.compiler.release>
46+
<maven.compiler.source>21</maven.compiler.source>
4547
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48+
49+
<!-- Dependency Versions -->
4650
<postgresql.version>42.7.3</postgresql.version>
47-
<junit.version>4.13.1</junit.version>
51+
<junit-jupiter.version>5.10.2</junit-jupiter.version>
52+
53+
<!-- Plugin Versions -->
54+
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
55+
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
56+
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
57+
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
58+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
59+
<central-publishing-maven-plugin.version>0.7.0</central-publishing-maven-plugin.version>
4860
</properties>
61+
<distributionManagement>
62+
<repository>
63+
<id>central</id>
64+
<url>https://central.sonatype.com</url>
65+
</repository>
66+
<snapshotRepository>
67+
<id>central</id>
68+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
69+
</snapshotRepository>
70+
</distributionManagement>
71+
<dependencies>
72+
<dependency>
73+
<groupId>org.postgresql</groupId>
74+
<artifactId>postgresql</artifactId>
75+
<version>${postgresql.version}</version>
76+
<scope>compile</scope>
77+
</dependency>
4978

79+
<!-- Unit Testing -->
80+
<dependency>
81+
<groupId>org.junit.jupiter</groupId>
82+
<artifactId>junit-jupiter-api</artifactId>
83+
<version>${junit-jupiter.version}</version>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.junit.jupiter</groupId>
88+
<artifactId>junit-jupiter-engine</artifactId>
89+
<version>${junit-jupiter.version}</version>
90+
<scope>test</scope>
91+
</dependency>
92+
</dependencies>
5093
<build>
5194
<plugins>
52-
<plugin>
53-
<groupId>org.apache.maven.plugins</groupId>
54-
<artifactId>maven-clean-plugin</artifactId>
55-
<version>3.4.1</version>
56-
</plugin>
57-
<plugin>
58-
<groupId>org.apache.maven.plugins</groupId>
59-
<artifactId>maven-resources-plugin</artifactId>
60-
<version>3.3.1</version>
61-
<configuration>
62-
<encoding>${project.build.sourceEncoding}</encoding>
63-
</configuration>
64-
</plugin>
95+
<!-- Compiler Plugin for Java 21 -->
6596
<plugin>
6697
<groupId>org.apache.maven.plugins</groupId>
6798
<artifactId>maven-compiler-plugin</artifactId>
68-
<version>3.14.0</version>
99+
<version>${maven-compiler-plugin.version}</version>
69100
<configuration>
70-
<release>11</release>
71-
<compilerArgument>-Xlint:unchecked</compilerArgument>
72-
<encoding>${project.build.sourceEncoding}</encoding>
101+
<release>${maven.compiler.release}</release>
102+
<parameters>true</parameters>
73103
</configuration>
74104
</plugin>
105+
106+
<!-- Test Runner -->
75107
<plugin>
76108
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-jar-plugin</artifactId>
78-
<version>3.4.2</version>
79-
</plugin>
80-
<plugin>
81109
<artifactId>maven-surefire-plugin</artifactId>
82-
<version>3.5.3</version>
83-
</plugin>
84-
<plugin>
85-
<artifactId>maven-failsafe-plugin</artifactId>
86-
<version>3.5.3</version>
87-
</plugin>
88-
<plugin>
89-
<groupId>org.apache.maven.plugins</groupId>
90-
<artifactId>maven-install-plugin</artifactId>
91-
<version>3.1.4</version>
110+
<version>${maven-surefire-plugin.version}</version>
92111
</plugin>
93112
</plugins>
94113
</build>
95114

96-
<distributionManagement>
97-
<repository>
98-
<id>central</id>
99-
<url>https://central.sonatype.com</url>
100-
</repository>
101-
<snapshotRepository>
102-
<id>central</id>
103-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
104-
</snapshotRepository>
105-
</distributionManagement>
106-
107115
<profiles>
108116
<profile>
109117
<id>release</id>
@@ -112,7 +120,7 @@
112120
<plugin>
113121
<groupId>org.apache.maven.plugins</groupId>
114122
<artifactId>maven-javadoc-plugin</artifactId>
115-
<version>3.11.2</version>
123+
<version>${maven-javadoc-plugin.version}</version>
116124
<configuration>
117125
<docfilessubdirs>true</docfilessubdirs>
118126
<linksource>true</linksource>
@@ -129,7 +137,7 @@
129137
<plugin>
130138
<groupId>org.apache.maven.plugins</groupId>
131139
<artifactId>maven-source-plugin</artifactId>
132-
<version>3.3.1</version>
140+
<version>${maven-source-plugin.version}</version>
133141
<executions>
134142
<execution>
135143
<id>attach-sources</id>
@@ -142,7 +150,7 @@
142150
<plugin>
143151
<groupId>org.apache.maven.plugins</groupId>
144152
<artifactId>maven-gpg-plugin</artifactId>
145-
<version>3.2.7</version>
153+
<version>${maven-gpg-plugin.version}</version>
146154
<executions>
147155
<execution>
148156
<id>sign-artifacts</id>
@@ -156,7 +164,7 @@
156164
<plugin>
157165
<groupId>org.sonatype.central</groupId>
158166
<artifactId>central-publishing-maven-plugin</artifactId>
159-
<version>0.7.0</version>
167+
<version>${central-publishing-maven-plugin.version}</version>
160168
<extensions>true</extensions>
161169
<configuration>
162170
<publishingServerId>central</publishingServerId>
@@ -166,18 +174,4 @@
166174
</build>
167175
</profile>
168176
</profiles>
169-
170-
<dependencies>
171-
<dependency>
172-
<groupId>org.postgresql</groupId>
173-
<artifactId>postgresql</artifactId>
174-
<version>${postgresql.version}</version>
175-
</dependency>
176-
<dependency>
177-
<scope>test</scope>
178-
<groupId>junit</groupId>
179-
<artifactId>junit</artifactId>
180-
<version>${junit.version}</version>
181-
</dependency>
182-
</dependencies>
183177
</project>

PgBulkInsert/src/main/java/de/bytefish/pgbulkinsert/IPgBulkInsert.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)