New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to publish packages to a maven repository #499
Comments
I figured out that using |
So that's for sure Gradle issue / not plugin related. I am quite sure that I saw added support for your case in some recent version of gradle. I mean providers support in supplying Maven artifact to be published. |
Still I will consider documenting publication but... Then publishing to nexus, bintray and so on also should be documented to be consistent. |
Don't hesitate to create PR 😉 |
just like a said earlier ... @sabberworm Gradle fixed this in 6.0.1 |
I tried with Gradle 6.0.1 but it seems passing a |
@sabberworm heh, but it was looking promising ;) |
Sorry if this has come up before or if it’s documented somewhere but I couldn’t figure out how to publish a generated content package to a maven repository.
If I understood everything correctly, the following should do that:
However this results in the following error during configuration:
This message confuses me since clearly
:packageCompose
is a task that inherits fromcom.cognifide.gradle.aem.common.tasks.ZipTask
, which inherits fromorg.gradle.api.tasks.bundling.Zip
, which, in turn, inherits fromAbstractArchiveTask
, as required.I’m not sure if this is an issue with the gradle-aem-plugin or the maven-publishing plugin. I suspect this is not a bug but simply a misconfiguration on my part but I think it’s a common-enough use-case that it needs to be documented.
The text was updated successfully, but these errors were encountered: