-
Notifications
You must be signed in to change notification settings - Fork 211
Mysterious "maven" publication from nowhere #266
Comments
Hi @rekire, I was planning to take a look at the issue later this evening. Couple of questions:
|
He is talking about this:
https://github.com/rewe-digital-incubator/dialog/blob/master/ssml-plugin/build.gradle
…On Tue, Feb 26, 2019, 5:42 PM Antonio Bertucci ***@***.***> wrote:
Hi @rekire <https://github.com/rekire>, I was planning to take a look at
the issue. Couple of questions:
- is the module you are experiencing the issue with a jvm (as in not
Android) module?
- is there any repo I can checkout to troubleshoot the issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#266 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJwYe_VhJZDnkPTQE_WvJJSb3_DdzNv4ks5vRWPrgaJpZM4bSLyi>
.
|
Hi @rekire I just checked and you're right, the problem is that the I hacked something together that should provide what you are looking for: |
I tried to apply that to my core module then it seems that no artifact will be created:
Do you have an idea why? |
I just executed your branch, the main artifact is now missing :/ |
@rekire just to be clear: when working on that branch I was running this command
Basically the "fix" is applied only to the |
There are just two jars that should be three. |
I'm still checking it, but I guess I found a solution for the missing jar. I just need to add |
Yet another update: While it seems to work fine. I found out that now the dependencies are missing in the pom file. You can see my current adaptation here: https://github.com/rewe-digital-incubator/dialog/blob/alexa_plugin/publish.gradle |
I found some open ends to wire all the things together. However that falls in my top 5 of my hackiest solutions to resolve a problem which I really prefer not to use on an open source project. With My solution to inject them into the pom would use reflection something like that:
Pleaaaaase offer me a better solution 😃 |
@rekire I hear you, and I believe that it would be possible to provide that functionality you need assuming that the plugin we use underneath ( I agree that using the dependencies as you mentioned is a bit hacky, and the generation of the pom file is something that gave us so much trouble in the past I had to basically rewrite the way the Android artifacts are collected (if you are curious see the long conversation in #177 and #249 as crazy solution for that). Solving your issue while not breaking any of the work introduced in #249 sounds like an amount of effort I can't commit to at the moment because of a very busy schedule at work, but I promise that this is on my todo list and will keep you posted if any update :) |
I guess I found now a clean solution. I will validate the results later and will create a pull request if it really works fine. My current idea is to define myself the "maven" publication before you do that. The patch now is to check in your plugin if there is already a maven publication and avoid to create a default publication which makes trouble in my case. Here just to get the point (ReleasePlugin):
|
#267 is now merged to As mentioned in the PR before we roll out a full release we should keep the Android support in feature parity and document how to customise the |
I'm working on an open source library where I have multiple modules which represent each a single artifact.
Here is my code:
full code
I'm creating there a custom pom file since I was not sure how to do that with your plugin. In the end here is the partial redundant publish block:
This works fine so far. Just when I reference the "core" module from another module (via
implementation project(":core")
) it keeps crashing inDefaultProjectDependencyPublicationResolver
with an exception like this:(Please note that this error is from a different module which is not yet pushed, however it is the same error)
For some reasons there is a 'maven' publication which I did not define.
I also tried this workaround:
When I check the
publications
then there is as expected just one, but that gradle taskbintrayUpload
still fails with the error above.The text was updated successfully, but these errors were encountered: