bitcoin-client
bitcoin client library for price ticker and wallet
git clone https://9o.is/git/bitcoin-client.git
BuildSettings.scala
(1729B)
1 import sbt._
2 import sbt.Keys._
3
4 import sbtbuildinfo.Plugin._
5 import com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys
6 import ohnosequences.sbt.SbtS3Resolver._
7
8 object BuildSettings {
9 val buildTime = SettingKey[String]("build-time")
10
11 val defaultScalaVersion = "2.10.4"
12
13 val basicSettings = Defaults.defaultSettings ++ Seq(
14 name := "bitcoin",
15 version := "0.1-SNAPSHOT",
16 organization := "inc.pyc",
17 scalaVersion := defaultScalaVersion,
18 scalacOptions <<= scalaVersion map { sv: String =>
19 if (sv.startsWith("2.10."))
20 Seq("-deprecation", "-unchecked", "-feature", "-language:postfixOps", "-language:implicitConversions")
21 else
22 Seq("-deprecation", "-unchecked")
23 },
24 resolvers ++= Seq[Resolver](
25 "Sonatype Releases" at "http://oss.sonatype.org/content/repositories/releases",
26 "clojars.org" at "http://clojars.org/repo"
27 )
28 )
29
30 val appSettings =
31 basicSettings ++
32 S3Resolver.defaults ++
33 buildInfoSettings ++
34 seq(
35 buildTime := System.currentTimeMillis.toString,
36
37 // build-info
38 buildInfoKeys ++= Seq[BuildInfoKey](buildTime),
39 buildInfoPackage := "inc.pyc",
40 sourceGenerators in Compile <+= buildInfo,
41
42 // eclipse
43 EclipseKeys.withSource := true,
44
45 publishMavenStyle := true,
46
47 publishTo := Some(s3resolver.value(
48 "My "+{if (isSnapshot.value) "snapshots-pyc-inc" else "releases-pyc-inc"}+" S3 bucket",
49 s3(if (isSnapshot.value) "snapshots-pyc-inc" else "releases-pyc-inc"))),
50
51 s3credentials := {
52 Path.userHome / ".ivy2" / ".s3credentials"
53 },
54
55 s3region := com.amazonaws.services.s3.model.Region.US_Standard
56 )
57 }
58