Skip to content

Commit

Permalink
ci: use workflow release
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Apr 12, 2024
1 parent e6da225 commit 75c6ab1
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 87 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: (📡) Create GitHub Release Draft
name: (📡) Create GitHub Release

on:
push:
Expand All @@ -8,4 +8,4 @@ on:

jobs:
create-github-release:
uses: sitepark/github-project-workflow/.github/workflows/create-github-release-draft.yml@release/1.x
uses: sitepark/github-project-workflow/.github/workflows/create-github-release.yml@release/1.x
10 changes: 0 additions & 10 deletions .github/workflows/publish-release.yml

This file was deleted.

152 changes: 77 additions & 75 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>21</maven.compiler.release>
<gpg.skip>true</gpg.skip>
<spotless.check.skip>true</spotless.check.skip>
</properties>

<dependencyManagement>
Expand Down Expand Up @@ -120,31 +119,7 @@
</dependency>
</dependencies>
<build>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.5.0</version>
<executions>
<execution>
<id>add-integration-test-sources</id>
<goals>
<goal>add-test-source</goal>
</goals>
<phase>generate-test-sources</phase>
<configuration>
<sources>
<source>src/integration-test/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
Expand All @@ -153,62 +128,23 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<configuration>
<archive>
<manifest>
<mainClass>com.sitepark.translate.cli.Main</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>assemble-all</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<id>default-test</id>
<configuration>
<excludedGroups>IntegrationTest</excludedGroups>
</configuration>
</execution>
<execution>
<id>integration-test</id>
<goals>
<goal>test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<groups>IntegrationTest</groups>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<version>3.3.0</version>
<configuration>
<doclint>all,-missing</doclint>
</configuration>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
<goal>jar</goal>
</goals>
</execution>
</executions>
Expand All @@ -229,7 +165,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.2</version>
<version>3.2.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -248,10 +184,58 @@
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<dependencies>
<dependency>
<groupId>io.github.thefolle</groupId>
<artifactId>glowing-waffle</artifactId>
<version>1.2.0</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<banDuplicatePomDependencyVersions></banDuplicatePomDependencyVersions>
<requireMavenVersion>
<version>3.8</version>
</requireMavenVersion>
<requireJavaVersion>
<version>21</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
<execution>
<id>verify-release</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>none</phase>
<configuration>
<rules>
<requireReleaseDeps>
<failWhenParentIsSnapshot>false</failWhenParentIsSnapshot>
<message>No Snapshots Allowed!</message>
</requireReleaseDeps>
<requireReleaseDepsInPlugins implementation="org.apache.maven.enforcer.rule.requireReleaseDepsInPlugins"></requireReleaseDepsInPlugins>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<version>0.8.11</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -305,7 +289,7 @@
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>false</formatJavadoc>
</googleJavaFormat>
<formatAnnotations />
<formatAnnotations></formatAnnotations>
</java>
<pom>
<!-- These are the defaults, you can override if you want -->
Expand Down Expand Up @@ -339,14 +323,13 @@
<maxRank>20</maxRank>
<excludeFilterFile>spotbug-exclude-filter.xml</excludeFilterFile>
</configuration>

<!-- https://spotbugs.readthedocs.io/en/latest/maven.html -->
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>${spotbugs.version}</version>
<version>4.8.3</version>
</dependency>
</dependencies>
<executions>
Expand All @@ -371,7 +354,6 @@
<failurePriority>5</failurePriority>
<printFailingErrors>true</printFailingErrors>
<linkXRef>false</linkXRef>
<!-- otherwise generates a warning -->
</configuration>
<executions>
<execution>
Expand All @@ -385,4 +367,24 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>nexus-staging-release</id>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 75c6ab1

Please sign in to comment.