Replies: 6 comments 3 replies
-
Does it work with Alpha5? Do you see something odd in the log from the build? |
Beta Was this translation helpful? Give feedback.
-
FYI, retried this w/ Quarkus 2.16 and it built a native executable as expected though startup took longer than I expected (thought I could use this as a nice dev environment for a pico-cli tool but it takes 5sec to run:
Attached the zip file if you're curious. |
Beta Was this translation helpful? Give feedback.
-
FYI, I tried this with 3.0.0-beta1 and it seems to work... added extensions for pico-cli, resteasy-client, and resteasy-client-kotlin-serialization % time ./build/test-1.0.0-SNAPSHOT-runner -help A bit puzzled by the 5sec startup time but it at least builds a binary :-) |
Beta Was this translation helpful? Give feedback.
-
Trimmed the project down a bit more and apparently the Resteasy Client is what causes the 5sec startup time 😮 🤔 If I want the picocli CLI command to be able to make JSON API calls, it seems like the RestEasy Client should not be used (probably should be mentioned in the picocli documentation). Will look at lighter JSON frameworks like Retrofit. Quarkus does look like a nice way to do native CLI command builds :-) |
Beta Was this translation helpful? Give feedback.
-
Hmm...even without the Resteasy Client, the total run time of the simple picocli extension native image is still 5sec even though startup is claimed to be 0.010s for the first thing it prints out 🤔
Note the timestamp difference between started and profile activated 🤔 |
Beta Was this translation helpful? Give feedback.
-
what's interesting is that the overall time for running the jar is similar:
0.58s user 0.07s system 12% cpu 5.328 total compared to running the native binary with time: it's puzzling that the overall run time is similar despite the different in user time 🤔 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran
and it claims it produced these artifacts:
but what's in the directory is:
Looks like only the jar file got built...not the graalvm native image 🤔
Also, the directory seems like an odd place to put the result. Why is it in a directory named "/Users/keny/Downloads/projectmeta-cli/build/projectmeta-cli-1.0.0-SNAPSHOT-native-image-source-jar"?
There's also:
/Users/keny/Downloads/projectmeta-cli/build/quarkus-app/app
but the only thing in that directory is the .jar file
Beta Was this translation helpful? Give feedback.
All reactions