chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories
Apache License 2.0
1.05k stars 283 forks source link

Upload library with module dependencies #44

Closed dexafree closed 9 years ago

dexafree commented 9 years ago

Hi there.

I'm trying to upload an updated version of my library MaterialList, and I've successfully uploaded versions 2.0.2 and 2.0.3 (by now only 2.0.2 is available, within a few hours v2.0.3 should be also).

The problem comes when, between 2.0.1 and 2.0.2 a massive refactor was done, and now the library is divided into two modules, let's call them "core" and "implementation".

Before there was only a module, 'materialList'. Now there are two: 'materialList', which contains the core, and 'sampleCards', which contains the implementation.

The implementation module depends on the core, and this is the module I want to upload (the implementation one).

It contains the line

compile project(':materialList')

So I thought that it would compile it, and be uploaded together. But when I try to use it via mvn, it throws the following error:

Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
   > Could not resolve com.github.dexafree:materialList:2.0.2.
     Required by:
         com.github.dexafree:app:2.0.3 > com.github.dexafree:materiallist:2.0.2
      > inconsistent module metadata found. Descriptor: com.github.dexafree:materiallist:2.0.2 Errors: bad module name: expected='materialList' found='materiallist'

I don't know if the expected='materialList' found='materiallist' case problem is the main problem here, or if it's just uploading the implementation module and not the core one.

Thank you in advance

amadib commented 8 years ago

@dexafree I'm faced with a similar issue, were you able to figure this out?

dexafree commented 8 years ago

I ended up publishing the whole project, sorry :worried:

AlexanderLS commented 6 years ago

@dexafree @amadib It will work with https://github.com/Vorlonsoft/GradleMavenPush. Please read README.md before use it.