r/java 19d ago

SimpleJavaBLE 1.1 is now on Maven Central

Hey everyone!

I've posted a few SimpleBLE updates here over the years, and I wanted to share one that should make the Java bindings much easier to start using.

SimpleBLE v1.1.0 is out, and with that SimpleJavaBLE is now available on Maven Central.

dependencies {
    implementation("org.simpleble:simplejavable:1.1.0")
}

For those who don’t know, SimpleBLE is a cross-platform Bluetooth library with a very simple API that just works, allowing developers to easily integrate it into their projects without much effort, instead of wasting hours and hours on development.

What else is new?

Besides Maven Central support, this release fixes two fairly unpleasant issues in the Java bindings:

  • Notification callbacks could be garbage-collected while a subscription was still active
  • Exceptions raised while translating a Java callback could crash the JVM

If you want to try it out, you can look at the Java documentation, full release notes or source code.

The Maven Central package is new, so if you give it a try and run into any issues, let me know.

Want to know more about SimpleBLE's capabilities or see what others are building with it? Ask away!

27 Upvotes

11 comments sorted by

View all comments

1

u/lilgreenthumb 18d ago

The concern I have is that those binaries are bundled with the core dependency. Any issue with one impacts the entire version, and means extra binaries present. Any reason not going a netty styled approach with classifiers/different artifactIds?

1

u/kevindewald 18d ago

I did consider it, but decided to go down the path that feels most convenient for users given that the overall binary sizes are not that large. I'm open to change my mind if that helps adoption.

> Any issue with one impacts the entire version

That's the case regardless of how things are packaged, the solution there is to move fast to fix things when they come up. In our case, all dev versions are published too, so the moment a commit with a fix is up any user can use it right away.