This message was deleted.
# community-support
s
This message was deleted.
🧵 1
v
Please do not split topics across several threads. This makes following the conversation in the threads view very hard as the context of the other messages is missing. If you have additional information either edit the original message or post to its thread. Regarding the problem, you are not on latest version. 1.0.0-rc-2 is newer than the latest version, it is a release candidate. I guess that block was removed and the docs still describe the latest version. You probably should use the
maven-publish
means of doing it.
h
I'm very sorry about the split. Anyway I just found out that there is newer docs for version +1.0. It's clearer to me now, thanks for your help.
j
Looks like this doc (https://plugins.gradle.org/docs/publish-plugin) is outdated. CC @József Bartók in case you did not see this yet. The best is to set version and group directly using
version =
and
group =
on the top level of the build script. Do not set the
artifactId
. Make sure that the project is named the right was (project name will be used as aritfactId). Example of a full setup: https://github.com/jjohannes/extra-java-module-info/blob/main/build.gradle.kts Project name: https://github.com/jjohannes/extra-java-module-info/blob/main/settings.gradle.kts#L5 This is also true for older versions of the “publishing plugin” if you apply “maven-publish” in addition.
l
Indeed version 1.0 will focus on a single way to setup plugin publication. The old documentation should have a clearer link to the new one until we get 1.0 out and reverse the relation 🙂