Skip to content

Commit

Permalink
classpathなどが長すぎて実行できない問題対処
Browse files Browse the repository at this point in the history
  • Loading branch information
RYOSKATE committed Jun 22, 2017
1 parent 3bf85d4 commit 89a4258
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,17 @@ libraryDependencies ++= Seq(

resolvers += "jitpack.io" at "https://jitpack.io"
resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"

import com.typesafe.sbt.packager.Keys.scriptClasspath

scriptClasspath := {
val originalClasspath = scriptClasspath.value
val manifest = new java.util.jar.Manifest()
manifest.getMainAttributes().putValue("Class-Path", originalClasspath.mkString(" "))
val classpathJar = (target in Universal).value / "lib" / "classpath.jar"
IO.jar(Seq.empty, classpathJar, manifest)
Seq(classpathJar.getName)
}
mappings in Universal += (((target in Universal).value / "lib" / "classpath.jar") -> "lib/classpath.jar")

fork in run := true

0 comments on commit 89a4258

Please sign in to comment.