Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build-time Java 17 compatibility #1002

Open
elefeint opened this issue Feb 15, 2022 · 12 comments
Open

Build-time Java 17 compatibility #1002

elefeint opened this issue Feb 15, 2022 · 12 comments

Comments

@elefeint
Copy link
Contributor

elefeint commented Feb 15, 2022

Current state:

  • the AppEngine gradle plugin is compatible with Java 17 at runtime -- our users are fine.
  • compile-time compatibility is blocked on a gradle testing ecosystem regression. We'll fix it when the underlying issue is fixed, but it does not block any actual usecases.
@colorizenl
Copy link
Contributor

Hi @elefeint. I created #881, as currently the Gradle plugin does not allow the java17 runtime at all.

@elefeint
Copy link
Contributor Author

elefeint commented Apr 8, 2022

Thank you!
From compile-time compatibility side, I am working my way through the Gradle upgrade changes that are required, since only 7.3+ supports Java 17.

@elefeint
Copy link
Contributor Author

GoogleCloudPlatform/app-gradle-plugin#413 plus a release should sort out runtime compatibility.
Compile time compatibility work is in GoogleCloudPlatform/app-gradle-plugin#412 but is blocked on a gradle issue.

@grant
Copy link
Contributor

grant commented Apr 29, 2022

Blocked by gradle issue: gradle/gradle#20301

@ludoch
Copy link
Collaborator

ludoch commented Jun 2, 2022

Did we release GoogleCloudPlatform/app-gradle-plugin#413?

When can we close this bug? Not sure if this should be a blocker for GAE Java17 move to GA.

@elefeint
Copy link
Contributor Author

elefeint commented Jun 2, 2022 via email

@elefeint
Copy link
Contributor Author

elefeint commented Jun 2, 2022

We can close this issue, as runtime compatibility is there. Compile-time should not be blocking any users.

@grant
Copy link
Contributor

grant commented Jun 2, 2022

I think there is more work left:

  • .github/workflows/unit-tests.yaml: Need to test 17
  • build.gradle
    • Rename maven plugin to maven-publish
    • compile -> implementation (not deprecated)
    • testCompile -> testImplementation (not deprecated)
    • Change gradleVersion = '4.9' to gradleVersion = '7.4.2'
  • Update gradle wrapper
    • gradle wrapper --gradle-version 7.4.2 --distribution-type all

I think there are more changes required as well.

@elefeint
Copy link
Contributor Author

elefeint commented Jun 3, 2022

That's just for the compile-time compatibility, right?
Everything except for gradle wrapper upgrade is in GoogleCloudPlatform/app-gradle-plugin#412, but getting that unblocked and merged in is more of an internal code maintenance issue. It should not affect AppEngine users who want to build their apps with app-gradle-plugin -- that should just work starting with v2.4.3.

@elefeint
Copy link
Contributor Author

elefeint commented Jun 3, 2022

I've just tested deploying a Spring Boot application using openjdk 17.0.3 and gradle plugin 2.4.3 and it works well. So my soul is at peace about the gradle plugin being compatible.

@grant
Copy link
Contributor

grant commented Jun 7, 2022

The plugin is fine for the java17 runtime. Compile-time is separate.

@elefeint
Copy link
Contributor Author

Right; leaving open until unblocked.

@suztomo suztomo changed the title Java 17 compatiblity Build-time Java 17 compatibility Oct 13, 2023
@JoeWang1127 JoeWang1127 transferred this issue from GoogleCloudPlatform/app-gradle-plugin Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants