代码拉取完成,页面将自动刷新
同步操作将从 老猪/ScalaConsole 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
//)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。