Skip to content
This repository has been archived by the owner on Apr 27, 2019. It is now read-only.

Upload to maven central? #38

Closed
ened opened this issue Nov 28, 2014 · 9 comments
Closed

Upload to maven central? #38

ened opened this issue Nov 28, 2014 · 9 comments

Comments

@ened
Copy link

ened commented Nov 28, 2014

Are you planning to upload this neat library to Maven Central? It would certainly make it more accessible for new developers to include the project with a one-liner in their gradle config. :)

@mathew-kurian
Copy link
Owner

I have never done this before. Any suggestions or tutorials that you recommend for how to do this?

@bspeice
Copy link

bspeice commented Dec 1, 2014

I second the motion, and hope I can give a bit of help.
First things first, you would need to refactor out the bits specific to DocumentView into their own project and repository.
Secondly, there are instructions over here on how to upload the artifact to Bintray, which isn't Maven Central, but will likely be far easier to manage.
I'm very interested in using DocumentView, would be happy to help if there's something I can do.

@mathew-kurian
Copy link
Owner

@DjBushido What about test cases? Can they be kept along with the package?

@bspeice
Copy link

bspeice commented Dec 1, 2014

@bluejamesbond Depends. The android test cases would have to reside alongside the Android project of course, but the DocumentView-specific tests can (and should) be moved to the new project. Publishing will release only the actual source code, and will not put the testing code in production.

@mathew-kurian
Copy link
Owner

@DjBushido Oh I see! And what about the gradle stuff?

@bspeice
Copy link

bspeice commented Dec 1, 2014

@bluejamesbond Not sure what you mean. Gradle will still manage building the project, and will also handle releasing the artifact as a Maven dependency into Bintray/JCenter (though I expect you'll need a plugin like this). You'll need a separate build.gradle for the DocumentView itself, but the idea is to factor out the standalone bits so everyone can re-use it.

@mathew-kurian
Copy link
Owner

@DjBushido Thanks

@mathew-kurian
Copy link
Owner

Done.

compile 'com.github.bluejamesbond:textjustify-android:2.0.1'

@bspeice
Copy link

bspeice commented Jan 13, 2015

Awesome, thanks for this! So excited to start using it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants