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

Use release jvm option to build artifact compatible with older JVM. #1412

Closed
Tracked by #1477
sbernard31 opened this issue Mar 6, 2023 · 2 comments
Closed
Tracked by #1477
Labels
build / ci All about Build or Continious Integration

Comments

@sbernard31
Copy link
Contributor

sbernard31 commented Mar 6, 2023

For many reason, we decide to produce jar compatible :

  • with Java8 for Leshan 2.0.0
  • with java7 for Leshan 1.0.0

By the past, when we tried to create binaries compatible with older version of java than the one used to build, we face some compatibility issue.
(e.g. using java8 to build java7 compatible jar)

This lead us to either :

  • use maven toolchain but this make the build more complicated to use.
  • use same JVM to launch the build than the targeted one, but more and more maven-plugin change their minimal java requirement to java11.

Recently, I heard about jvm --release option, maybe this could solve this issue :

@sbernard31 sbernard31 added the build / ci All about Build or Continious Integration label Mar 6, 2023
@sbernard31 sbernard31 mentioned this issue Jul 19, 2023
10 tasks
@sbernard31 sbernard31 changed the title Build release jvm option to build artifact compatible with older JVM. Use release jvm option to build artifact compatible with older JVM. Jul 19, 2023
@sbernard31
Copy link
Contributor Author

@sbernard31
Copy link
Contributor Author

sbernard31 commented Aug 25, 2023

⚠️ Eclipse user could face some issue with this new configuraiton way because of an m2e bugs which should be fixed in next release (v2.4.0), See eclipse-m2e/m2e-core#1509 ⚠️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build / ci All about Build or Continious Integration
Projects
None yet
Development

No branches or pull requests

1 participant