|
| 1 | +/* basic project info */ |
| 2 | +name := "json-scala-perftest" |
| 3 | + |
| 4 | +organization := "com.micro-workflow" |
| 5 | + |
| 6 | +version := "0.1.0-SNAPSHOT" |
| 7 | + |
| 8 | +description := "Performance tests for Scala JSON parsing options" |
| 9 | + |
| 10 | +homepage := Some(url("https://github.com/polymorphic/json-scala-perftest")) |
| 11 | + |
| 12 | +startYear := Some(2012) |
| 13 | + |
| 14 | +licenses := Seq( |
| 15 | + ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")) |
| 16 | +) |
| 17 | + |
| 18 | +scmInfo := Some( |
| 19 | + ScmInfo( |
| 20 | + url("https://github.com/polymorphic/json-scala-perftest"), |
| 21 | + "scm:git:https://github.com/polymorphic/json-scala-perftest.git", |
| 22 | + Some( "scm:git:[email protected]:polymorphic/json-scala-perftest.git") |
| 23 | + ) |
| 24 | +) |
| 25 | + |
| 26 | +// organizationName := "My Company" |
| 27 | + |
| 28 | +/* scala versions and options */ |
| 29 | +scalaVersion := "2.9.2" |
| 30 | + |
| 31 | +// crossScalaVersions := Seq("2.9.1") |
| 32 | + |
| 33 | +offline := false |
| 34 | + |
| 35 | +scalacOptions ++= Seq("-deprecation", "-unchecked") |
| 36 | + |
| 37 | +javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation") |
| 38 | + |
| 39 | +/* entry point */ |
| 40 | +mainClass in (Compile, packageBin) := Some("com.micro-workflow.json-scala-perftest.Main") |
| 41 | + |
| 42 | +mainClass in (Compile, run) := Some("com.micro-workflow.json-scala-perftest.Main") |
| 43 | + |
| 44 | +/* dependencies */ |
| 45 | +libraryDependencies ++= Seq ( |
| 46 | + // "org.scalaz" %% "scalaz-core" % "7.0.0-M3", |
| 47 | + // "org.scalaz" %% "scalaz-effect" % "7.0.0-M3", |
| 48 | + // "org.scalacheck" %% "scalacheck" % "1.10.0" % "test" |
| 49 | +) |
| 50 | + |
| 51 | +/* you may need these repos */ |
| 52 | +resolvers ++= Seq( |
| 53 | + // Resolvers.sonatypeRepo("snapshots") |
| 54 | + // Resolvers.typesafeIvyRepo("snapshots") |
| 55 | + // Resolvers.typesafeIvyRepo("releases") |
| 56 | + // Resolvers.typesafeRepo("releases") |
| 57 | + // Resolvers.typesafeRepo("snapshots") |
| 58 | + // JavaNet2Repository, |
| 59 | + // JavaNet1Repository |
| 60 | +) |
| 61 | + |
| 62 | +/* sbt behavior */ |
| 63 | +logLevel in compile := Level.Warn |
| 64 | + |
| 65 | +traceLevel := 5 |
| 66 | + |
| 67 | +/* publishing */ |
| 68 | +publishMavenStyle := true |
| 69 | + |
| 70 | +publishTo <<= version { (v: String) => |
| 71 | + val nexus = "https://oss.sonatype.org/" |
| 72 | + if (v.trim.endsWith("SNAPSHOT")) Some( |
| 73 | + "snapshots" at nexus + "content/repositories/snapshots" |
| 74 | + ) |
| 75 | + else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
| 76 | + } |
| 77 | + |
| 78 | +publishArtifact in Test := false |
| 79 | + |
| 80 | +pomIncludeRepository := { _ => false } |
| 81 | + |
| 82 | +pomExtra := ( |
| 83 | + <developers> |
| 84 | + <developer> |
| 85 | + <id>polymorphic</id> |
| 86 | + <name>Dragos Manolescu</name> |
| 87 | + <email>coder@micro-workflow.com</email> |
| 88 | + <!-- <url></url> --> |
| 89 | + </developer> |
| 90 | + </developers> |
| 91 | +) |
| 92 | + |
| 93 | +// Josh Suereth's step-by-step guide to publishing on sonatype |
| 94 | +// httpcom://www.scala-sbt.org/using_sonatype.html |
| 95 | + |
| 96 | +/* assembly plugin */ |
| 97 | +mainClass in AssemblyKeys.assembly := Some("com.micro-workflow.json-scala-perftest.Main") |
| 98 | + |
| 99 | +assemblySettings |
| 100 | + |
| 101 | +test in AssemblyKeys.assembly := {} |
0 commit comments