shavenMavenTask

organization := "com.raymanoz"

name := "typesafeconfig-reloaded"

scalaVersion := "2.11.4"

scalaBinaryVersion := "2.11"

version := {
  import System.getProperty
  Option(getProperty("BUILD_NUMBER")).getOrElse("dev.build")
}

publishTo := Some(Resolver.file("file", new File("target")))

pomExtra := <dependencies>
  <dependency>
    <groupId>com.unsprung.careless</groupId>
    <artifactId>careless</artifactId>
    <version>27</version>
  </dependency>
  <dependency>
    <groupId>com.typesafe</groupId>
    <artifactId>config</artifactId>
    <version>1.2.1</version>
  </dependency>
</dependencies>
shavenMavenTask

organization := "com.raymanoz"

name := "typesafeconfig-reloaded"

scalaVersion := "2.11.4"

scalaBinaryVersion := "2.11"

version := {
  import System.getProperty
  Option(getProperty("version")).getOrElse("dev.build")
}

publishTo := Some(Resolver.file("file", new File("target")))

pomExtra := <dependencies>
  <dependency>
    <groupId>com.unsprung.careless</groupId>
    <artifactId>careless</artifactId>
    <version>27</version>
  </dependency>
  <dependency>
    <groupId>com.typesafe</groupId>
    <artifactId>config</artifactId>
    <version>1.2.1</version>
  </dependency>
</dependencies>
--- 
+++ 
@@ -10,7 +10,7 @@
 
 version := {
   import System.getProperty
-  Option(getProperty("version")).getOrElse("dev.build")
+  Option(getProperty("BUILD_NUMBER")).getOrElse("dev.build")
 }
 
 publishTo := Some(Resolver.file("file", new File("target")))
Make version BUILD_NUMBER property being set by travis
