-
Notifications
You must be signed in to change notification settings - Fork 444
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
Ability to add to class path in the bash script #124
Comments
👍 Would like this as well to reduce the size of the dist file by excluding JARs that are present on the server anyway. |
I think this is related to #72 The same concerns remain
|
I'm not asking for a wildcard, so classpath ordering would not be an issue. Just the ability to add a JAR to the classpath that is not inside the lib folder (for that you can simply add to What are the security concerns? |
I'm also looking for some way to decrease package size, it would be great to handle dependencies some way but I don't know good way for this :( |
Hm. What about the possibility to symlink dependencies. Like providedDependenciesMapping ++= Seq(
"com.example" % "commons" % "1.0" -> "/usr/share/java/com.example.commons-1.0.jar"
) This is very rough idea, but you get the gist. I'm not sure if this would get too tedious |
Yeah I guess it can get hairy pretty fast... |
LGTM :) I think I could try to implement this. |
It would) |
I think it will much simpler and robust way is to provide exact jars (biggest in my case), since manual dependency management will be really tedious. What do you think about? providedDependenciesMapping ++= Seq(
"com.example.commons-1.0.jar" -> "/usr/share/java/com.example.commons-1.0.jar"
) But if anyone has better idea it'll be super) |
Sure, sure. I proposed the one with the artifact identifier, so you may be able to pick it out |
An update on this. There is a setting TaskKey[Seq[String]]("scriptClasspath",
"""
A list of relative filenames (to the lib/ folder in the distribution)
of what to include on the classpath.
"""
) You may override this at your own risk. I'm using this for the fat-jar creating with sbt-assembly |
After Play dist
If we are calling the bash/bat script thats under bin from other build script, there has to be a way to add jars to the classpath. -J-X option allows us to pass additional parameters but its not usable to add to existing classpath.
The text was updated successfully, but these errors were encountered: