Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.bartprokop:rxtx:2.2.1-fat'
}
dependencies {
implementation("com.github.bartprokop:rxtx:2.2.1-fat")
}
<dependency>
<groupId>com.github.bartprokop</groupId>
<artifactId>rxtx</artifactId>
<version>2.2.1-fat</version>
</dependency>
libraryDependencies += "com.github.bartprokop" % "rxtx" % "2.2.1-fat"
:dependencies [[com.github.bartprokop/rxtx "2.2.1-fat"]]
Maven coordinates:
<dependency>
<groupId>dev.prokop.rxtx</groupId>
<artifactId>rxtx</artifactId>
<version>2.2.2</version>
</dependency>
Serial Port rxtx library
Version 2.1.8 is:
Version 2.2.0.pre2 is:
Version 2.2.0.20110203 is:
Currently I'm working on version 2.3.0:
This is an attemp to revive the old but very good rxtx library that allows for using serial ports in Java. I was using rxtx 2.1.7 for many years. But as my projects have evolved from IDE build through ant to Maven and JDK from 1.1 to 1.8 this was aparent that rxtx is unmaintained. So i tried to get the sources (now not easilly avaiable) of latest stable version (stable in terms of used in many production system) and continue that great piece of software on github.
The intention is to release version 2.2.0 with very minimal changes to 2.1.7r2 codebase. Just make it clean Maven project and add digital signature for all classes (because of a need to use it in applets). Version 2.2.1 will undergo some refactoring to meet contemporary Java good practices.
Resources:
RXTX binary builds provided as a courtesy of Mfizz Inc. (http://mfizz.com/). Please see http://mfizz.com/oss/rxtx-for-java for more information.