This repository has been archived by the owner on Jun 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
79 lines (70 loc) · 2.49 KB
/
build.sbt
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
organization in ThisBuild := "de.surfice"
version in ThisBuild := "0.0.1-SNAPSHOT"
scalaVersion in ThisBuild := "2.11.12"
val Version = new {
val gtk = "0.0.2-SNAPSHOT"
val obj_interop = "0.0.6-SNAPSHOT"
//val slogging = "0.5.3"
val smacrotools = "0.0.8"
val utest = "0.6.3"
}
lazy val commonSettings = Seq(
scalacOptions ++= Seq("-deprecation","-unchecked","-feature","-language:implicitConversions","-Xlint"),
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
libraryDependencies ++= Seq(
"de.surfice" %%% "scalanative-interop-cobj" % Version.obj_interop,
"de.surfice" %%% "scalanative-glib" % Version.gtk,
"de.surfice" %%% "scalanative-json-glib" % Version.gtk,
"de.surfice" %%% "scalanative-gio" % Version.gtk
//"com.lihaoyi" %%% "utest" % Version.utest % "test"
),
testFrameworks += new TestFramework("utest.runner.Framework")
)
lazy val libsoup = project.in(file("."))
.enablePlugins(ScalaNativePlugin,NBHPkgConfigPlugin)
.settings(commonSettings ++ publishingSettings:_*)
.settings(
name := "scalanative-libsoup",
description := "Object-oriented bindings to libsoup for Scala Native",
nbhPkgConfigModules += "libsoup-2.4",
nativeLinkStubs := true,
nativeLinkingOptions ++= nbhNativeLinkingOptions.value
)
lazy val dontPublish = Seq(
publish := {},
publishLocal := {},
com.typesafe.sbt.pgp.PgpKeys.publishSigned := {},
com.typesafe.sbt.pgp.PgpKeys.publishLocalSigned := {},
publishArtifact := false,
publishTo := Some(Resolver.file("Unused transient repository",file("target/unusedrepo")))
)
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/scalanative-libsoup</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/scalanative-libsoup</url>
<connection>scm:git:git@github.com:jokade/scalanative-libsoup.git</connection>
</scm>
<developers>
<developer>
<id>jokade</id>
<name>Johannes Kastner</name>
<email>jokade@karchedon.de</email>
</developer>
</developers>
)
)