Skip to content

Commit 4b6b714

Browse files
committed
+ re-aligned min maven version to 3.9.0
1 parent e5069d6 commit 4b6b714

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _Notes:_
2121

2222
## Prerequisite
2323

24-
Maven 3.5.4 or better
24+
Maven 3.9.0 or better
2525

2626
## Get it...
2727

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
<groupId>io.github.q3769</groupId>
3232
<artifactId>semver-maven-plugin</artifactId>
33-
<version>20240116.0.202507151828</version>
33+
<version>20240116.0.202507152048</version>
3434
<packaging>maven-plugin</packaging>
3535

3636
<name>semver-maven-plugin</name>
@@ -48,13 +48,13 @@
4848
</licenses>
4949

5050
<prerequisites>
51-
<maven>3.5.4</maven>
51+
<maven>3.9.0</maven>
5252
</prerequisites>
5353

5454
<properties>
5555
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
56-
<maven.version>3.9.9</maven.version>
57-
<maven.compiler.release>11</maven.compiler.release>
56+
<maven.version>3.9.0</maven.version>
57+
<maven.compiler.release>8</maven.compiler.release>
5858
</properties>
5959

6060
<dependencyManagement>
@@ -250,7 +250,7 @@
250250
<plugin>
251251
<groupId>io.github.q3769</groupId>
252252
<artifactId>semver-maven-plugin</artifactId>
253-
<version>20240116.0.202507151828</version>
253+
<version>20240116.0.202507152048</version>
254254
</plugin>
255255
<plugin>
256256
<groupId>org.apache.maven.plugins</groupId>

src/main/java/q3769/maven/plugins/semver/mojos/FinalizeCurrent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class FinalizeCurrent extends Updater {
4444
*/
4545
@Override
4646
protected Version update(@NonNull Version original) {
47-
if (original.preReleaseVersion().isEmpty() && original.buildMetadata().isEmpty()) {
47+
if (!original.preReleaseVersion().isPresent() && !original.buildMetadata().isPresent()) {
4848
logInfo("Current version: %s contains only normal version numbers, so no change.", original);
4949
return original;
5050
}

src/main/java/q3769/maven/plugins/semver/mojos/UpdateBuildMetadata.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class UpdateBuildMetadata extends LabelUpdater {
4242
/**
4343
* @param version to increment
4444
* @return incremented semver
45-
* @deprecated as build metadata label is not really part of precedence comparison, thus doesn't
46-
* really make sense to be incremented/updated
45+
* @deprecated since "20240115.0.0" as build metadata label is not really part of precedence
46+
* comparison, thus doesn't really make sense to be incremented/updated
4747
*/
48-
@Deprecated(since = "20240115.0.0")
48+
@Deprecated
4949
@Override
5050
protected Version incrementLabel(@NonNull Version version) throws MojoFailureException {
5151
try {

0 commit comments

Comments
 (0)