Skip to content

Commit 00558e6

Browse files
Remove release plugin arguments from pom.xml and update workflows (#355)
Co-authored-by: Thomas Turrell-Croft <thomasturrell@users.noreply.github.com>
1 parent 1c87c76 commit 00558e6

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
run: |
3232
git config user.name "github-actions[bot]"
3333
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
34-
mvn -B -batch-mode release:prepare release:perform --file pom.xml
34+
# Only release production modules, exclude all sample modules
35+
mvn -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am -batch-mode release:prepare release:perform --file pom.xml
3536
env:
3637
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
3738
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ jobs:
9494
9595
# Run release:prepare with explicit release version
9696
# Maven will automatically calculate the next development version
97-
./mvnw -B release:prepare \
97+
# Only prepare production modules, exclude all sample modules
98+
./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:prepare \
9899
-DreleaseVersion="${VERSION}" \
99100
-Dtag="${TAG_NAME}" \
100101
-DpushChanges=false
@@ -108,7 +109,8 @@ jobs:
108109
echo "Performing release and deploying to Maven Central"
109110
110111
# Run release:perform to build and deploy
111-
./mvnw -B release:perform \
112+
# Only release production modules, exclude all sample modules
113+
./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:perform \
112114
-DlocalCheckout=true \
113115
-DeployAtEnd=true
114116
env:

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@
254254
<useReleaseProfile>false</useReleaseProfile>
255255
<releaseProfiles>release</releaseProfiles>
256256
<goals>deploy</goals>
257-
<!-- Only release production modules, exclude all sample modules -->
258-
<arguments>-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am</arguments>
259257
</configuration>
260258
</plugin>
261259
</plugins>

0 commit comments

Comments
 (0)