-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add native image test task #60
Conversation
Really appreciate this work.
Tested with the following project configuration:
The only thing I had to my buid.sbt is to specify test mainclass:
Is there anything I can help to get this merged and released? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like super useful functionality and the PR has detailed tests. LGTM thank you!
I'm on the phone right now so can't cut a release. Added a reminder to follow up and merge and release. |
Published https://github.com/scalameta/sbt-native-image/releases/tag/v0.3.3 but may take a while for the jars to become available on Maven Central. @nartamonov could you send a PR adding documentation to the readme so that people can discover this new functionality? |
@olafurpg 3 weeks have been passed but still no jars in Maven Central |
It looks like the publish job failed https://github.com/scalameta/sbt-native-image/actions/runs/4712517890. Looking I'm not really sure what's going on, but I'll update the release related things in #69 and give it another try. |
Alright, the 0.3.4 tag correctly released https://github.com/scalameta/sbt-native-image/actions/runs/4893876177/jobs/8737347750. This should be available soon. |
@ckipp01 , thank you for resolving it so fast! I created a small example of how to use new features to automate native image building for Akka HTTP, might be useful for someone: |
Hi everyone, Does anyone know what I have to put in I see in @nayavu's example, that for ScalaTest, it's: I tried several things and gets this error: Error: Method 'zio.test.sbt.ZTestRunnerJVM.main' is declared as the main entry point but it can not be found. Make sure that class 'zio.test.sbt.ZTestRunnerJVM' is on the classpath and that method 'main(String[])' exists in that class. Thanks |
example with zio-test https://github.com/cobr123/matrix-rain/blob/main/build.sbt |
Added tasks:
Issue #50