realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.47k stars 1.75k forks source link

Support Maven #2342

Open cmelchior opened 8 years ago

cmelchior commented 8 years ago

Right now we only support Gradle as a build system as it is the official build system for Android. However some people still use other systems like Maven.

Given enough interest we should support Maven as well, but it is not without hurdles as we right now depend on the Transform API that as far as I know is only supported in Gradle.

wuwu2000 commented 8 years ago

What a lightning fast answer! :+1: Thanks a lot! I was just curious because we consider to move from gradle to maven at the moment to end all this gradle pain.

cmelchior commented 8 years ago

Maven also has it share of pains, just different ones :)

ruurd commented 8 years ago

I'd rather have well documented maven pains shared by many other mavenmavens than be forced to use the build-system-du-jour. Really a pity that Realm Java now is not supported for the myriad of products and libraries that are maven based. Find a better solution. Supporting only gradle is wrong. Supporting a maven build artifact really opens realm to a much larger ecosystem. Which is right.

beeender commented 8 years ago

https://github.com/icon-Systemhaus-GmbH/javassist-maven-plugin this project might help, http://stackoverflow.com/questions/12423157/integrating-javassist-byte-code-manipulation-with-maven-compilation

bipinvaylu commented 8 years ago

Hey, I am also checking out about does realm support maven ? Here is my use case.

gevariya-ajit commented 8 years ago

@cmelchior can you please help to figure out, how to support realm with sharable project lib models in android and java server projects?

Zhuinden commented 7 years ago

@cmelchior now that Realm supports Linux (with RealmJS) and Win32 (with RealmJS), once https://github.com/realm/realm-java/issues/2339 is done, you also need to consider that most not-Android projects use Maven, not Gradle.

ghost commented 7 years ago

Sometimes we need to provide a jar to a third party, so the realm plugin does not support so that we can not use

listepo commented 7 years ago

Hi, any news?

Zhuinden commented 7 years ago

Javassist seems to be supported with Maven, but I think the BytecodeTransformer was written in Groovy