github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/test/resources/utilsTest/build.sbt (about) 1 import scala.io.Source 2 3 val buildDescriptorMap = JSON 4 .parseFull(Source.fromFile("sbtDescriptor.json").mkString) 5 .get 6 .asInstanceOf[Map[String, String]] 7 8 lazy val buildSettings = Seq( 9 scalaVersion := "2.11.11", 10 ) 11 12 lazy val root = (project in file(".")) 13 .settings(buildSettings) 14 15 libraryDependencies ++= Seq( 16 jdbc, 17 "org.scalatestplus.play" % "scalatestplus-play_2.11" % "2.0.0" % Test 18 ) 19 20 dependencyOverrides += "com.fasterxml.jackson.core" % "jackson-databind" % "2.8.11.2" 21 22 resolvers ++= Seq( 23 Resolver.url("Typesafe Ivy releases", 24 url("https://repo.typesafe.com/typesafe/ivy-releases"))(Resolver.ivyStylePatterns) 25 ) 26 27 // Play provides two styles of routers, one expects its actions to be injected, the 28 // other, legacy style, accesses its actions statically. 29 routesGenerator := InjectedRoutesGenerator 30 31 javaOptions in run ++= Seq( 32 "-Xmx12G" 33 ) 34 35 javaOptions in Universal ++= Seq( 36 "-Dpidfile.path=/dev/null" 37 ) 38 39 javaOptions in Test += "-Dconfig.file=conf/application.test.conf" 40 41 // Do not add API documentation into generated package 42 sources in (Compile, doc) := Seq.empty 43 publishArtifact in (Universal, packageBin) := true 44 45 // scala style 46 scalastyleConfig := baseDirectory.value / "scalastyle-production-config.xml" 47 48 // Whitesource 49 whitesourceProduct in ThisBuild := "PRODUCT VERSION" 50 whitesourceOrgToken in ThisBuild := "org-token" 51 whitesourceAggregateProjectName in ThisBuild := "project-name" 52 whitesourceAggregateProjectToken in ThisBuild := "project-token" 53 whitesourceFailOnError in ThisBuild := false