Skip to content

Commit bd8adac

Browse files
committed
updated pom and checks
1 parent 7dbce10 commit bd8adac

3 files changed

Lines changed: 62 additions & 5 deletions

File tree

.github/workflows/create_release_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,5 @@ jobs:
9898
delete-branch: true
9999
draft: true
100100
title: Release version ${{ github.event.inputs.release_version }}
101-
body-path: /tmp/release_body.txt
101+
body-path: /tmp/releaseg_body.txt
102102

pom.xml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>io.aiven.commons</groupId>
2424
<artifactId>aiven-commons</artifactId>
25-
<version>3-SNAPSHOT</version>
25+
<version>3</version>
2626
</parent>
2727

2828
<artifactId>kafka-config</artifactId>
@@ -273,19 +273,70 @@
273273
</build>
274274
<profiles>
275275
<profile>
276-
<id>release</id>
276+
<id>publish</id>
277277
<build>
278278
<plugins>
279279
<plugin>
280280
<groupId>org.sonatype.central</groupId>
281281
<artifactId>central-publishing-maven-plugin</artifactId>
282+
<version>0.9.0</version>
282283
<extensions>true</extensions>
283284
<configuration>
284-
<publishingServerId>central-snapshot</publishingServerId>
285+
<publishingServerId>central</publishingServerId>
285286
<ignorePublishedComponents>true</ignorePublishedComponents>
286-
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots</centralSnapshotsUrl>
287287
</configuration>
288288
</plugin>
289+
<plugin>
290+
<groupId>org.apache.maven.plugins</groupId>
291+
<artifactId>maven-enforcer-plugin</artifactId>
292+
<version>3.6.2</version>
293+
<executions>
294+
<execution>
295+
<id>enforce-versions</id>
296+
<goals>
297+
<goal>enforce</goal>
298+
</goals>
299+
<configuration>
300+
<rules>
301+
<requireReleaseDeps>
302+
<message>No Snapshots Allowed!</message>
303+
</requireReleaseDeps>
304+
<requireReleaseVersion>
305+
<message>No Snapshots Allowed!</message>
306+
</requireReleaseVersion>
307+
</rules>
308+
</configuration>
309+
</execution>
310+
</executions>
311+
</plugin>
312+
</plugins>
313+
</build>
314+
</profile>
315+
<profile>
316+
<!-- used to verify that there are no SNAPSHOT dependencies -->
317+
<id>pre-release-check</id>
318+
<build>
319+
<plugins>
320+
<plugin>
321+
<groupId>org.apache.maven.plugins</groupId>
322+
<artifactId>maven-enforcer-plugin</artifactId>
323+
<version>3.6.2</version>
324+
<executions>
325+
<execution>
326+
<id>enforce-versions</id>
327+
<goals>
328+
<goal>enforce</goal>
329+
</goals>
330+
<configuration>
331+
<rules>
332+
<requireReleaseDeps>
333+
<message>No Snapshots Allowed!</message>
334+
</requireReleaseDeps>
335+
</rules>
336+
</configuration>
337+
</execution>
338+
</executions>
339+
</plugin>
289340
</plugins>
290341
</build>
291342
</profile>

scripts/release_detail.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@ git checkout -b changelog-${endVersion}
6060
git add CHANGE_LOG.md
6161
git commit -m "Changelog for ${startTag} to v${endVersion}"
6262
git push --set-upstream origin changelog-${endVersion}
63+
64+
mvn -P pre-release-check verify
65+
if [[ $? -eq 1 ]]
66+
then
67+
echo "Fix issues with the build and rerun 'mvn -P pre-release-check verify'"
68+
fi

0 commit comments

Comments
 (0)