Update build to deploy artifacts to Artifactory

This commit is contained in:
Mahmoud Ben Hassine
2022-12-13 00:24:55 +01:00
parent f6219d32b8
commit 9eebaf4410
3 changed files with 25 additions and 2 deletions

View File

@@ -19,8 +19,8 @@ jobs:
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify
- name: Build with Maven and deploy to Artifactory
run: mvn -s settings.xml --batch-mode --update-snapshots deploy
- name: Generate Java docs
run: mvn javadoc:aggregate

View File

@@ -39,6 +39,15 @@
<system>Bamboo</system>
<url>https://build.spring.io/browse/BATCH</url>
</ciManagement>
<distributionManagement>
<snapshotRepository>
<id>spring-snapshots</id>
<url>https://repo.spring.io/libs-snapshot-local</url>
<releases>
<enabled>false</enabled>
</releases>
</snapshotRepository>
</distributionManagement>
<licenses>
<license>
<name>Apache 2.0</name>

14
settings.xml Normal file
View File

@@ -0,0 +1,14 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>spring-snapshots</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
</servers>
</settings>