Refactor Maven pom.xml for SCM and distribution setup.

Reorganized the `scm` block and added a `distributionManagement` section for publishing to GitHub Maven Packages. Cleaned up unused plugin configurations and improved XML formatting for better readability.
This commit is contained in:
2025-03-27 19:08:26 +01:00
parent 0bc1cef900
commit 1a1794ff37
+23 -17
View File
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>codes.thischwa</groupId>
@@ -14,12 +15,6 @@
<system>GitHub Issues</system>
</issueManagement>
<scm>
<developerConnection>scm:git:git@github.com:th-schwarz/CloudflareDNS-java</developerConnection>
<connection>scm:git:git@github.com:th-schwarz/CloudflareDNS-java</connection>
<tag>HEAD</tag>
</scm>
<properties>
<java.version>17</java.version>
<file.encoding>UTF-8</file.encoding>
@@ -35,7 +30,8 @@
<!-- checkstyle -->
<checkstyle.version>10.21.3</checkstyle.version>
<checkstyle.plugin.version>3.6.0</checkstyle.plugin.version>
<checkstyle.config.location>${project.basedir}/src/checkstyle/google_custom_checks.xml</checkstyle.config.location>
<checkstyle.config.location>${project.basedir}/src/checkstyle/google_custom_checks.xml
</checkstyle.config.location>
<checkstyle.includeTestResources>false</checkstyle.includeTestResources>
<checkstyle.violationSeverity>warning</checkstyle.violationSeverity>
<checkstyle.failOnViolation>false</checkstyle.failOnViolation>
@@ -50,6 +46,25 @@
<junit5.version>5.11.4</junit5.version>
</properties>
<scm>
<developerConnection>scm:git:git@github.com:th-schwarz/CloudflareDNS-java</developerConnection>
<connection>scm:git:git@github.com:th-schwarz/CloudflareDNS-java</connection>
<tag>HEAD</tag>
</scm>
<distributionManagement>
<repository>
<id>github-cloudflaredns</id>
<name>GitHub Maven Packages</name>
<url>https://maven.pkg.github.com/th-schwarz/CloudflareDNS-java</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
@@ -134,15 +149,6 @@
</configuration>
</plugin>
<plugin>
<!-- deploy isn't desired, currently no repo available -->
<artifactId>maven-deploy-plugin</artifactId>
<version>3.1.3</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<!-- checkstyle -->
<groupId>org.apache.maven.plugins</groupId>