PortMapper is available as a Maven dependency at Maven Central. Use the following coordinates:
-
Gradle:
com.github.kaklakariada:portmapper:2.2.4
-
Maven:
<dependency> <groupId>com.github.kaklakariada</groupId> <artifactId>portmapper</artifactId> <version>2.2.4</version> </dependency>
Important: The version published to Maven Central is intended to be used as a library in other programs, not as a standalone program. If you don't know what this means you probably want to download UPnP PortMapper from SourceForge.
Build PortMapper on the command line:
git clone https://github.com/kaklakariada/portmapper.git
cd portmapper
./gradlew build
java -jar build/libs/portmapper-*.jar
./gradlew licenseFormat
./gradlew dependencyUpdates
- Checkout the
main
branch, create a new branch. - Update version number in
build.gradle
andREADME.md
. - Add changes in new version to
CHANGELOG.md
. - Commit and push changes.
- Create a new pull request, have it reviewed and merged to
main
.
- Start the release workflow
- Run command
gh workflow run release.yml --repo kaklakariada/portmapper --ref main
- or go to GitHub Actions and start the
release.yml
workflow on branchmain
.
- Update title and description of the newly created GitHub release.
- After some time the release will be available at Maven Central.