Skip to content

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

Merged
codefromthecrypt merged 2 commits intomasterfrom
jre17
Apr 16, 2024
Merged

Raises floor JRE version from 11 to 17 except core#3763
codefromthecrypt merged 2 commits intomasterfrom
jre17

Conversation

@codefromthecrypt
Copy link
Copy Markdown
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 <[email protected]>
+ " }\n"
+ " }\n"
+ " }\n");
result += ("""
Copy link
Copy Markdown
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!

<properties>
<main.basedir>${project.basedir}/../..</main.basedir>

<!-- 3.16 is the last to compile with JDK 11 -->
Copy link
Copy Markdown
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 <[email protected]>
@codefromthecrypt codefromthecrypt merged commit b44940d into master Apr 16, 2024
@codefromthecrypt codefromthecrypt deleted the jre17 branch April 16, 2024 06:44
@codefromthecrypt
Copy link
Copy Markdown
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.

3 participants