Слияние кода завершено, страница обновится автоматически
// import de.johoop.jacoco4sbt._
// import JacocoPlugin._
import sbt._
//com.twitter.scrooge.ScroogeSBT.newSettings
//
//scroogeBuildOptions in Compile := Seq("--finagle", "--verbose")
// set the name of the project
name := "type-flow"
version := "0.0.1"
isSnapshot := true
organization := "com.github.notyy"
// set the Scala version used for the project
scalaVersion := "2.13.0"
resolvers ++= Seq(
"Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases",
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
libraryDependencies ++= Seq(
// "org.scalacheck" %% "scalacheck" % "1.13.4" % "test",
"org.pegdown" % "pegdown" % "1.6.0" % "test", //used in html report
"org.scalactic" %% "scalactic" % "3.0.8",
"org.scalatest" %% "scalatest" % "3.0.8" % "test",
"org.slf4j" % "slf4j-api" % "1.7.7",
// "com.storm-enroute" %% "scalameter" % "0.8.2" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.2",
"junit" % "junit" % "4.11" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test",
"com.h2database" % "h2" % "1.3.176",
"org.mockito" % "mockito-all" % "1.9.5" % "test,provided",
// "com.typesafe.akka" %% "akka-actor" % "2.5.3",
// "com.typesafe.akka" %% "akka-agent" % "2.5.3",
// "com.typesafe.akka" %% "akka-camel" % "2.5.3",
// "com.typesafe.akka" %% "akka-cluster" % "2.5.3",
// "com.typesafe.akka" %% "akka-cluster-metrics" % "2.5.3",
// "com.typesafe.akka" %% "akka-cluster-sharding" % "2.5.3",
// "com.typesafe.akka" %% "akka-cluster-tools" % "2.5.3",
// "com.typesafe.akka" %% "akka-distributed-data" % "2.5.3",
// "com.typesafe.akka" %% "akka-multi-node-testkit" % "2.5.3",
// "com.typesafe.akka" %% "akka-osgi" % "2.5.3",
// "com.typesafe.akka" %% "akka-persistence" % "2.5.3",
// "com.typesafe.akka" %% "akka-persistence-query" % "2.5.3",
// "com.typesafe.akka" %% "akka-persistence-tck" % "2.5.3",
// "com.typesafe.akka" %% "akka-remote" % "2.5.3",
// "com.typesafe.akka" %% "akka-slf4j" % "2.5.3",
// "com.typesafe.akka" %% "akka-stream" % "2.5.3",
// "com.typesafe.akka" %% "akka-stream-testkit" % "2.5.3",
// "com.typesafe.akka" %% "akka-testkit" % "2.5.3",
// "com.typesafe.akka" %% "akka-typed" % "2.5.3",
// "com.typesafe.akka" %% "akka-contrib" % "2.5.3",
// "com.googlecode.scalascriptengine" %% "scalascriptengine" % "1.3.11",
// "org.scala-lang" % "scala-compiler" % "2.12.3",
"org.seleniumhq.selenium" % "selenium-java" % "2.35.0" % "test",
"org.json4s" %% "json4s-native" % "3.6.7",
// "org.hamcrest" % "hamcrest-junit" %"2.0.0.0",
// "org.mockito" % "mockito-core" % "2.7.22",
// "org.quartz-scheduler" % "quartz" % "2.2.3",
// "org.quartz-scheduler" % "quartz-jobs" % "2.2.3",
// "com.typesafe.slick" %% "slick" % "3.3.2",
// "com.typesafe.slick" %% "slick-hikaricp" % "3.3.2",
// "com.github.dreamhead" % "moco-core" % "0.11.1" exclude("org.apache.httpcomponents", "httpclient"),
"org.typelevel" %% "cats-core" % "2.0.0",
"com.aliyun" % "aliyun-java-sdk-fc" % "1.4.0",
"com.aliyun.fc.runtime" % "fc-java-core" % "1.3.0",
"com.aliyun.oss" % "aliyun-sdk-oss" % "3.6.0",
"org.json4s" %% "json4s-native" % "3.6.7",
"io.vavr" % "vavr" % "0.9.3"
)
logBuffered := false
// reduce the maximum number of errors shown by the Scala compiler
maxErrors := 20
// increase the time between polling for file changes when using continuous execution
pollInterval := scala.concurrent.duration.FiniteDuration(1000L, "ms")
// append several options to the list of options passed to the Java compiler
javacOptions ++= Seq("-source", "1.6", "-target", "1.6")
// append -deprecation to the options passed to the Scala compiler
scalacOptions += "-deprecation"
// incOptions := incOptions.value.withNameHashing(true)
// set the initial commands when entering 'console' only
// initialCommands in console := "import com.kaopua.recall._"
// set the main class for packaging the main jar
// 'run' will still auto-detect and prompt
// change Compile to Test to set it for the test jar
// mainClass in (Compile, packageBin) := Some("com.kaopua.recall.Main")
// set the main class for the main 'run' task
// change Compile to Test to set it for 'test:run'
// mainClass in (Compile, run) := Some("com.kaopua.recall.Main")
// set the main class for the main 'test:run' task
// mainClass in (Test, run) := Some("com.kaopua.recall.Main")
// disable updating dynamic revisions (including -SNAPSHOT versions)
offline := true
// set the prompt (for this build) to include the project id.
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
// set the prompt (for the current project) to include the username
shellPrompt := { state => System.getProperty("user.name") + "> " }
// disable printing timing information, but still print [success]
showTiming := false
// disable printing a message indicating the success or failure of running a task
showSuccess := false
// change the format used for printing task completion time
timingFormat := {
import java.text.DateFormat
DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT)
}
// only use a single thread for building
parallelExecution := false
// Use Scala from a directory on the filesystem instead of retrieving from a repository
//scalaHome := Some(file("/home/user/scala/trunk/"))
// don't aggregate clean (See FullConfiguration for aggregation details)
aggregate in clean := false
// only show warnings and errors on the screen for compilations.
// this applies to both test:compile and compile and is Info by default
logLevel in compile := Level.Info
// only show warnings and errors on the screen for all tasks (the default is Info)
// individual tasks can then be more verbose using the previous setting
logLevel := Level.Info
// only store messages at info and above (the default is Debug)
// this is the logging level for replaying logging with 'last'
persistLogLevel := Level.Info
// only show 10 lines of stack traces
traceLevel := 10
exportJars := true
// only show stack traces up to the first sbt stack frame
traceLevel := 0
// add SWT to the unmanaged classpath
// unmanagedJars in Compile += file("/usr/share/java/swt.jar")
// seq(oneJarSettings: _*)
// libraryDependencies += "commons-lang" % "commons-lang" % "2.6"
// jacoco.settings
// Execute tests in the current project serially
// Tests from other projects may still run concurrently.
parallelExecution in Test := false
// create beautiful scala test report
testOptions in Test ++= Seq(
Tests.Argument(TestFrameworks.ScalaTest,"-h","target/html-unit-test-report"),
Tests.Argument(TestFrameworks.ScalaTest,"-u","target/unit-test-reports"),
Tests.Argument(TestFrameworks.ScalaTest,"-o"),
Tests.Argument(TestFrameworks.ScalaTest,"-l","FunctionTest")
)
// testOptions in jacoco.Config ++= Seq(
// Tests.Argument(TestFrameworks.ScalaTest,"-h","target/html-unit-test-report"),
// Tests.Argument(TestFrameworks.ScalaTest,"-u","target/unit-test-reports"),
// Tests.Argument(TestFrameworks.ScalaTest,"-o"),
// Tests.Argument(TestFrameworks.ScalaTest,"-l","FunctionTest")
// )
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
// packAutoSettings
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature","-language:higherKinds","-language:implicitConversions")
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )