diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index 86105eab7..c18aafa53 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -29,9 +29,18 @@ jobs: with: java-version: '17' distribution: 'temurin' + server-id: central + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE - name: Build GCM run: mvn clean deploy -Pjavadoc,sign --file pom.xml + env: + MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_TOKEN }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SECRET_KEY_PASSWORD }} - name: Get GCM Version run: | diff --git a/lessons/pom.xml b/lessons/pom.xml index cfe01e4b7..7ee558651 100644 --- a/lessons/pom.xml +++ b/lessons/pom.xml @@ -57,4 +57,26 @@ lesson-19 lesson-20 + + + + + + org.apache.maven.plugins + maven-install-plugin + + true + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 1caeb15f9..6c647e487 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,8 @@ 3.0.0-M5 3.0.0-M5 3.2.1 + 3.1.1 + 3.1.1 3.5.0 3.2.2 0.4.0 @@ -153,6 +155,16 @@ maven-source-plugin ${maven-source-plugin.version} + + org.apache.maven.plugins + maven-install-plugin + ${maven-install-plugin.version} + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + org.apache.maven.plugins maven-javadoc-plugin @@ -241,6 +253,25 @@ + + + org.apache.maven.plugins + maven-install-plugin + + true + + false + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + false +