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

Raises floor JRE version from 11 to 17 except core #3763

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

codefromthecrypt
Copy link
Member

@codefromthecrypt codefromthecrypt commented Apr 16, 2024

This raises the floor JRE version of libraries except core from 11 to 17. The only reason we had 17 in the past was due to Spark limitations that affected zipkin-dependencies. After this, folks can also consider getting rid of AutoValue for the record type (sadly no OpenRewrite for that ;).

This change was manual except the parts about string formatting, exception coercing and multi-line literals. Those parts were done with OpenRewrite via below (reverting changes to core):

$ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava17

The other non-manual step was about JOOQ, which was copy/pasting commands from the README, which worked without any issue.

This raises the floor JRE version of libraries except core from 11 to
17. The only reason we had 17 in the past was due to Spark limitations
that affected zipkin-dependencies. After this, folks can also consider
getting rid of AutoValue for the record type (sadly no OpenRewrite for
that ;).

This change was manual except the parts about string formatting,
exception coercing and multi-line literals. Those parts were done with
OpenRewrite via below (reverting changes to core):

```bash
$ mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.UpgradeToJava17
```

The other non-manual step was about JOOQ, which was copy/pasting
commands from the README, which worked without any issue.

Signed-off-by: Adrian Cole <adrian@tetrate.io>
+ " }\n"
+ " }\n"
+ " }\n");
result += ("""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is notably easier to read/edit!

@@ -20,8 +20,7 @@
<properties>
<main.basedir>${project.basedir}/../..</main.basedir>

<!-- 3.16 is the last to compile with JDK 11 -->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no more revlock

Signed-off-by: Adrian Cole <adrian@tetrate.io>
@codefromthecrypt codefromthecrypt merged commit b44940d into master Apr 16, 2024
13 checks passed
@codefromthecrypt codefromthecrypt deleted the jre17 branch April 16, 2024 06:44
@codefromthecrypt
Copy link
Member Author

thanks for the eyes, folks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants