objectbox-java: ObjectBox is not entirely FOSS

Hello ObjectBox team!

In the instructions on the README of the project, we have these instructions:

buildscript {
    ext.objectboxVersion = "3.3.1"
    repositories {        
        mavenCentral()    
    }
    dependencies {
        classpath("io.objectbox:objectbox-gradle-plugin:$objectboxVersion")
    }
}

The plugin added to the classpath is in MavenCentral, this is the latest published version.

As an educated developer, I downloaded the sources jar, so that I could validate the source code that my app is using.

Inside that file, however, there’s only a README file:

Not available yet

And naturally, by downloading the Jar file, only .class files are available.


For this reason, the gradle plugin is considered proprietary code. And this has lead F-Droid - the main FLOSS Android distributor - has blocked many apps, such as

And probably more to come.


This is a very serious bug. I imagine it’s somewhere where the code is published to MavenCentral that is not including the source codes.

This issue is a blocker for anyone that wants to integrate ObjectBox to an 100% FLOSS app, such as ones deployed to F-Droid

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 15
  • Comments: 16 (7 by maintainers)

Most upvoted comments

@marek22k If you are interested in this, please thumbs up the first post instead. This helps us track interest.

Regarding the “likely outcome”… At this time, the topic is very actively discussed and we’ll really try share the outcome soon-ish - e.g. in the next couple of months.

So, a year later, have some decision perhaps been reached @greenrobot ?

So TL;DR: yes, but there are things to take care of first.

Thanks for the answer @greenrobot-team, but both that FAQ you quoted and linked documents seems to be in contradiction of that unequivocal “TL;DR: yes”?

I’ve wanted to know if you plan to opensource all of the components, but this quote (“we want to open source more components at some point”) and linked docs (“In this article, we mean the latter and it inherently entails contributing a useful part of a solution to open source”) seems to imply that you intend to open-source only some of the components, and not ALL of them.

So, to clarify, does this “yes, but there are things to take care of first” in comment above means that:

  • you’ve decided to change the strategy and now intend to open source all of the components, but you just didn’t have time to update the FAQ and online documentation yet, or
  • that FAQ and docs are still correct and you still mean “we only intend to open source some more parts of the code in the future, but not the whole of it” ?

(Note: I’m not here to bash anyone’s business decisions or whatever, I’m just interested in clear and unambiguous truthful answer, so everybody can be on the same page and make informed decisions, instead of being potentially misled)

And for those worrying about maintenance, you already can get source code access for your (commercial) project if you ask

If one does ask, under what exact license would they get that fully “corresponding source” (as defined by GPLv3)? One might be interested in paying if such license is to their liking (e.g. if it is GPLv3 compatible).

For the record, I’m not particularly interested about just the maintenance effort needed here, I’m more interested in avoiding vendor lock-in and having fully corresponding source guaranteeing me 4 essential freedoms (as defined by FSF), allowing me to publish the app (using this library) under GPLv3 license. Is there a way I can accomplish those objectives with objectbox (and if so, how)? And if I cannot at the moment, are there plans in motion so I could do that in the (foreseeable) future?

I only requested for GPLv3 components to be open sourced to respect the license. This means only the build-time part was open sourced. The most important part of ObjectBox is still proprietary (objectbox-sync). That’s the runtime JNI library (.so) that allows to read in the database.

F-Droid requirements put aside, IMO it’s a risk for any project to rely on only one company for such an important component (the database). Having a proprietary database doesn’t allow for interoperability. Basically, if they stop maintaining it and it no longer works or something, you can’t just use another library and you’re stuck with a brick in the worst case scenario. (To be perfectly fair, European laws allow you to reverse-engineer a proprietary component for (and only for) interoperability purposes but good luck with that)

Their previous project greendao is barely maintained and no one else can continue improving/maintaining it if they wish to, because there are still proprietary parts.

The irony? Their database is built upon LMDB which is an open source database. This means that ObjectBox would not have been possible if LMDB wasn’t open source (at least, in the state it currently exists).

I wish someone at ObjectBox would understand that. Just like they rely on a wonderful product and improved it, some others may want to do the same.

Given how many open source databases exist out there, it’s not hard to replace ObjectBox with something else. I just wish I had known this first so as to not lose time implementing it. They say “you should check the licences of your dependencies on Maven” but objectbox-gradle-plugin doesn’t mention that, it’s one of many other pulled dependencies that mentions “ObjectBox binary license” and even that one is mixed with 2 other licenses, so the confusion is there…

Regarding the “likely outcome”… At this time, the topic is very actively discussed and we’ll really try share the outcome soon-ish - e.g. in the next couple of months.

Thanks for answers, everyone!

For devs: are there any plans to opensource the remainder so it could be used in copylefted projects (like GPLv3 licensed projects, publishing on f-droid etc) but it is just taking some time (as the situation was in #560), or is the plan for proprietary parts to remain proprietary?

First, this is not an bug, and being a “blocker” is completely wrong relating to “Open Source” in general

I’ve rephrased that to reflect better what it’s blocking

On the upside, it’s not as offensive as your first attempt at an ticket, so I won’t close the ticket right away.

The intention was never to be offensive. Maybe aggressive, but not offensive. I’m sorry for offending you and your project. It’s a masterpiece of code that you’ve developed, and that’s why I’m trying to solve this specific issue