You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When publishing to Sonatype, I cannot close the staging repository and publish to public because of a Pom error.
Looking at the generated build.gradle file, I see that pom.name = "" which should ideally be the package name as for Pulumi published packages.
Example
publishing {
publications {
mainPublication(MavenPublication) {
groupId = "io.muehlbachler.pulumi"
artifactId = "proxmoxve"
version = resolvedVersion
from components.java
artifact sourcesJar
artifact javadocJar
pom {
inceptionYear = ""
name = "" <- THIS IS MISSING
packaging = "jar"
description = "A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources."
url = "https://github.com/muhlba91/pulumi-proxmoxve"
scm {
connection = "git@github.com/muhlba91/pulumi-proxmoxve.git"
developerConnection = "git@github.com/muhlba91/pulumi-proxmoxve.git"
url = "https://github.com/muhlba91/pulumi-proxmoxve"
}
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = ""
name = ""
email = ""
}
}
}
}
}
}
Output of pulumi about
N/A
Additional context
This is related to https://github.com/pulumi/pulumi-java/blob/main/pkg/codegen/java/templates_gradle.go#L129-L136 where the project name, as well as other properties like the inception year, are only set for Pulumi published packages.
For third-party publishers this needs to be set as well accordingly. I believe it would make sense to set most, if not all, of these properties that are currently hard-coded only for Pulumi published packages.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
What happened?
When publishing to Sonatype, I cannot close the staging repository and publish to public because of a Pom error.
Looking at the generated
build.gradle
file, I see thatpom.name = ""
which should ideally be the package name as for Pulumi published packages.Example
Output of
pulumi about
N/A
Additional context
This is related to https://github.com/pulumi/pulumi-java/blob/main/pkg/codegen/java/templates_gradle.go#L129-L136 where the project name, as well as other properties like the inception year, are only set for Pulumi published packages.
For third-party publishers this needs to be set as well accordingly. I believe it would make sense to set most, if not all, of these properties that are currently hard-coded only for Pulumi published packages.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: