thankful-match-46035
08/29/2024, 12:11 PMthankful-match-46035
08/29/2024, 12:12 PMenough-garden-22763
08/29/2024, 3:32 PMpublishToSonatype
enough-garden-22763
08/29/2024, 3:33 PMthankful-match-46035
08/30/2024, 7:24 AMenough-garden-22763
08/30/2024, 1:11 PMenough-garden-22763
08/30/2024, 1:11 PMif (publishRepoUsername) {
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri(publishRepoURL + "/service/local/"))
snapshotRepositoryUrl.set(uri(publishRepoURL + "/content/repositories/snapshots/"))
username = publishRepoUsername
password = publishRepoPassword
}
}
}
}
if (signingKey) {
signing {
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.mainPublication
}
}
enough-garden-22763
08/30/2024, 1:12 PMenough-garden-22763
08/30/2024, 1:12 PMdef resolvedVersion = System.getenv("PACKAGE_VERSION") ?:
(project.version == "unspecified"
? "0.0.1"
: project.version)
def signingKey = System.getenv("SIGNING_KEY")
def signingPassword = System.getenv("SIGNING_PASSWORD")
def publishRepoURL = System.getenv("PUBLISH_REPO_URL") ?: "<https://s01.oss.sonatype.org>"
def publishRepoUsername = System.getenv("PUBLISH_REPO_USERNAME")
def publishRepoPassword = System.getenv("PUBLISH_REPO_PASSWORD")
enough-garden-22763
08/30/2024, 1:13 PMenough-garden-22763
08/30/2024, 1:16 PMthankful-match-46035
08/30/2024, 1:21 PMenough-garden-22763
08/30/2024, 1:24 PMenough-garden-22763
08/30/2024, 1:24 PMPUBLISH_REPO_USERNAME=tom gradle publishToSonatype ~/code/pulumi-ovh/sdk/java
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':publishMainPublicationPublicationToSonatypeRepository'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=21, vendor=any, implementation=vendor-specific} for MAC_OS on aarch64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
* Try:
> Learn more about toolchain auto-detection at <https://docs.gradle.org/8.4/userguide/toolchains.html#sec:auto_detection>.
> Learn more about toolchain repositories at <https://docs.gradle.org/8.4/userguide/toolchains.html#sub:download_repositories>.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to <https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings> in the Gradle documentation.
BUILD FAILED in 580ms
enough-garden-22763
08/30/2024, 1:25 PMenough-garden-22763
08/30/2024, 1:25 PMthankful-match-46035
09/02/2024, 8:26 AMthankful-match-46035
09/03/2024, 9:56 AMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':initializeSonatypeStagingRepository'.
> Failed to find staging profile for package group: com.ovh.pulumi
Do you encounter this bug before?enough-garden-22763
09/03/2024, 1:24 PMthankful-match-46035
09/03/2024, 1:31 PMenough-garden-22763
09/03/2024, 1:32 PM