Skip to content

Commit cf661ad

Browse files
authored
fix: [DevOps] Release Script (#168)
* fix: Release Script * Switch approach to disabling plugins for releasing * Remove leftovers
1 parent 173530d commit cf661ad

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/perform-release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ jobs:
8888
with:
8989
distribution: "sapmachine"
9090
java-version: ${{ env.JAVA_VERSION }}
91-
server-id: ossrh
92-
server-username: MAVEN_CENTRAL_USER # env variable for username in deploy
93-
server-password: MAVEN_CENTRAL_PASSWORD # env variable for token in deploy
9491

9592
- name: "Download Release Asset"
9693
id: download-asset
@@ -113,8 +110,8 @@ jobs:
113110
114111
- name: "Deploy"
115112
run: |
116-
MVN_ARGS="${{ env.MVN_CLI_ARGS }} deploy -Drelease -s settings.xml"
117-
mvn $MVN_ARGS
113+
MVN_ARGS="${{ env.MVN_CLI_ARGS }} -Drelease -s settings.xml"
114+
mvn deploy $MVN_ARGS
118115
env:
119116
MAVEN_GPG_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
120117

pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,28 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
724724
</plugins>
725725
</pluginManagement>
726726
<plugins>
727+
<!-- The release artifacts don't contain our custom config files for these plugins -->
728+
<plugin>
729+
<groupId>org.apache.maven.plugins</groupId>
730+
<artifactId>maven-checkstyle-plugin</artifactId>
731+
<configuration>
732+
<skip>true</skip>
733+
</configuration>
734+
</plugin>
735+
<plugin>
736+
<groupId>org.apache.maven.plugins</groupId>
737+
<artifactId>maven-pmd-plugin</artifactId>
738+
<configuration>
739+
<skip>true</skip>
740+
</configuration>
741+
</plugin>
742+
<plugin>
743+
<groupId>com.github.spotbugs</groupId>
744+
<artifactId>spotbugs-maven-plugin</artifactId>
745+
<configuration>
746+
<skip>true</skip>
747+
</configuration>
748+
</plugin>
727749
<plugin>
728750
<groupId>org.apache.maven.plugins</groupId>
729751
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)