This message was deleted.
# community-support
s
This message was deleted.
j
Copy code
tasks.register("publishAll") {
	group = "publishing"
	description = "Publish all submodules at once."
	
	dependsOn(subprojects.filter {
		it.childProjects.isEmpty()
	}.map {
		"${it.path}:buildAndPublish"
	}).finalizedBy("closeAndReleaseSonatypeStagingRepository")
}
this is unnecessary
calling
publishToSonatype
at the root project already publish all projects to sonatype
*all projects which applies maven publish plugin
p
Committed a fix to this and gradle still doesn't find
publishToSonatype
during the gradle action
j
try to call
publishToSonatype
in GitHub directly to check if the problem persists
p
I get this
j
then you have something wrong in your configuration
Copy code
repository.stagingProfileId.set(
                        "${target.properties["oss.stagingProfileId"] ?: System.getenv("OSS_STAGING_PROFILE_ID")}",
                    )
I have this one in my config
you can get that profile id from sonatype url
• `oss.stagingProfileId`: Visit staging profiles select your profile from the list and copy the code after the
;
, for example, the code from this url
<https://oss.sonatype.org/#stagingProfiles;32gf35h34654>
is
32gf35h34654
p
And where do I put this ? 🙂
j
in the nexus repository extension
Copy code
repository.stagingProfileId.set(here)
p
oh it works now thanks ^^
🙂 1
But using
:publishToSonatype
from my custom task
buildAndPublish
doesn't work because gradle can't find the task x_x
j
why not just
build publishToSonatype
p
Oh thank you so much, it is now published 😄
🙂 1
so much trouble to getting this, 5 weeks 😢