Skip to content

Commit

Permalink
build: remove travis references, update release instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPaul-Perfana committed Apr 26, 2024
1 parent 596420a commit bd699c1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 82 deletions.
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# SonarQube PMD Plugin [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.sonarsource.pmd/sonar-pmd-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.sonarsource.pmd/sonar-pmd-plugin)
[![Build Status](https://api.travis-ci.org/jborgers/sonar-pmd.svg?branch=master)](https://travis-ci.org/jborgers/sonar-pmd)
[![SonarStatus](https://sonarcloud.io/api/project_badges/measure?project=org.sonarsource.pmd%3Asonar-pmd&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.sonarsource.pmd%3Asonar-pmd)
[![SonarStatus](https://sonarcloud.io/api/project_badges/measure?project=org.sonarsource.pmd%3Asonar-pmd&metric=coverage)](https://sonarcloud.io/dashboard?id=org.sonarsource.pmd%3Asonar-pmd)
# SonarQube PMD Plugin

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.sonarsource.pmd/sonar-pmd-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.sonarsource.pmd/sonar-pmd-plugin)
![Build Status](https://github.com/jborgers/sonar-pmd/actions/workflows/build.yml/badge.svg)

Sonar-PMD is a plugin that provides coding rules from [PMD](https://pmd.github.io/) for use in SonarQube.

Starting April 2022, the project has found a new home. We, [jborgers](https://github.com/jborgers) and [stokpop](https://github.com/stokpop),
Expand Down
37 changes: 22 additions & 15 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
To release a build
# Create release

- change all `x.y.z-SNAPSHOT` to `x.y.z` in all poms
- change tag `HEAD` to `x.y.z` in scm tag in parent pom
- finish and update `CHANGELOG.md`, update `..master` to `..x.y.z`
- commit and push with comment "Release x.y.z"
- `git tag x.y.z`
To create a new release, set git tag with new version number and push the tag.
The Github Actions `release.yml` will build and release to Github actions and Maven Central.

Make sure that all commits have been pushed and build
with `build.yml` workflow before setting and pushing the tag.

Steps:
- create release notes in `CHANGELOG.md`, update `..master` to `..x.y.z`
- commit `CHANGELOG.md`
- `git tag x.y.z`
- `git push --tags`
- use github action `release` to deploy to maven central
- release staging repo in Sonatype ui
- change all `x.y.z` in all poms to `x.y.z+1-SNAPSHOT`
- change tag `x.y.z` in scm tag in parent pom to `HEAD`

The release workflow will be triggered, using the git tag for `-Drevision=<tag>`.

- manually release staging repo in Sonatype (https://central.sonatype.com/)
- manually change Github actions release from draft to final here: [releases](https://github.com/jborgers/sonar-pmd/releases)

Next prepare for next SNAPSHOT:

- change `revision` property in `x.y.z+1-SNAPSHOT` in parent pom
- prepare `CHANGELOG.md` for `x.y.z+1-SNAPSHOT`
- commit and push with comment "Prepare for release x.y.z+1-SNAPSHOT"
- commit and push with comment "Prepare release x.y.z+1-SNAPSHOT"

When release fails before "release staging in Sonatype ui"
When release fails before "release staging in Sonatype"
- drop staging repo
- `git tag -d x.y.z` or delete tag in IntelliJ
- `git push origin :refs/tags/x.y.z` or delete tag in context menu, delete remotes
- fix-commit-push and start release again with tagging steps above

In GitHub:

- create release from tag via Actions
- update release notes with `CHANGELOG.md` contents
- download `sonar-pmd-plugin-x.y.z.jar` and upload in release notes
- close milestone `x.y.z`
- create new milestone `x.y.z+1`

Expand Down
30 changes: 0 additions & 30 deletions travis.sh

This file was deleted.

0 comments on commit bd699c1

Please sign in to comment.