diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..d60a48f --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,2 @@ +_extends: .github +tag-template: central-repository-pom-$NEXT_MINOR_VERSION diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..8267b6d --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base", + ":semanticCommitsDisabled" + ], + "automerge": true, + "reviewers": [ + "team:core" + ], + "labels": [ + "dependencies" + ], + "schedule": ["on the first day of the month"], + "rebaseWhen": "conflicted" +} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..f87134b --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,17 @@ +# Note: additional setup is required, see https://github.com/jenkinsci/.github/blob/master/.github/release-drafter.adoc + +name: Release Drafter + +on: + push: + branches: + - master + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + # Drafts your next Release notes as Pull Requests are merged into the default branch + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 524f096..32d2a70 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* replay_pid* + +.idea +target/ diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e740fb0 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +node('maven-17') { + checkout scm + timeout(time: 5, unit: 'MINUTES') { + ansiColor('xterm') { + withEnv(['MAVEN_OPTS=-Djansi.force=true']) { + sh 'mvn -B -Dstyle.color=always -ntp clean verify' + } + } + } +} diff --git a/README.md b/README.md index e1c74f2..a3dac1f 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# central-repository-pom \ No newline at end of file +# central-repository-pom + +The parent pom used by Jenkins tooling published to the central repository. diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..4aecba8 --- /dev/null +++ b/pom.xml @@ -0,0 +1,178 @@ + + + 4.0.0 + + io.jenkins.tools + central-repository-pom + 1.0-SNAPSHOT + pom + + Root POM for Publishing Jenkins tooling to the central repository + ${project.name} + https://github.com/jenkinsci/central-repository-pom + + + MIT license + https://opensource.org/license/mit/ + repo + + + + + + Alexander Brandes + NotMyFault + contact(at)notmyfault.dev + + release + maintainer + + + + + + scm:git:git@github.com/jenkinsci/${project.artifactId}.git + scm:git:ssh://git@github.com/jenkinsci/${project.artifactId}.git + https://github.com/jenkinsci/${project.artifactId} + HEAD + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.5.0 + + + + + + maven-compiler-plugin + 3.11.0 + + 8 + + + + org.apache.maven.plugins + maven-javadoc-plugin + + syntax,reference,html + + + + maven-release-plugin + 3.0.1 + + release + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://oss.sonatype.org/ + true + + + + + + org.apache.maven.scm + maven-scm-provider-gitexe + 2.0.1 + + + org.apache.maven.scm + maven-scm-manager-plexus + 2.0.1 + + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.4.5 + + + maven-javadoc-plugin + + + + + + + release + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.1.0 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.0 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.5.0 + + + attach-javadocs + + jar + + + + + + + + +