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

chore(java11): Compile with Java 11 (but targeting Java 8) #826

Merged
merged 1 commit into from
Mar 26, 2020

Conversation

plumpy
Copy link
Member

@plumpy plumpy commented Mar 26, 2020

We don't actually need -PenableCrossCompilerPlugin=true in build.yml or release.yml (it's turned on already by the Nebula plugin since we're making a candidate build) but I thought it was worth adding for clarity.

For the GitHub workflows, I didn't know a great way to test it, so I first read setup-java to determine how the $PATH manipulation works, then I tested it with pr.yml by:

  1. Pushing some code to this PR that uses a Java 11 API (Optional#stream()) and seeing the build fail (proving we're compiling against the Java 8 APIs)
  2. Changing it to -PenableCrossCompilerPlugin=false and watching the build succeed (proving we're using the Java 11 javac)

@plumpy plumpy force-pushed the java11 branch 2 times, most recently from ad82373 to 55fcf84 Compare March 26, 2020 15:19
Copy link
Contributor

@ezimanyi ezimanyi left a comment

Choose a reason for hiding this comment

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

☕️ 1️⃣ 1️⃣ 🎯 8️⃣ 💯

@plumpy plumpy merged commit cdb20b6 into spinnaker:master Mar 26, 2020
@plumpy plumpy deleted the java11 branch March 26, 2020 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants