| author | Tomas Zeman <tzeman@volny.cz> |
| Fri, 19 Jan 2018 11:24:51 +0100 | |
| changeset 12 | 5ac95dda12d1 |
| parent 11 | 631d2cad56f5 |
| permissions | -rw-r--r-- |
| 1 | 1 |
import scala.sys.process._ |
2 |
||
3 |
val scalaVersions = Seq("2.11.12", "2.12.4")
|
|
4 |
||
|
11
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
5 |
lazy val purecss = project.in(file(".")).
|
| 1 | 6 |
aggregate(purecssJS, purecssJVM). |
7 |
settings( |
|
8 |
crossScalaVersions := scalaVersions, |
|
9 |
publish := {},
|
|
|
11
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
10 |
publishLocal := {},
|
|
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
11 |
bintrayVcsUrl := Some("https://bitbucket.org/tzeman/purecss")
|
| 1 | 12 |
) |
13 |
||
14 |
lazy val buildSettings = Seq( |
|
15 |
organization := "net.tz", |
|
16 |
name := "purecss", |
|
17 |
scalaVersion := "2.12.4", |
|
18 |
crossScalaVersions := scalaVersions, |
|
19 |
scalacOptions ++= Seq( |
|
20 |
"-feature", "-deprecation", "-unchecked", |
|
21 |
"-language:implicitConversions", "-language:reflectiveCalls", |
|
22 |
"-language:postfixOps" |
|
23 |
), |
|
24 |
javacOptions ++= Seq( |
|
25 |
"-encoding", "UTF-8", "-Xlint:deprecation", "-Xlint:unchecked"), |
|
|
11
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
26 |
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0")),
|
|
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
27 |
bintrayVcsUrl := Some("https://bitbucket.org/tzeman/purecss")
|
| 1 | 28 |
) |
29 |
||
|
11
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
30 |
lazy val purecssProject = crossProject.in(file(".")).
|
| 1 | 31 |
enablePlugins(BuildInfoPlugin). |
32 |
settings(buildSettings:_*). |
|
33 |
settings( |
|
34 |
libraryDependencies ++= Seq( |
|
35 |
"com.lihaoyi" %%% "scalatags" % "0.6.7" |
|
36 |
), |
|
37 |
||
38 |
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion, |
|
39 |
"scalaJSVersion" -> scalaJSVersion, |
|
40 |
BuildInfoKey.action("hgId") { "hg id -i".!!.trim },
|
|
41 |
BuildInfoKey.action("hgTags") { "hg id -t".!!.trim }
|
|
42 |
), |
|
43 |
buildInfoPackage := "purecss.build", |
|
44 |
buildInfoOptions ++= Seq(BuildInfoOption.ToMap, BuildInfoOption.ToJson) |
|
45 |
||
| 7 | 46 |
).jvmSettings( |
47 |
initialCommands in console := """ |
|
48 |
import scalatags.Text.all._ |
|
49 |
import purecss.text.PureCss._ |
|
50 |
""" |
|
51 |
).jsSettings() |
|
| 1 | 52 |
|
|
11
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
53 |
lazy val purecssJS = purecssProject.js |
|
631d2cad56f5
build.sbt: make it bintray friendly
Tomas Zeman <tzeman@volny.cz>
parents:
10
diff
changeset
|
54 |
lazy val purecssJVM = purecssProject.jvm |
| 1 | 55 |
|
56 |
// vim: et ts=2 sw=2 syn=scala |