-
Notifications
You must be signed in to change notification settings - Fork 209
Issues/177: Remove usage of internal Gradle API #228
Conversation
I am not sure what's going on, we should have at least another test failing ( Basically with this new solution at the moment we are not generating the Any suggestions @devisnik? |
@tasomaniac any input would be appreciated ;) |
@mr-archano The tests are passing for me locally. 🤔
|
I have added support for snapshot builds in feb0c46. This means that we could give this a go and revert back the changes if anything is wrong. |
@devisnik I have looked into the tests again, and I found out that the assertions were completely bogus 😓 |
@passsy mentioned in #112 (comment) that if we want to generate scopes and exclusions correctly for Android artifacts, we will basically end up re-implementing the internal behaviour of the MavenPublishPlugin. It would be great if we could get input from @bmuschko or @jjohannes here. |
Closing this PR as after some discussion we decided to change approach. New PR incoming. |
Instead of creating a
SoftwareComponent
implementation for the Android library publication we have decided to follow @bmuschko advice and generate the missing nodes in the POM file manually. The approach should be functionally similar to the previous implementation, where we consider all theModuleDependency
from the relevant configurations:api
andimplementation
(andcompile
for backward-compatibility reasons).We have also added the generation of the
exclusions
node for those dependencies that have specified some.This should fix #177 and #179
NOTE: this is the minimum amount of work needed to make the plugin work with Gradle 4.5 and above. There's few more refactoring and improvements we are planning to tackle, but the aim here is to publish a new version of the plugin with a fix asap.