Skip to content

Commit 92a1167

Browse files
committed
Next ...
1 parent d9e21a8 commit 92a1167

2 files changed

Lines changed: 80 additions & 38 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
gpg-passphrase: GPG_PASSPHRASE
2222

2323
- name: Deploy to Maven Central
24-
run: mvn release:perform -Darguments=-DskipTests=true -f PgBulkInsert/pom.xml -s .github/workflows/maven-settings.xml
24+
run: mvn --batch-mode deploy --file PgBulkInsert/pom.xml -DskipTests
2525
env:
2626
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2727
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

PgBulkInsert/pom.xml

Lines changed: 79 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -46,59 +46,103 @@
4646
<postgresql.version>42.7.3</postgresql.version>
4747
<junit.version>4.13.1</junit.version>
4848
</properties>
49+
50+
<build>
51+
<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>
65+
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
67+
<artifactId>maven-compiler-plugin</artifactId>
68+
<version>3.14.0</version>
69+
<configuration>
70+
<release>11</release>
71+
<compilerArgument>-Xlint:unchecked</compilerArgument>
72+
<encoding>${project.build.sourceEncoding}</encoding>
73+
</configuration>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-jar-plugin</artifactId>
78+
<version>3.4.2</version>
79+
</plugin>
80+
<plugin>
81+
<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>
92+
</plugin>
93+
</plugins>
94+
</build>
95+
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+
49107
<profiles>
50108
<profile>
51109
<id>release</id>
52110
<build>
53111
<plugins>
54112
<plugin>
55-
<!-- Fixing version & activating "release" profile for those who use release plugin -->
56113
<groupId>org.apache.maven.plugins</groupId>
57-
<artifactId>maven-release-plugin</artifactId>
58-
<version>3.1.1</version>
59-
</plugin>
60-
<plugin>
61-
<groupId>org.sonatype.central</groupId>
62-
<artifactId>central-publishing-maven-plugin</artifactId>
63-
<version>0.8.0</version>
64-
<extensions>true</extensions>
114+
<artifactId>maven-javadoc-plugin</artifactId>
115+
<version>3.11.2</version>
65116
<configuration>
66-
<publishingServerId>central</publishingServerId>
117+
<docfilessubdirs>true</docfilessubdirs>
118+
<linksource>true</linksource>
67119
</configuration>
68-
</plugin>
69-
70-
<plugin>
71-
<groupId>org.apache.maven.plugins</groupId>
72-
<artifactId>maven-source-plugin</artifactId>
73-
<version>3.3.1</version>
74120
<executions>
75121
<execution>
76-
<id>attach-sources</id>
122+
<id>attach-javadoc</id>
77123
<goals>
78-
<goal>jar-no-fork</goal>
124+
<goal>jar</goal>
79125
</goals>
80126
</execution>
81127
</executions>
82128
</plugin>
83-
84129
<plugin>
85130
<groupId>org.apache.maven.plugins</groupId>
86-
<artifactId>maven-javadoc-plugin</artifactId>
87-
<version>3.10.1</version>
131+
<artifactId>maven-source-plugin</artifactId>
132+
<version>3.3.1</version>
88133
<executions>
89134
<execution>
90-
<id>attach-javadocs</id>
135+
<id>attach-sources</id>
91136
<goals>
92-
<goal>jar</goal>
137+
<goal>jar-no-fork</goal>
93138
</goals>
94139
</execution>
95140
</executions>
96141
</plugin>
97-
98142
<plugin>
99143
<groupId>org.apache.maven.plugins</groupId>
100144
<artifactId>maven-gpg-plugin</artifactId>
101-
<version>3.2.4</version>
145+
<version>3.2.7</version>
102146
<executions>
103147
<execution>
104148
<id>sign-artifacts</id>
@@ -109,22 +153,20 @@
109153
</execution>
110154
</executions>
111155
</plugin>
156+
<plugin>
157+
<groupId>org.sonatype.central</groupId>
158+
<artifactId>central-publishing-maven-plugin</artifactId>
159+
<version>0.7.0</version>
160+
<extensions>true</extensions>
161+
<configuration>
162+
<publishingServerId>central</publishingServerId>
163+
</configuration>
164+
</plugin>
112165
</plugins>
113166
</build>
114167
</profile>
115168
</profiles>
116-
117-
<distributionManagement>
118-
<snapshotRepository>
119-
<id>central</id>
120-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
121-
</snapshotRepository>
122-
<repository>
123-
<id>central</id>
124-
<url>https://central.sonatype.com</url>
125-
</repository>
126-
</distributionManagement>
127-
169+
128170
<dependencies>
129171
<dependency>
130172
<groupId>org.postgresql</groupId>

0 commit comments

Comments
 (0)