forked from jokade/slogging
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
101 lines (91 loc) · 2.59 KB
/
build.sbt
File metadata and controls
101 lines (91 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
lazy val commonSettings = Seq(
organization := "biz.enef",
version := "0.5.2",
scalaVersion := "2.11.8",
scalacOptions ++= Seq("-deprecation","-unchecked","-feature","-Xlint"),
crossScalaVersions := Seq("2.11.8", "2.12.0")
)
lazy val root = project.in(file(".")).
aggregate(sloggingJVM,sloggingJS,slf4j,winston,http).
settings(commonSettings:_*).
//settings(sonatypeSettings: _*).
settings(
name := "slogging",
publish := {},
publishLocal := {},
resolvers += Resolver.sonatypeRepo("releases")
)
lazy val slogging = crossProject.in(file(".")).
settings(commonSettings:_*).
settings(publishingSettings:_*).
settings(
name := "slogging",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % "2.11.7",
"com.lihaoyi" %%% "utest" % "0.4.4" % "test"
),
testFrameworks += new TestFramework("utest.runner.Framework")
).
jvmSettings(
).
jsSettings(
//preLinkJSEnv := NodeJSEnv().value,
//postLinkJSEnv := NodeJSEnv().value
)
lazy val sloggingJVM = slogging.jvm
lazy val sloggingJS = slogging.js
lazy val slf4j = project.
dependsOn(sloggingJVM).
settings(commonSettings:_*).
settings(publishingSettings:_*).
settings(
name := "slogging-slf4j",
libraryDependencies += "org.slf4j" % "slf4j-api" % "1.7.12"
)
lazy val winston = project.
dependsOn(sloggingJS).
enablePlugins(ScalaJSPlugin).
settings(commonSettings:_*).
settings(publishingSettings:_*).
settings(
name := "slogging-winston"
)
lazy val http = project.
dependsOn(sloggingJS).
enablePlugins(ScalaJSPlugin).
settings(commonSettings:_*).
settings(publishingSettings:_*).
settings(
name := "slogging-http",
libraryDependencies += "org.scala-js" %%% "scalajs-dom" % "0.9.1"
)
lazy val publishingSettings = Seq(
publishMavenStyle := true,
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
pomExtra := (
<url>https://github.com/jokade/slogging</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
</license>
</licenses>
<scm>
<url>git@github.com:jokade/slogging</url>
<connection>scm:git:git@github.com:jokade/slogging.git</connection>
</scm>
<developers>
<developer>
<id>jokade</id>
<name>Johannes Kastner</name>
<email>jokade@karchedon.de</email>
</developer>
</developers>
)
)