diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 3d77a66c..43ff305d 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [ main ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [ main ] schedule: - cron: '27 9 * * 4' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f77e7d37..ee950cce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ on: branch: description: "The branch to use when releasing" required: true - default: "master" + default: "main" type: string jobs: @@ -54,8 +54,8 @@ jobs: JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }} JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} - JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ secrets.NEXUS_USERNAME }} - JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.NEXUS_USERNAME }} + JRELEASER_MAVENCENTRAL_SONATYPE_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} - name: Set next version diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 1509a1ea..31091fb4 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -3,7 +3,7 @@ name: Sonar on: push: branches: - - master + - main env: CI: true diff --git a/jreleaser.yml b/jreleaser.yml index 4b2cb435..3c617619 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -5,9 +5,10 @@ project: authors: - Carlos E. Feria Vila license: Apache-2 - java: - groupId: io.github.project-openubl - version: '17' + languages: + java: + groupId: io.github.project-openubl + version: '17' inceptionYear: '2019' links: homepage: https://project-openubl.github.io/ @@ -55,19 +56,17 @@ release: signing: active: ALWAYS - armored: true + pgp: + armored: true deploy: maven: pomchecker: failOnWarning: false - nexus2: - maven-central: + mavenCentral: + sonatype: active: ALWAYS - url: https://oss.sonatype.org/service/local - snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots - closeRepository: true - releaseRepository: true + url: https://central.sonatype.com/api/v1/publisher stagingRepositories: - target/staging-deploy