Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
mvn -B -batch-mode release:prepare release:perform --file pom.xml
# Only release production modules, exclude all sample modules
mvn -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am -batch-mode release:prepare release:perform --file pom.xml
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:

# Run release:prepare with explicit release version
# Maven will automatically calculate the next development version
./mvnw -B release:prepare \
# Only prepare production modules, exclude all sample modules
./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:prepare \
-DreleaseVersion="${VERSION}" \
-Dtag="${TAG_NAME}" \
-DpushChanges=false
Expand All @@ -108,7 +109,8 @@ jobs:
echo "Performing release and deploying to Maven Central"

# Run release:perform to build and deploy
./mvnw -B release:perform \
# Only release production modules, exclude all sample modules
./mvnw -B -pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am release:perform \
-DlocalCheckout=true \
-DeployAtEnd=true
env:
Expand Down
2 changes: 0 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
<!-- Only release production modules, exclude all sample modules -->
<arguments>-pl xapi-model,xapi-client,xapi-model-spring-boot-starter -am</arguments>
</configuration>
</plugin>
</plugins>
Expand Down