EsotericSoftware / jsonbeans

Java object graphs, to and from JSON automatically
BSD 3-Clause "New" or "Revised" License
91 stars 30 forks source link

How to fetch the latest changes using gradle? #12

Closed ThanosFisherman closed 8 years ago

ThanosFisherman commented 9 years ago

Hey Nate, Can you let me know how can I fetch your latest changes in android studio using gradle? So far I do it like this:

buildscript { repositories { jcenter() } dependencies { compile 'com.esotericsoftware:jsonbeans:+' }

But Judging from the dowloaded sources, the latest changes in jsonbeans are not there. Maybe I could fetch this directly from github? Thanks

NathanSweet commented 9 years ago

Sorry, I have never used gradle. On Jan 11, 2015 2:02 PM, "Thanos Fisherman" notifications@github.com wrote:

Hey Nate, Can you let me know how can I fetch your latest changes in android studio using gradle? So far I do it like this:

buildscript { repositories { jcenter() } dependencies { compile 'com.esotericsoftware:jsonbeans:+' }

But Judging from the dowloaded sources, the latest changes in jsonbeans are not there. Maybe I could fetch this directly from github? Thanks

— Reply to this email directly or view it on GitHub https://github.com/EsotericSoftware/jsonbeans/issues/12.

ThanosFisherman commented 9 years ago

hm ok thanks then I guess I will do it the traditional way :)

NathanSweet commented 9 years ago

Gradle is neat, eg being able to build for ios and Android from the command line, but there's something to be said about the simplicity of the old way. On Jan 11, 2015 2:13 PM, "Thanos Fisherman" notifications@github.com wrote:

hm ok thanks then I guess I will do it the traditional way :)

— Reply to this email directly or view it on GitHub https://github.com/EsotericSoftware/jsonbeans/issues/12#issuecomment-69493980 .

ThanosFisherman commented 9 years ago

Are the changes you make here getting pussed to maven repo as well? If yes then I won't have to change anything to my gradle script.

ThanosFisherman commented 9 years ago

Anyway I try to research this a little bit before I end up to the old way and let you know if you are interested

ThanosFisherman commented 9 years ago

Just for the record I was doing it right. Unless the maven central repo is updated with the new jsonbean changes, I'd have to compile the project the old way. There are also some plugins for gradle to fetch directly from github source but nah it's too much hassle and they don't always work as expected So I ended up compiling and including the jsonbeans.jar file in android studio

Cheers