Description
I don't want to publish an java artifact and just want the plugin to bump the project version in my case. I know this might sound dumb using this plugin then, but it was the quickest solution to me. I'm currently thinking about developing an own plugin that is capable of bumping versions stored in different file formats which would be a cleaner solution but might conflict with other plugin executions.
However, as of now I'm bypassing the publication by registering a dummy task.
task publish(type: DefaultTask) {
group = 'publish'
description = 'Dummy publish to pass the verification phase of the gradle-semantic-release-plugin'
}
I wonder what you think about adding an option that would simply skip the publication. As of writing this, another option came to my mind: Maybe it would be nice to add an option that one can specify the task that should be executed for publication. Here is a quick example:
{
"release": {
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
[
"gradle-semantic-release-plugin",
{
"skipPublication": true,
"publicationTask": "jib"
}
]
]
}
}