@@ -28,6 +28,8 @@ val root =
28
28
29
29
lazy val demo =
30
30
project.in(file(" demo" ))
31
+ .enablePlugins(GitVersioning )
32
+ .enablePlugins(GitBranchPrompt )
31
33
.enablePlugins(ScalaJSBundlerPlugin )
32
34
.settings(commonSettings : _* )
33
35
.settings(
@@ -45,6 +47,8 @@ lazy val demo =
45
47
46
48
lazy val facade =
47
49
project.in(file(" facade" ))
50
+ .enablePlugins(GitVersioning )
51
+ .enablePlugins(GitBranchPrompt )
48
52
.enablePlugins(ScalaJSBundlerPlugin )
49
53
.settings(commonSettings : _* )
50
54
.settings(
@@ -73,7 +77,6 @@ lazy val facade =
73
77
74
78
lazy val commonSettings = Seq (
75
79
scalaVersion := " 2.12.4" ,
76
- version := " 0.0.6-SNAPSHOT" ,
77
80
organization := " io.github.cquiroz" ,
78
81
description := " scala.js facade for react-virtualized" ,
79
82
homepage := Some (url(" https://github.com/cquiroz/scalajs-react-virtualized" )),
@@ -136,14 +139,15 @@ lazy val commonSettings = Seq(
136
139
" -Ywarn-unused:privates" , // Warn if a private member is unused.
137
140
" -Ywarn-value-discard" , // Warn when non-Unit expression results are unused.
138
141
" -P:scalajs:sjsDefinedByDefault"
139
- )
142
+ ),
143
+ // Settings to use git to define the version of the project
144
+ git.useGitDescribe := true ,
145
+ git.formattedShaVersion := git.gitHeadCommit.value map { sha => s " v $sha" },
146
+ git.uncommittedSignifier in ThisBuild := Some (" UNCOMMITTED" ),
147
+ useGpg := true
140
148
) ++ semanticdbScalacSettings
141
149
142
150
lazy val pomData =
143
- <scm >
144
- <url >git@ github.com: cquiroz/ scalajs- react- virtualized.git</url >
145
- <connection >scm: git: git@ github.com: cquiroz/ scalajs- react- virtualized.git</connection >
146
- </scm >
147
151
<developers >
148
152
<developer >
149
153
<id >cquiroz</id >
0 commit comments