forked from henrikerola/ExpandingTextArea
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sbt
More file actions
80 lines (62 loc) · 2.36 KB
/
build.sbt
File metadata and controls
80 lines (62 loc) · 2.36 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
name := "ExpandingTextArea"
version in ThisBuild := "2.0.1"
organization in ThisBuild := "com.github.ilgun"
crossPaths in ThisBuild := false
autoScalaLibrary in ThisBuild := false
isSnapshot in ThisBuild := false
publishArtifact in root := false
lazy val root = project.in(file(".")).aggregate(addon)
lazy val addon = project.settings(vaadinAddOnSettings :_*).settings(
name := "ExpandingTextArea",
libraryDependencies := Dependencies.addonDeps,
// Javadoc generation causes problems so disabling it for now
mappings in packageVaadinDirectoryZip <<= (packageSrc in Compile) map {
(src) => Seq((src, src.name))
},
sources in doc in Compile := List()
)
sonatypeProfileName in ThisBuild := "com.github.ilgun"
useGpg in ThisBuild := true
def publishSettings: Seq[Setting[_]] = Seq(
publishMavenStyle in ThisBuild := true,
publishArtifact in Test := false,
publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
// Maven central cannot allow other repos. We're ok here because the artifacts we
// we use externally are *optional* dependencies.
pomIncludeRepository in ThisBuild := { x => false }
)
pomExtra in ThisBuild := <url>https://github.com/ilgun/ExpandingTextArea</url>
<licenses>
<license>
<name>Apache-2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/ilgun/ExpandingTextArea</url>
<connection>scm:[email protected]/ilgun/ExpandingTextArea.git</connection>
</scm>
<developers>
<developer>
<id>ilgun</id>
<name>Ilgun Ilgun</name>
<url>https://github.com/ilgun</url>
</developer>
</developers>
val vaadinVersion = "8.1.1"
libraryDependencies ++= Seq(
"com.vaadin" % "vaadin-server" % vaadinVersion,
"com.vaadin" % "vaadin-client" % vaadinVersion,
"com.vaadin" % "vaadin-compatibility-client" % vaadinVersion,
"com.vaadin" % "vaadin-compatibility-server" % vaadinVersion,
"com.vaadin" % "vaadin-client-compiler" % vaadinVersion,
"com.vaadin" % "vaadin-compatibility-client-compiled" % vaadinVersion,
"com.vaadin" % "vaadin-compatibility-themes" % vaadinVersion
)