diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cc5b00a5..1db348d27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/pom.xml b/pom.xml index 2cbb7a526..0f8df64f9 100644 --- a/pom.xml +++ b/pom.xml @@ -39,6 +39,15 @@ Bamboo https://build.spring.io/browse/BATCH + + + spring-snapshots + https://repo.spring.io/libs-snapshot-local + + false + + + Apache 2.0 diff --git a/settings.xml b/settings.xml new file mode 100644 index 000000000..dd01ca87c --- /dev/null +++ b/settings.xml @@ -0,0 +1,14 @@ + + + + + spring-snapshots + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + + \ No newline at end of file