❯ jdk -version
openjdk version "11.0.17" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 11.0.17+8-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build 11.0.17+8-jvmci-22.3-b08, mixed mode)
Compiling native CLI:
❯ ./gradlew native-cli:nativeCompile
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
> Configure project :native-cli
Generating Versions File.
> Task :native-cli:compileScala
[Error] ~/codebase/data-weave-cli/native-cli/src/main/scala/org/mule/weave/dwnative/NativeRuntime.scala:67:5: overloaded method constructor DataWeaveScriptingEngine with alternatives:
(componentsFactory: org.mule.weave.v2.runtime.ModuleComponentsFactory,parsingConfiguration: org.mule.weave.v2.runtime.ParserConfiguration)org.mule.weave.v2.runtime.DataWeaveScriptingEngine <and>
()org.mule.weave.v2.runtime.DataWeaveScriptingEngine <and>
(componentsFactory: org.mule.weave.v2.runtime.ModuleComponentsFactory,parsingConfiguration: org.mule.weave.v2.runtime.ParserConfiguration,configuration: java.util.Properties)org.mule.weave.v2.runtime.DataWeaveScriptingEngine
cannot be applied to (org.mule.weave.dwnative.NativeModuleComponentFactory, org.mule.weave.v2.runtime.ParserConfiguration, java.util.Properties, languageLevelService: org.mule.weave.v2.model.service.LanguageLevelService)
one error found
> Task :native-cli:compileScala FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':native-cli:compileScala'.
> Compilation failed
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
1 actionable task: 1 executed
Unable to compile latest build from master -
GraalVM is used:
Compiling native CLI: