Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solarnetwork/nifty-modbus
A delightful little Modbus library for Java.
https://github.com/solarnetwork/nifty-modbus
java jserialcomm modbus modbus-master modbus-rtu modbus-slave modbus-tcp netty purejavacomm
Last synced: about 1 month ago
JSON representation
A delightful little Modbus library for Java.
- Host: GitHub
- URL: https://github.com/solarnetwork/nifty-modbus
- Owner: SolarNetwork
- License: gpl-2.0
- Created: 2022-11-28T05:50:48.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T22:11:07.000Z (about 1 month ago)
- Last Synced: 2024-11-26T23:20:49.263Z (about 1 month ago)
- Topics: java, jserialcomm, modbus, modbus-master, modbus-rtu, modbus-slave, modbus-tcp, netty, purejavacomm
- Language: Java
- Homepage:
- Size: 823 KB
- Stars: 30
- Watchers: 9
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README-Developers.md
- License: LICENSE
Awesome Lists containing this project
README
# Nifty Modbus - Developers Guide
This document has information for developers of Nifty Modbus.
# Publishing to Local Maven repository
You can publish the artifacts to your local Maven repository (e.g. `~/.m2/repository`) like this:
```sh
./gradlew publishToMavenLocal
```# Publishing to Maven Central
To publish to Maven Central use the `publish` Gradle task. You must provide your Sonatype
credentials and the GPG signing key to use as project properties:| Property | Description |
|:---------|:------------|
| `signing.gnupg.keyName` | The GPG signing key ID to use. |
| `ossrhUsername` | The Sonatype username. |
| `ossrhPassword` | The Sonatype password. |You can provide these using `-P` command line arguments, e.g.
```sh
./gradlew publish -Psigning.gnupg.keyName=ABC123DEF -PossrhUsername=user -PossrhPassword=pass
```Alternatively you can create a `gradle.properties` file (which will be ignored by Git) and place
the properties there, e.g.```
signing.gnupg.keyName = ABC123DEF
ossrhUsername = user
ossrhPassword = password
```Alternatively you can also provide the credentials via environment variables (the signing key, as it
contains dot characters, cannot so easily be provided this way):* `ORG_GRADLE_PROJECT_ossrhUsername` - the username
* `ORG_GRADLE_PROJECT_ossrhPassword` - the passwordFor example you could create a small shell script `nifty-publish.env`:
```sh
export ORG_GRADLE_PROJECT_ossrhUsername="my username"
export ORG_GRADLE_PROJECT_ossrhPassword="my password"
```Then you can do this to publish:
```sh
source nifty-publish.env
./gradlew publish -Psigning.gnupg.keyName=ABC123DEF
```