-
Notifications
You must be signed in to change notification settings - Fork 60
Use maven-publish in the android plugin #1
Comments
This issue is broader than that, since there are currently some inconsistencies that would be nice to improve:
When this is tackled, also make sure to go through the templates, comments, existing code and documentation to make sure everything is updated to the resulting format. |
Does the new maven-publish plug-in work for android yet? |
online reports are mixed. I would guess that by now it must be fully supported.
|
Some updates. TL;DR: we still can't use maven-publish for the Android projects. I asked the Android Gradle experts and they confirmed it is not yet working and that the maven-publish plug-in continues to be incubating despite a few years now having gone by. I also found a few hacks like this that try to put together the proper dependencies for an Android Library project manually, but my testing shows that this solution won't quite work for us, because it produces dependency versions in the pom.xml that don't mirror the range specifications of the project but instead use the versions resolved at build time, which is not exactly what we want. On the positive side, I am almost sure that the |
Aye, I've had problems with hacks before that don't resolve transitive dependencies in the pom.xml (mailing list archived message is here). Just repeating what I had in the email so we have a reference here. The only thing that should be a concern is publishing to maven local would cause a problem:
From what I read in the maven-publish documentation, |
We currently have to fallback to old maven publishing using uploadArchives with android (see here, especially the comments section for reasons why it won't currently work).
This means we can't match what we are doing with rosjava, nor even think about debs for it yet. Debs are a no-show anyway because there is no easy way of installing the android sdk yet so that is not a great loss.
Still it would be good to get rosjava and rosandroid behaving the same way when publishing.
The text was updated successfully, but these errors were encountered: