Skip to content

Commit

Permalink
Refact/multi module pmd conf add missing maven central release (#243)
Browse files Browse the repository at this point in the history
* ♻️ mv pmd conf to separate module

* 🔧 gateway use pmd module

* 👷 ci add refarch-libs

* 👷 libs add maven central release to pom

* 📝 add refarch-libs to issue templates

* ♻️ pmd module rename parent to refarch-tools

* Revert "🔧 gateway use pmd module"

This reverts commit 820fa8b.

* 🔖 pmd share-files duplicate for now

* ♻️ pmd module rename parent to refarch-tools

* ♻️ pmd module rename parent to refarch-tools

* 🔧 refarch-tools use default pom

* 🔧 pmd dummy class for javadoc

* 🔧 refarch-tools rm pmd and spotbugs

* 🔧 refarch-tools cleanup pom

* 🔧 pmd use parent pom

* 🔧 pmd update ruleset description

* 💚 ci codeql add refarch-tools

* 🔧 refarch-tools add maven central release

* 🔥 refarch-tools pom cleanup exclude
  • Loading branch information
simonhir authored Oct 31, 2024
1 parent b3a7373 commit dfba2d3
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions refarch-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
<maven.compiler.release>${java.version}</maven.compiler.release>

<!-- Release -->
<central-publishing-maven-plugin.version>0.5.0</central-publishing-maven-plugin.version>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
</properties>

<build>
Expand All @@ -38,13 +40,43 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<doclint>accessibility,html,reference,syntax</doclint>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
Expand All @@ -57,6 +89,49 @@
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<!-- Central Portal Publishing Plugin -->
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<autoPublish>true</autoPublish>
<deploymentName>${project.groupId}:${project.artifactId}:${project.version}</deploymentName>
</configuration>
</plugin>
<!-- GPG plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<scm>
<url>https://github.com/it-at-m/refarch.git</url>
<connection>scm:git:https://github.com/it-at-m/refarch.git</connection>
Expand Down

0 comments on commit dfba2d3

Please sign in to comment.