diff --git a/Jenkinsfile b/Jenkinsfile index f629dba..bb9b9e0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -133,9 +133,9 @@ pipeline { } if (RELEASE_TYPE == 'release') { - sh "PROFILE=distribute,central USERNAME=${SONATYPE_USR} PASSWORD=${SONATYPE_PSW} ci/build-and-deploy-to-maven-central.sh ${PROJECT_VERSION}" + sh "PROFILE=central USERNAME=${SONATYPE_USR} PASSWORD=${SONATYPE_PSW} ci/build-and-deploy-to-maven-central.sh ${PROJECT_VERSION}" } else { - sh "PROFILE=distribute,${RELEASE_TYPE} ci/build-and-deploy-to-artifactory.sh" + sh "PROFILE=${RELEASE_TYPE} ci/build-and-deploy-to-artifactory.sh" } } } @@ -143,7 +143,7 @@ pipeline { stage('Release documentation') { when { anyOf { - branch 'main' + branch '2.4.x' branch 'release-2.4' } } @@ -161,12 +161,12 @@ pipeline { steps { script { - sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pdistribute,docs ' + + sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pdocs ' + '-Dartifactory.server=https://repo.spring.io ' + "-Dartifactory.username=${ARTIFACTORY_USR} " + "-Dartifactory.password=${ARTIFACTORY_PSW} " + "-Dartifactory.distribution-repository=temp-private-local " + - '-Dmaven.test.skip=true -Dmaven.deploy.skip=true deploy -B' + 'deploy -B' } } } diff --git a/pom.xml b/pom.xml index 6c75d28..eb01b45 100644 --- a/pom.xml +++ b/pom.xml @@ -140,9 +140,12 @@ - distribute + docs + true + true + true 0.1.2.RELEASE ${project.build.directory}/shared-resources ${project.build.directory}/generated-asciidoc-sources/source/ @@ -162,6 +165,7 @@ + org.apache.maven.plugins maven-dependency-plugin @@ -183,150 +187,6 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - - -Xdoclint:none - - - - aggregate-javadoc - - aggregate - - package - - ${project.root}/target/site/apidocs - - - - attach-javadocs - - jar - - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.0.0 - - - attach-sources - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - 1.8 - - - - copy-documentation-resources - generate-resources - - - - - - - - - - - - - - run - - - - - create-generated-docs-resources - process-resources - - - - - - - - - - - - - - - - - - - run - - - - - rename-reference-docs - prepare-package - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - run - - - - - - - - - - - - - docs - - - - org.asciidoctor asciidoctor-maven-plugin @@ -402,12 +262,36 @@ + + org.apache.maven.plugins + maven-source-plugin + 3.0.0 + + + attach-sources + + jar-no-fork + + + + + maven-javadoc-plugin -Xdoclint:none + + aggregate-javadoc + + aggregate + + package + + ${project.root}/target/site/apidocs + + attach-javadocs @@ -420,48 +304,103 @@ org.apache.maven.plugins maven-antrun-plugin - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - org.apache.ant - ant-nodeps - 1.8.1 - - - org.tigris.antelope - antelopetasks - 3.2.10 - - + 1.8 + - package-and-attach-docs-zip - package + copy-documentation-resources + generate-resources + + + + + + + + + + + + run - - - - - - - - + + + create-generated-docs-resources + process-resources + + + + + + + + + + + + + + + + + + + run + + + + + rename-reference-docs + prepare-package + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + - - - - - - - - - - - -