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:
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>codes.thischwa</groupId>
|
<groupId>codes.thischwa</groupId>
|
||||||
@@ -14,12 +15,6 @@
|
|||||||
<system>GitHub Issues</system>
|
<system>GitHub Issues</system>
|
||||||
</issueManagement>
|
</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>
|
<properties>
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<file.encoding>UTF-8</file.encoding>
|
<file.encoding>UTF-8</file.encoding>
|
||||||
@@ -35,7 +30,8 @@
|
|||||||
<!-- checkstyle -->
|
<!-- checkstyle -->
|
||||||
<checkstyle.version>10.21.3</checkstyle.version>
|
<checkstyle.version>10.21.3</checkstyle.version>
|
||||||
<checkstyle.plugin.version>3.6.0</checkstyle.plugin.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.includeTestResources>false</checkstyle.includeTestResources>
|
||||||
<checkstyle.violationSeverity>warning</checkstyle.violationSeverity>
|
<checkstyle.violationSeverity>warning</checkstyle.violationSeverity>
|
||||||
<checkstyle.failOnViolation>false</checkstyle.failOnViolation>
|
<checkstyle.failOnViolation>false</checkstyle.failOnViolation>
|
||||||
@@ -50,6 +46,25 @@
|
|||||||
<junit5.version>5.11.4</junit5.version>
|
<junit5.version>5.11.4</junit5.version>
|
||||||
</properties>
|
</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>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.httpcomponents.client5</groupId>
|
<groupId>org.apache.httpcomponents.client5</groupId>
|
||||||
@@ -134,15 +149,6 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
<plugin>
|
||||||
<!-- checkstyle -->
|
<!-- checkstyle -->
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user