-
Notifications
You must be signed in to change notification settings - Fork 443
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
Usage of JavaAppPackaging scriptClasspath #793
Comments
Thanks for your questions @luigiberrettini . What is the issue you are facing and which problem are you trying to solve?
Yes. If you take a look at the generated start scripts (bash/bat), you will see that every dependency is listed explicitly. You don't have to configure anything if you use the
You can just append/prepend stuff the
You can add anything you want to the classpath as long it's accessible on your target system. |
Thank you! I also managed to alter mappings so that the launcher JAR is moved to the folder containing lib and conf folders and I modified classpath to add "lib/" in front of each entry: |
This is strange. Acutally by using enablePlugins(ClasspathJarPlugin) everything should just work. |
Indeed, but I wanted to change the behavior: instead that all JARs (included the launcher) inside the lib folder I wanted to have the launcher in the folder containing the lib one and all other JARs in the lib folder. |
Ah. Now I get it. Is there any particular reason for this? |
Just to separate the launcher: in this way I can also guarantee the "without launcher JAR" behavior using a * classpath |
I do not want to use a wildcard classpath to avoid having a different ordering from the one used by sbt and I saw that you defined scriptClasspath as "A list of relative filenames (to the lib/ folder in the distribution) of what to include on the classpath."
Thank you!
Luigi.
The text was updated successfully, but these errors were encountered: