From 64ecfb20fa7a788c9448eceb2ca2b657c50a83be Mon Sep 17 00:00:00 2001 From: MathieuSoysal Date: Sun, 24 Jan 2021 11:47:02 +0100 Subject: [PATCH 1/6] =?UTF-8?q?=F0=9F=94=A7=20Mise=20=C3=A0=20jour=20confi?= =?UTF-8?q?g=20pom.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index d70d879..58eca6d 100644 --- a/pom.xml +++ b/pom.xml @@ -55,8 +55,8 @@ - MIT License - http://www.opensource.org/licenses/mit-license.php + Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt @@ -96,9 +96,10 @@ - release + deploy + org.apache.maven.plugins maven-source-plugin @@ -107,11 +108,12 @@ attach-sources - jar + jar-no-fork + org.apache.maven.plugins maven-javadoc-plugin @@ -125,6 +127,7 @@ + org.apache.maven.plugins maven-gpg-plugin @@ -136,9 +139,16 @@ sign + + + --pinentry-mode + loopback + + + @@ -146,16 +156,19 @@ + org.apache.maven.plugins maven-surefire-plugin 3.0.0-M5 + org.apache.maven.plugins maven-failsafe-plugin 3.0.0-M5 + org.apache.maven.plugins maven-compiler-plugin @@ -166,6 +179,7 @@ ${project.build.sourceEncoding} + org.sonatype.plugins nexus-staging-maven-plugin @@ -177,6 +191,7 @@ true + org.jacoco jacoco-maven-plugin @@ -197,6 +212,7 @@ + From 36a154d65818e374434f54f84a8e53ed4585e6be Mon Sep 17 00:00:00 2001 From: Mathieu Soysal <43273304+MathieuSoysal@users.noreply.github.com> Date: Sun, 24 Jan 2021 12:02:53 +0100 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=92=9A=20Ajout=20maven=20package=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ba39db2 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-18.04 + steps: + - name: Check out Git repository + uses: actions/checkout@v2 + + - name: Install Java and Maven + uses: actions/setup-java@v1 + with: + java-version: 11 + + - name: Release Maven package + uses: samuelmeuli/action-maven-publish@v1 + with: + gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} + nexus_username: ${{ secrets.NEXUS_USERNAME }} + nexus_password: ${{ secrets.NEXUS_PASSWORD }} From 6da34438db29cde1671ad9283d8c8d55461a7f3e Mon Sep 17 00:00:00 2001 From: Mathieu Soysal <43273304+MathieuSoysal@users.noreply.github.com> Date: Sun, 24 Jan 2021 14:08:03 +0100 Subject: [PATCH 3/6] Create CODEOWNERS --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..f78911d --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +@MathieuSoysal @emerick-biron + +*.java @MathieuSoysal @emerick-biron From 8f021ad50ffab76da338610942f82f4e97d13f32 Mon Sep 17 00:00:00 2001 From: MathieuSoysal Date: Sun, 24 Jan 2021 14:47:05 +0100 Subject: [PATCH 4/6] =?UTF-8?q?=F0=9F=91=A5=20Mise=20=C3=A0=20jour=20CODEO?= =?UTF-8?q?WNERS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/CODEOWNERS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f78911d..861260e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,7 @@ @MathieuSoysal @emerick-biron *.java @MathieuSoysal @emerick-biron + +pom.xml @MathieuSoysal + +.github/** @MathieuSoysal \ No newline at end of file From 2105e0082a71c1ceb67adaecd12c8dc851d77759 Mon Sep 17 00:00:00 2001 From: Mathieu Soysal <43273304+MathieuSoysal@users.noreply.github.com> Date: Sun, 24 Jan 2021 15:08:59 +0100 Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=92=9A=20Mise=20=C3=A0=20jour=20maven?= =?UTF-8?q?-package=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Liaison Github package et Maven Central --- .github/workflows/maven-package.yml | 54 +++++++++++++++++++++++++++++ .github/workflows/release.yml | 25 ------------- 2 files changed, 54 insertions(+), 25 deletions(-) create mode 100644 .github/workflows/maven-package.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/maven-package.yml b/.github/workflows/maven-package.yml new file mode 100644 index 0000000..5002f3c --- /dev/null +++ b/.github/workflows/maven-package.yml @@ -0,0 +1,54 @@ +name: Maven Package + +on: + release: + types: [created] + +jobs: + publish: + + runs-on: ubuntu-latest + + env: + artifact_name: edt-iut-umontp + + steps: + - uses: actions/checkout@v2 + + - name: Get the release version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + + - name: Set up JDK 11 for deploy to OSSRH + uses: actions/setup-java@v1 + with: + java-version: 11 + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_CENTRAL_TOKEN + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - name: Update package version + run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }} + + - name: Publish to Apache Maven Central + run: mvn deploy -PossrhDeploy + env: + MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }} + MAVEN_CENTRAL_TOKEN: ${{ secrets.NEXUS_PASSWORD }} + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + + - name: Set up JDK 11 for deploy to github packages + uses: actions/setup-java@v1 + with: + java-version: 11 + server-id: github + + - name: Publish to GitHub Packages Apache Maven + run: mvn deploy -PgithubDeploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index ba39db2..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Release - -on: - release: - types: [created] - -jobs: - release: - runs-on: ubuntu-18.04 - steps: - - name: Check out Git repository - uses: actions/checkout@v2 - - - name: Install Java and Maven - uses: actions/setup-java@v1 - with: - java-version: 11 - - - name: Release Maven package - uses: samuelmeuli/action-maven-publish@v1 - with: - gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} - nexus_username: ${{ secrets.NEXUS_USERNAME }} - nexus_password: ${{ secrets.NEXUS_PASSWORD }} From d5825d66fa5876ac432456e225465386d0a072bd Mon Sep 17 00:00:00 2001 From: MathieuSoysal Date: Sun, 24 Jan 2021 15:10:41 +0100 Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=94=A7=20Mise=20=C3=A0=20jour=20confi?= =?UTF-8?q?g=20pom.xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout profil Github Package --- pom.xml | 72 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 47 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index 58eca6d..a5899e2 100644 --- a/pom.xml +++ b/pom.xml @@ -70,36 +70,58 @@ Mathieu SOYSAL Mathieu.Soysal@outlook.fr + https://MathieuSoysal.me/ com.github.devlab-umontp https://github.com/DevLab-umontp + + github + https://github.com/DevLab-umontp/Librarie-Java-EDT/issues + + scm:git:git://github.com/DevLab-umontp/API-JAVA-EDT.git scm:git:ssh://github.com:DevLab-umontp/API-JAVA-EDT.git http://github.com/DevLab-umontp/API-JAVA-EDT - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - Sonatype - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - + + - deploy + ossrhDeploy + + + + ossrh + Central Repository OSSRH + https://oss.sonatype.org/content/repositories/snapshots + + + ossrh + Central Repository OSSRH + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.8 + true + + ossrh + https://oss.sonatype.org/ + true + + + org.apache.maven.plugins maven-source-plugin @@ -152,6 +174,18 @@ + + + + githubDeploy + + + github + GitHub DevLab-umontp Apache Maven Packages + https://maven.pkg.github.com/DevLab-umontp/Librarie-Java-EDT + + + @@ -180,18 +214,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.8 - true - - ossrh - https://oss.sonatype.org/ - true - - - org.jacoco jacoco-maven-plugin