1 Star 0 Fork 4

tigerwu/ScalaConsole

forked from 老猪/ScalaConsole 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sbt 2.96 KB
一键复制 编辑 原始数据 按行查看 历史
xiefei 提交于 2014-11-01 16:35 . 2.11.4
import sbt.Package.{JarManifest, ManifestAttributes}
import sbtassembly.Plugin._
import AssemblyKeys._
import sbt._
import Keys._
organization := "org.scalaconsole"
name := "ScalaConsole"
version := "2.0.0-M11"
scalaVersion := "2.11.4"
scalaSource in Compile := baseDirectory.value / "src"
scalaSource in Test := baseDirectory.value / "test"
javaSource in Compile := baseDirectory.value / "src"
unmanagedResourceDirectories in Compile += baseDirectory.value / "resources"
fork := true
//javaOptions in run ++= Seq("-Xmx1024m", "-XX:+UseConcMarkSweepGC", "-XX:+CMSClassUnloadingEnabled")
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
incOptions := incOptions.value.withNameHashing(nameHashing = true)
transitiveClassifiers in Global := Seq(Artifact.SourceClassifier)
//mainResourcesPath := "src"
//
// testScalaSourcePath := "test"
//
//testResourcesPath := "test"
//
//managedDependencyPath := "lib"
//
//// override def mainSources = super.mainSources --- ("src" ** "CommaSeperatedData.scala")
//mainResources := super.mainResources --- ("src" ** ("*.scala" | "*.java"))
//
//scalacOptions += "-optimise"
//
resolvers += Resolver.typesafeRepo("releases")
libraryDependencies ++= Seq(
"org.apache.ivy" % "ivy" % "2.3.0",
"org.scala-lang" % "scala-compiler" % scalaVersion.value
// .exclude("org.scala-lang.modules", "scala-parser-combinators_2.11")
// .exclude("org.scala-lang.modules", "scala-xml_2.11")
, "org.controlsfx" % "controlsfx" % "8.0.6_20"
, "com.google.code.gson" % "gson" % "2.2.4"
, "org.specs2" %% "specs2" % "2.3.11" % "test"
)
assemblySettings
packageOptions in assembly ++= Seq(ManifestAttributes(("Specification-Version", "8.0.20")))
mergeStrategy in assembly := {
case str@PathList("org", "scalaconsole", "fxui", "main", "ace-builds", remains@_*) => remains match {
case Seq(sub) => MergeStrategy.discard
case Seq(sub, xs@_*) if sub != "src-min-noconflict" => MergeStrategy.discard
case Seq("src-min-noconflict", mode) if mode.startsWith("mode-") && mode != "mode-scala.js" || mode.startsWith("worker-") => MergeStrategy.discard
case Seq("src-min-noconflict", "snippets", snippet) if snippet != "scala.js" => MergeStrategy.discard
case _ => (mergeStrategy in assembly).value.apply(str)
}
case x => (mergeStrategy in assembly).value.apply(x)
}
// this has the same effect as .exclude clause in libraryDependencies config, but does not rely on scala version
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter { item =>
val name = item.data.getName
(name.startsWith("scala-xml") || name.startsWith("scala-parser-combinators")) && name.endsWith(".jar")
}
}
//wartremoverErrors ++= Warts.allBut(Wart.Var,
// Wart.MutableDataStructures,
// Wart.Null,
// Wart.NonUnitStatements,
// Wart.DefaultArguments,
// Wart.Nothing,
// Wart.Any,
// Wart.AsInstanceOf,
// Wart.IsInstanceOf
//)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tigerwu/scalaconsole.git
git@gitee.com:tigerwu/scalaconsole.git
tigerwu
scalaconsole
ScalaConsole
2.11

搜索帮助

0d507c66 1850385 C8b1a773 1850385