From 10eae2e06209877eefa315cd4f24bbce99ec4128 Mon Sep 17 00:00:00 2001 From: Orlando Vargas Date: Fri, 7 Oct 2022 07:47:14 -0500 Subject: [PATCH] Updated sbt assembly properties --- montecarlo_archery/build.sbt | 16 +++++++++++----- montecarlo_archery/project/plugins.sbt | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 montecarlo_archery/project/plugins.sbt diff --git a/montecarlo_archery/build.sbt b/montecarlo_archery/build.sbt index e8b24a2..d84f14e 100644 --- a/montecarlo_archery/build.sbt +++ b/montecarlo_archery/build.sbt @@ -3,12 +3,18 @@ val scala3Version = "3.2.0" lazy val root = project .in(file(".")) .settings( - name := "montecarlo_archery", - version := "0.1.0-SNAPSHOT", + name := "montecarlo_archery", + mainClass := Some("view.StartView"), + version := "0.1.0-SNAPSHOT", scalaVersion := scala3Version, libraryDependencies ++= Seq( - "org.scalameta" %% "munit" % "0.7.29" % Test, - "org.scalanlp" %% "breeze" % "2.1.0", + "org.scalameta" %% "munit" % "0.7.29" % Test, + "org.scalanlp" %% "breeze" % "2.1.0", "org.scalafx" %% "scalafx" % "18.0.2-R29" - ) + ), + fork := true, + assemblyMergeStrategy in assembly := { + case PathList("META-INF", _*) => MergeStrategy.discard + case _ => MergeStrategy.first + } ) diff --git a/montecarlo_archery/project/plugins.sbt b/montecarlo_archery/project/plugins.sbt new file mode 100644 index 0000000..72477a2 --- /dev/null +++ b/montecarlo_archery/project/plugins.sbt @@ -0,0 +1 @@ +addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")