Permalink
Browse files

0.1.2

  • Loading branch information...
1 parent b311052 commit be77a39a6717a417a509a4fd9c9a059ca17e5c27 @eed3si9n eed3si9n committed May 8, 2012
View
@@ -9,10 +9,7 @@ Latest
------
```scala
-addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.1")
-
-resolvers += Resolver.url("sbt-plugin-releases",
- new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
+addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.2")
```
Usage
@@ -21,7 +18,7 @@ Usage
Add the following in your `build.sbt`:
```scala
-seq(buildInfoSettings: _*)
+buildInfoSettings
sourceGenerators in Compile <+= buildInfo
@@ -66,6 +63,14 @@ buildInfoObject := "Info"
This change to `object Info`. Changing the object name is optional, but to avoid name clash with other jars, package name should be changed.
+### build number
+
+A build number can be generated as follows. Note that cross building against multiple Scala would each generate new number.
+
+```scala
+buildInfoKeys += buildInfoBuildNumber
+```
+
License
-------
View
@@ -4,21 +4,14 @@ name := "sbt-buildinfo"
organization := "com.eed3si9n"
-version := "0.1.1-SNAPSHOT"
+version := "0.1.2"
description := "sbt plugin to generate build info"
licenses := Seq("MIT License" -> url("https://github.com/sbt/sbt-buildinfo/blob/master/LICENSE"))
ScriptedPlugin.scriptedSettings
-lsSettings
-
-LsKeys.tags in LsKeys.lsync := Seq("sbt", "codegen")
-
-(externalResolvers in LsKeys.lsync) := Seq(
- "sbt-plugin-releases" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")
-
publishArtifact in (Compile, packageBin) := true
publishArtifact in (Test, packageBin) := false
@@ -37,3 +30,10 @@ publishTo <<= (version) { version: String =>
}
credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials")
+
+// lsSettings
+
+// LsKeys.tags in LsKeys.lsync := Seq("sbt", "codegen")
+
+// (externalResolvers in LsKeys.lsync) := Seq(
+// "sbt-plugin-releases" at "http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases")
View
@@ -0,0 +1,5 @@
+## Minor enhancements
+- sbt 0.11.3
+- Adds `buildInfoBuildNumber`. [#2][2]
+
+ [2]: https://github.com/sbt/sbt-buildinfo/issues/2
View
@@ -3,12 +3,12 @@ resolvers += Resolver.url("Typesafe repository", new java.net.URL("http://typesa
resolvers += Resolver.url("Typesafe snapshot repository", new java.net.URL("http://typesafe.artifactoryonline.com/typesafe/ivy-snapshots/"))(Resolver.defaultIvyPatterns)
libraryDependencies <+= (sbtVersion) { sv =>
- "org.scala-tools.sbt" %% "scripted-plugin" % sv
+ "org.scala-sbt" %% "scripted-plugin" % sv
// "org.scala-sbt" % "scripted-plugin" % sv
}
resolvers ++= Seq(
"less is" at "http://repo.lessis.me",
"coda" at "http://repo.codahale.com")
-addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.1")
+// addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.1")
@@ -1,3 +1,3 @@
-addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.1-SNAPSHOT")
+addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.2-SNAPSHOT")
// libraryDependencies += Defaults.sbtPluginExtra("com.eed3si9n" % "sbt-buildinfo" % "0.1.1-SNAPSHOT", "0.12.0-M2", "2.9.1")
@@ -1,3 +1,3 @@
-addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.1-SNAPSHOT")
+addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.2-SNAPSHOT")
// libraryDependencies += Defaults.sbtPluginExtra("com.eed3si9n" % "sbt-buildinfo" % "0.1.1-SNAPSHOT", "0.12.0-M2", "2.9.1")

0 comments on commit be77a39

Please sign in to comment.