Skip to content

Commit 26a7fb3

Browse files
committed
Update Pipeline again...
1 parent ba8eed5 commit 26a7fb3

2 files changed

Lines changed: 107 additions & 89 deletions

File tree

.github/workflows/publish-packages.yml

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

2424
- name: Deploy to Maven Central
25-
run: mvn -f PgBulkInsert/pom.xml -B deploy -DskipTests
25+
run: mvn -f PgBulkInsert/pom.xml -s .github/workflows/maven-settings.xml -B deploy -DskipTests
2626
env:
2727
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2828
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

PgBulkInsert/pom.xml

Lines changed: 106 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -40,89 +40,96 @@
4040
<id>bytefish</id>
4141
</developer>
4242
</developers>
43+
44+
<repositories>
45+
<repository>
46+
<id>central-portal-snapshots</id>
47+
<name>Central Portal Snapshots</name>
48+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
49+
<releases>
50+
<enabled>false</enabled>
51+
</releases>
52+
<snapshots>
53+
<enabled>true</enabled>
54+
</snapshots>
55+
</repository>
56+
</repositories>
57+
4358
<build>
44-
<pluginManagement>
45-
<plugins>
46-
<plugin>
47-
<groupId>org.apache.maven.plugins</groupId>
48-
<artifactId>maven-compiler-plugin</artifactId>
49-
<version>3.11.0</version>
50-
<configuration>
51-
<!-- Configure to compile with a recent JDK while targeting JDK 8 -->
52-
<release>8</release>
53-
</configuration>
54-
</plugin>
55-
</plugins>
56-
</pluginManagement>
5759
<plugins>
60+
<!-- release management -->
5861
<plugin>
5962
<groupId>org.apache.maven.plugins</groupId>
60-
<artifactId>maven-enforcer-plugin</artifactId>
61-
<version>1.4.1</version>
62-
<executions>
63-
<execution>
64-
<id>enforce-maven</id>
65-
<goals>
66-
<goal>enforce</goal>
67-
</goals>
68-
<configuration>
69-
<rules>
70-
<requireMavenVersion>
71-
<!-- enforce at least mvn version 3.0.3 -->
72-
<version>[3.0.3,)</version>
73-
</requireMavenVersion>
74-
</rules>
75-
</configuration>
76-
</execution>
77-
</executions>
78-
<inherited>false</inherited>
63+
<artifactId>maven-release-plugin</artifactId>
64+
<version>3.0.1</version>
65+
<configuration>
66+
<autoVersionSubmodules>true</autoVersionSubmodules>
67+
<useReleaseProfile>false</useReleaseProfile>
68+
<releaseProfiles>release</releaseProfiles>
69+
<goals>deploy</goals>
70+
</configuration>
71+
</plugin>
72+
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-site-plugin</artifactId>
76+
<version>3.12.1</version>
77+
</plugin>
78+
79+
<plugin>
80+
<groupId>org.apache.maven.plugins</groupId>
81+
<artifactId>maven-project-info-reports-plugin</artifactId>
82+
<version>3.1.0</version>
83+
</plugin>
84+
85+
<plugin>
86+
<groupId>org.apache.maven.plugins</groupId>
87+
<artifactId>maven-javadoc-plugin</artifactId>
88+
<version>3.2.0</version>
89+
<configuration>
90+
<additionalOptions>-Xdoclint:none</additionalOptions>
91+
</configuration>
92+
</plugin>
93+
94+
<plugin>
95+
<groupId>org.apache.maven.plugins</groupId>
96+
<artifactId>maven-jxr-plugin</artifactId>
97+
<version>3.0.0</version>
7998
</plugin>
8099
</plugins>
81100
</build>
82-
<distributionManagement>
83-
<repository>
84-
<id>central</id>
85-
<url>https://central.sonatype.com</url>
86-
<releases>
87-
<enabled>true</enabled>
88-
</releases>
89-
<snapshots>
90-
<enabled>false</enabled>
91-
</snapshots>
92-
</repository>
93-
</distributionManagement>
101+
102+
<reporting>
103+
<plugins>
104+
<!-- java doc -->
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-javadoc-plugin</artifactId>
108+
<version>3.2.0</version>
109+
<configuration>
110+
<additionalOptions>-Xdoclint:none</additionalOptions>
111+
</configuration>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-jxr-plugin</artifactId>
116+
<version>3.0.0</version>
117+
</plugin>
118+
</plugins>
119+
</reporting>
94120
<properties>
95121
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
96122
<postgresql.version>42.7.3</postgresql.version>
97123
<junit.version>4.13.1</junit.version>
98124
</properties>
99125
<profiles>
126+
127+
<!-- Profile for Releases -->
100128
<profile>
101129
<id>release</id>
102130
<build>
103131
<plugins>
104-
<plugin>
105-
<groupId>org.apache.maven.plugins</groupId>
106-
<artifactId>maven-gpg-plugin</artifactId>
107-
<version>1.6</version>
108-
<executions>
109-
<execution>
110-
<id>sign-artifacts</id>
111-
<phase>verify</phase>
112-
<goals>
113-
<goal>sign</goal>
114-
</goals>
115-
</execution>
116-
</executions>
117-
</plugin>
118-
<plugin>
119-
<groupId>org.apache.maven.plugins</groupId>
120-
<artifactId>maven-deploy-plugin</artifactId>
121-
<version>3.1.2</version>
122-
<configuration>
123-
<skip>true</skip>
124-
</configuration>
125-
</plugin>
132+
<!-- for RELEASES: Central Publishing Plugin -->
126133
<plugin>
127134
<groupId>org.sonatype.central</groupId>
128135
<artifactId>central-publishing-maven-plugin</artifactId>
@@ -134,27 +141,8 @@
134141
<waitUntil>published</waitUntil>
135142
</configuration>
136143
</plugin>
137-
</plugins>
138-
<pluginManagement>
139-
<plugins>
140-
<plugin>
141-
<groupId>org.apache.maven.plugins</groupId>
142-
<artifactId>maven-release-plugin</artifactId>
143-
<version>2.5.3</version>
144-
<configuration>
145-
<mavenExecutorId>forked-path</mavenExecutorId>
146-
<useReleaseProfile>false</useReleaseProfile>
147-
<arguments>${arguments} -Psonatype-oss-release</arguments>
148-
</configuration>
149-
</plugin>
150-
</plugins>
151-
</pluginManagement>
152-
</build>
153-
</profile>
154-
<profile>
155-
<id>docs-and-source</id>
156-
<build>
157-
<plugins>
144+
145+
<!-- Source Plugin -->
158146
<plugin>
159147
<groupId>org.apache.maven.plugins</groupId>
160148
<artifactId>maven-source-plugin</artifactId>
@@ -168,12 +156,14 @@
168156
</execution>
169157
</executions>
170158
</plugin>
159+
160+
<!-- Javadoc Plugin -->
171161
<plugin>
172162
<groupId>org.apache.maven.plugins</groupId>
173163
<artifactId>maven-javadoc-plugin</artifactId>
174164
<version>3.2.0</version>
175165
<configuration>
176-
<source>8</source>
166+
<additionalOptions>-Xdoclint:none</additionalOptions>
177167
</configuration>
178168
<executions>
179169
<execution>
@@ -184,10 +174,38 @@
184174
</execution>
185175
</executions>
186176
</plugin>
177+
178+
<!-- GPG Signing Plugin -->
179+
<plugin>
180+
<groupId>org.apache.maven.plugins</groupId>
181+
<artifactId>maven-gpg-plugin</artifactId>
182+
<version>3.1.0</version>
183+
<executions>
184+
<execution>
185+
<id>sign-artifacts</id>
186+
<phase>verify</phase>
187+
<goals>
188+
<goal>sign</goal>
189+
</goals>
190+
</execution>
191+
</executions>
192+
</plugin>
187193
</plugins>
188194
</build>
189195
</profile>
190196
</profiles>
197+
198+
<distributionManagement>
199+
<snapshotRepository>
200+
<id>central</id>
201+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
202+
</snapshotRepository>
203+
<repository>
204+
<id>central</id>
205+
<url>https://central.sonatype.com</url>
206+
</repository>
207+
</distributionManagement>
208+
191209
<dependencies>
192210
<dependency>
193211
<groupId>org.postgresql</groupId>

0 commit comments

Comments
 (0)