Upgrade Maven compiler source and target to 1.8#39
Conversation
Hi, While testing DevOps-Project-05 with the latest Jenkins Docker image and newer JDK versions, I noticed that the Maven build fails because the project is still configured with Java 7 source/target compatibility. Error observed: "Source option 7 is no longer supported. Use 8 or later." Modern JDK versions no longer support compiling with source/target 1.7, so I have updated the Maven compiler configuration from Java 1.7 to Java 1.8. Changes: - Updated maven.compiler.source from 1.7 β 1.8 - Updated maven.compiler.target from 1.7 β 1.8 This keeps the project compatible with newer Jenkins + Docker environments while maintaining backward compatibility. Tested with: - Jenkins running in Docker - Maven build: mvn clean install - OpenJDK newer runtime Build passes successfully after this change. Thanks for maintaining this helpful DevOps learning repository!
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (1)
π WalkthroughWalkthroughThe Maven compiler plugin configuration in the hello-world pom.xml file is updated, changing both the source and target Java version from 1.7 to 1.8. ChangesCompiler Configuration Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Related Issues: None specified Related PRs: None specified Suggested labels: dependencies, build Suggested reviewers: NotHarshhaa Poem: π₯ Pre-merge checks | β 5β Passed checks (5 passed)
β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Hi,
While testing DevOps-Project-05 with the latest Jenkins Docker image and newer JDK versions, I noticed that the Maven build fails because the project is still configured with Java 7 source/target compatibility.
Error observed:
"Source option 7 is no longer supported. Use 8 or later."
Modern JDK versions no longer support compiling with source/target 1.7, so I have updated the Maven compiler configuration from Java 1.7 to Java 1.8.
Changes:
This keeps the project compatible with newer Jenkins + Docker environments while maintaining backward compatibility.
Tested with:
Build passes successfully after this change.
Thanks for maintaining this helpful DevOps learning repository!
Summary by CodeRabbit