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
javax.annotation has been removed from java 11, see the API overview.
Proposed solution
Modify the SDK generator to swap the package javax.annotation with jakarta.annotation. The drawback is the change of the dependency's licences to EPL-2.0 and GPL from CDDL and GPL-2.0.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler output below.
${HOME}/pulumi-neon/sdk-java-temp/src/main/java/com/pulumi/neon/Provider.java:13: error: package javax.annotation does not exist
import javax.annotation.Nullable;
^
22 errors
Dependencies
Gradle version:
gradle --version
Output:
------------------------------------------------------------
Gradle 8.12
------------------------------------------------------------
Build time: 2024-12-20 15:46:53 UTC
Revision: a3cacb207fec727859be9354c1937da2e59004c1
Kotlin: 2.0.21
Groovy: 3.0.22
Ant: Apache Ant(TM) version 1.10.15 compiled on August 25 2024
Launcher JVM: 23.0.1 (Homebrew 23.0.1)
Daemon JVM: /opt/homebrew/Cellar/openjdk/23.0.1/libexec/openjdk.jdk/Contents/Home (no JDK specified, using current Java home)
OS: Mac OS X 14.2.1 aarch64
Output of pulumi about
CLI
Version 3.134.1
Go Version go1.23.1
Go Compiler gc
Host
OS darwin
Version 14.2.1
Arch arm64
Backend
Name pulumi.com
URL https://app.pulumi.com/kislerdm
User kislerdm
Organizations kislerdm
Token type personal
Additional context
No response
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?
Hello pulumi team!
Problem
It appears that the java sdk generator is configured to yield the codebase contradictory to the gradle configuration:
@Nullable
is imported from the packagejavax.annotation
.javax.annotation
has been removed from java 11, see the API overview.Proposed solution
Modify the SDK generator to swap the package
javax.annotation
withjakarta.annotation
. The drawback is the change of the dependency's licences to EPL-2.0 and GPL from CDDL and GPL-2.0.Example
Steps to reproduce
Error message
Dependencies
Gradle version:
Output:
Output of
pulumi about
Additional context
No response
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: