Closed VedavyasBhat closed 5 years ago
+1 about the error existing and the code to fix it. I ran into the issue mentioned above and in https://github.com/bintray/gradle-bintray-plugin/issues/272. @VedavyasBhat 's code above got rid of it 🚀
Thank you @VedavyasBhat and @langsmith for pointing this out! Would one of you be willing to create a pull request to fix this?
Sure, I'll have one up shortly.
Cool, thanks @VedavyasBhat
The gradle sync fails when using the code snipped with the error:
Gradle DSL method not found: 'asNode()'
After moving the line def dependenciesNode = asNode().getAt('dependencies')[0] ?: asNode().appendNode('dependencies')
into the pom.withXML {}
-scope the gradle sync was successfull. This should be updated in the docs :)
To package an Android library, the POM file doesn't include dependencies, so a manual override to the POM must be made. Step 4 of the docs here covers that, but there is an error in the following block:
In the
implementation
(andapi
, for that matter) configuration, there is nodependenciesNode
variable; it needs to be defined. Here is the above block with the fix (code tested and POM verified):