-
Notifications
You must be signed in to change notification settings - Fork 202
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
Propagate main class defined from the sbt build #718
Comments
@tindzk Do you feel like taking a stab at this? Should take only a few minutes 😄 |
Sure, I will have a look. |
@tindzk Great! The configuration field for the main class is already there, we just need to propagate it with something like: val jvmConfig = Config.JvmConfig(Some(javaHome.toPath), javaOptions.toList)
val mainClass = Keys.mainClass.in(config).value
Config.Platform.Jvm(jvmConfig, mainClass) where |
We cannot depend on As there is no way to avoid that in sbt, I've introduced a |
As per #716, the detection of main classes is restricted to classes defined within the project. In the case of Play, the sbt project already sets the main class correctly:
It would be useful to use this value and set it in the Bloop configuration file such that it does not have to be passed as a command-line parameter.
The text was updated successfully, but these errors were encountered: