diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d20b99cc..0e370cdd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,3 +25,9 @@ jobs: - name: Build with Maven run: ./mvnw -B + + - name: Deploy to Artifactory + env: + ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }} + ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }} + run: ./mvnw -B clean deploy -Pci,artifactory diff --git a/pom.xml b/pom.xml index 4dfcf2c7..760dfdaa 100644 --- a/pom.xml +++ b/pom.xml @@ -96,30 +96,92 @@ limitations under the License. spring-modulith-integration-test - - - spring-snapshot - Spring Snapshot Repository - https://repo.spring.io/snapshot - - + - - - spring-snapshot - https://repo.spring.io/snapshot - - false - - - - spring-milestone - https://repo.spring.io/milestone - - false - - - + + + ci + + + + + + org.projectlombok + lombok-maven-plugin + 1.18.20.0 + + false + ${project.basedir}/src/main/java + + + + generate-sources + + delombok + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + + attach-javadocs + + jar + + + + + none + true + package + target/generated-sources/delombok + + + + + + + + + + artifactory + + true + + + + + org.jfrog.buildinfo + artifactory-maven-plugin + 3.4.0 + false + + + deploy-to-artifactory + + publish + + + + https://repo.spring.io + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + libs-milestone-local + libs-snapshot-local + + + CI build for Spring Modulith ${project.version} + + + + + + + @@ -142,24 +204,6 @@ limitations under the License. - - org.apache.maven.plugins - maven-javadoc-plugin - - - attach-javadocs - - jar - - - - - - -Xdoclint:none - - package - - @@ -167,10 +211,6 @@ limitations under the License. sonatype-new https://s01.oss.sonatype.org/service/local/staging/deploy/maven2 - - sonatype-new - https://s01.oss.sonatype.org/content/repositories/snapshots - @@ -302,4 +342,21 @@ limitations under the License. main + + + spring-snapshot + https://repo.spring.io/snapshot + + false + + + + spring-milestone + https://repo.spring.io/milestone + + false + + + +