forked from OpenESignForms/vaadin-ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
67 lines (53 loc) · 1.94 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
name := "vaadin-ckeditor"
version in ThisBuild := "1.0.1"
organization in ThisBuild := "com.github.ilgun"
crossPaths in ThisBuild := false
autoScalaLibrary in ThisBuild := false
isSnapshot in ThisBuild := false
javacOptions in ThisBuild ++= Seq("-source", "1.8", "-target", "1.8")
publishArtifact in root := false
lazy val root = project.in(file(".")).aggregate(addon)
lazy val addon = project.settings(vaadinAddOnSettings :_*).settings(
name := "vaadin-ckeditor",
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/vaadin-ckeditor</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/vaadin-ckeditor</url>
<connection>scm:[email protected]:ilgun/vaadin-ckeditor.git</connection>
</scm>
<developers>
<developer>
<id>ilgun</id>
<name>Ilgun Ilgun</name>
<url>https://github.com/ilgun</url>
</developer>
</developers>