enso/tools/legal-review/launcher
Pavel Marek 9a49a02e3f
--jvm tries to find Java executable system-wide. (#11500)
Fixes `--jvm` option, given to the native image. This was failing on my machine, because when given `--jvm` option, the runner was trying to find the `java` executable from the distribution manager's runtime (on my system located in `~/.local/share/enso/runtime`) and it used the first runtime found. But the first runtime on my system is JDK 17.

The `--jvm` option now tries to:
- Find a JDK from the distribution manager that has the same version as the JDK used for building the engine.
- If there is not an exact version match, it tries to find a runtime from distribution manager that is *newer*.
- If none, fallback to system-wide search
- System-wide search tries to find `java` from `$JAVA_HOME` and from `$PATH`. But this is just a fallback.

# Important Notes
- Added test to Engine CI jobs that pass `--jvm` argument to a native image of engine-runner
- ea3af5ffbc
- `runtime-version-manager` sbt project migrated to a JPMS module
- `engine-runner` now depends on `runtime-version-manager`.
- Removed unnecessary stuff in `runtime-version-manager` dealing with outdated `gu` Graal Updater utility.
- Extracted [GraalVersionManager](1455b025cb/lib/scala/runtime-version-manager/src/main/java/org/enso/runtimeversionmanager/components/GraalVersionManager.java) from [RuntimeVersionManager](d2e8994700/lib/scala/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/components/RuntimeVersionManager.scala)
2024-11-18 22:44:54 +00:00
..
com.chuusai.shapeless_2.13-2.3.10 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
com.github.plokhotnyuk.jsoniter-scala.jsoniter-scala-core_2.13-2.28.5 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
com.github.plokhotnyuk.jsoniter-scala.jsoniter-scala-macros_2.13-2.28.5 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
com.typesafe.akka.akka-actor_2.13-2.6.20 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
com.typesafe.akka.akka-slf4j_2.13-2.6.20 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
com.typesafe.config-1.4.2 Update Scala to 2.13.8 (#3631) 2022-08-08 19:32:55 +00:00
com.typesafe.scala-logging.scala-logging_2.13-3.9.4 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
commons-io.commons-io-2.12.0 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
files-add Initial Legal Review (#1210) 2020-10-19 10:50:12 +02:00
io.circe.circe-core_2.13-0.14.7 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
io.circe.circe-generic_2.13-0.14.7 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
io.circe.circe-jawn_2.13-0.14.7 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
io.circe.circe-numbers_2.13-0.14.7 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
io.circe.circe-parser_2.13-0.14.7 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
io.github.java-diff-utils.java-diff-utils-4.12 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
net.java.dev.jna.jna-5.14.0 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
org.apache.commons.commons-compress-1.23.0 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
org.jline.jline-3.23.0 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
org.scala-lang.modules.scala-java8-compat_2.13-1.0.0 Update Scala to 2.13.7 (#3214) 2021-12-31 17:50:32 +03:00
org.scala-lang.scala-compiler-2.13.11 engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
org.scala-lang.scala-library-2.13.11 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
org.scala-lang.scala-reflect-2.13.11 Scala 2.13.11 and libraries update (#7010) 2023-06-14 13:15:57 +00:00
org.slf4j.slf4j-api-2.0.9 Reduce extra output in compilation and tests (#7809) 2023-10-16 10:57:44 +02:00
org.typelevel.cats-core_2.13-2.10.0 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
org.typelevel.cats-kernel_2.13-2.10.0 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
org.typelevel.jawn-parser_2.13-1.5.1 Cleaning up YAML parsing in preparation for circe-yaml removal (#10309) 2024-06-20 13:07:54 +00:00
org.yaml.snakeyaml-2.3 Updating snakeyaml and removing no longer needed patches (#11207) 2024-10-01 05:03:28 +02:00
reviewed-licenses engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
notice-header Project Manager Native Image (#1318) 2020-12-09 14:58:11 +01:00
report-state --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00