-
Notifications
You must be signed in to change notification settings - Fork 29
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
The default artifact will still be published even when an artifact ID has been explicitly specified. #309
Comments
Beautiful report! Based on what you have in OP, I think this is WAI because we have 3 publications in the logs:
and 3 artifacts in the folder.
Try to change to
Btw, I think this issue is with |
Seems can't:
|
even in |
publishing {
publications {
afterEvaluate {
named<MavenPublication>("pluginMaven") {
...
}
}
}
}
|
That's so weird, looking. |
Ah, the error is not that it's not found, but it by default includes the Java component, see Here's what I would go with: use all the built-ins and no workarounds needed: publishing.patch (delete all the commented lines when applying, they're just for you, keep Docs: |
Thanks a lot! It works for me now. Should we note this in README or fallback it? |
I'm not sure what we could add, @szpak thoughts? Note: this plugin is a generic publishing plugin, publishing Gradle plugins still uses all the same facilities, except Gradle provided plugin does most of the wiring that's still required for normal library jars. I think this might need a full rewrite of the readme, giving examples for the most common use cases, so it's easier for people to copy-paste when they don't know/want to know the details? |
I would agree with Rob, that it's rather a problem with the generic publishing configuration in Gradle. Do you have a good idea/proposal how the new README could look like? We could also fold some sections to make it easier to read (and to find the basic cases). |
My config like this:
artifactId
has been declared explicitly, and the default project name isgradle-legacy-osgi-plugin
, then publish it to MavenLocal:We just expect
io.github.goooler.osgi.gradle.plugin
andlegacy-osgi-gradle-plugin
here, butgradle-legacy-osgi-plugin
has been published as well, which with the default project name.Full config here Goooler/gradle-legacy-osgi-plugin@b941a21.
The text was updated successfully, but these errors were encountered: