Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pom] Remove oss-parent, update libs, and add release/enforcer plugin #1228

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

hazendaz
Copy link
Contributor

rest was already in here from really old obsolete oss parent.

rest was already in here from really old obsolete oss parent.
@@ -1,18 +1,12 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing xml indicator and add proper maven secure xsd location.


<!-- 'oss-parent' should not be used, it was deprecated years ago -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove obsolete oss parent which was almost entirely overridden.


<groupId>net.masterthought</groupId>
<artifactId>cucumber-reporting</artifactId>
<packaging>jar</packaging>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jar is the default, it is not necessary.

@@ -25,7 +19,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>

<byte-buddy.version>1.15.10</byte-buddy.version>
<!-- Maven minimum version -->
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set default maven version 3.6.3 as maven has stated all older versions are obsolete. This only matters for the build, nothing else, technically it should be 3.9.9 but keeping it low as not sure what other contributors are using currently. This comes from the original oss parent that was dealing with maven 2 versions.

@@ -225,6 +222,35 @@
</execution>
</executions>
</plugin>
<plugin>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add enforcer to force maven 3.6.3 or better to build. This is adjusted from the original oss parent.

</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added release plugin from original oss parent but replaced attributes. The first one makes it not mess with the second line of this file. The second one ensures it is generating sha's properly on release through sha-512.

Copy link

codecov bot commented Jan 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.27%. Comparing base (fc0461a) to head (3bee611).
Report is 26 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1228   +/-   ##
=========================================
  Coverage     98.27%   98.27%           
- Complexity      565      567    +2     
=========================================
  Files            55       55           
  Lines          1215     1218    +3     
  Branches        105      105           
=========================================
+ Hits           1194     1197    +3     
  Misses           10       10           
  Partials         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hazendaz
Copy link
Contributor Author

Hi @damianszczepanik, this pull request gets the project off long deprecated oss-parent, I also took the time to update various libraries that were out of date. Most of the original oss-parent was already overridden here. Only 2 plugins were not. I'm currently using maven 4.0.0-rc-2. The build will fail using such old plugins from that oss parent. After this update, the build then works for maven 4 as well.

Here is a snippet of my output to show that.

[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] --------------------------------------------------------------------------------------------------------------------------
[INFO] Total time:  20.777 s
[INFO] Finished at: 2025-01-11T00:15:43-05:00
[INFO] --------------------------------------------------------------------------------------------------------------------------
C:\Users\Jeremy\GitHub\cucumber-reporting [(3bee611...)]> mvn --version
Apache Maven 4.0.0-rc-2 (273314404f85ec3c089e295d8b4e0cb18c287cf5)
Maven home: D:\mvn\apache-maven-4.0.0-rc-2
Java version: 21.0.5, vendor: Oracle Corporation, runtime: D:\jdk\jdk-21.0.5
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

@damianszczepanik damianszczepanik merged commit 081915c into damianszczepanik:master Jan 12, 2025
14 checks passed
@damianszczepanik
Copy link
Owner

@hazendaz thank you for this change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants