Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (45 sloc) 1.793 kB
6a6d29d @fommil remove bintray and use sonatype
fommil authored
1 name := "ensime-sbt"
a165aff @aemoncannon Initial.
aemoncannon authored
2
6a6d29d @fommil remove bintray and use sonatype
fommil authored
3 organization := "org.ensime"
a51e26d @aemoncannon First draft is working.
aemoncannon authored
4
1dce98e @fommil back to dev
fommil authored
5 version := "0.1.8-SNAPSHOT"
3051e3e @aemoncannon Setup for publishing to sonatype
aemoncannon authored
6
8180648 @fommil sbt's recommended publication setup
fommil authored
7 sbtPlugin := true
a165aff @aemoncannon Initial.
aemoncannon authored
8
9494489 @fommil rewrite of ensime-sbt
fommil authored
9 scalacOptions in Compile ++= Seq(
10 "-encoding", "UTF-8", "-target:jvm-1.6", "-feature", "-deprecation",
11 "-Xfatal-warnings",
12 "-language:postfixOps", "-language:implicitConversions"
13 //"-P:wartremover:only-warn-traverser:org.brianmckenna.wartremover.warts.Unsafe"
14 //"-P:wartremover:traverser:org.brianmckenna.wartremover.warts.Unsafe"
15 )
16
3fc5d27 @fommil bump scalariform
fommil authored
17 // we depend on scalariform to read the settings this might result in
18 // upgrades to the underlying scalariform that the project may be
19 // using, resulting in unintended reformatting as a result of
20 // regressions / bugfixes in upstream.
21 addSbtPlugin("org.scalariform" %% "sbt-scalariform" % "1.4.0")
9494489 @fommil rewrite of ensime-sbt
fommil authored
22
2bd2542 @fommil prep for 0.1.5
fommil authored
23 //scalariformSettings
24
33b6a0e @fommil sonatype needs maven style
fommil authored
25 publishMavenStyle := true
a165aff @aemoncannon Initial.
aemoncannon authored
26
2bd2542 @fommil prep for 0.1.5
fommil authored
27 publishArtifact in Test := false
28
29 pomIncludeRepository := { _ => false }
3051e3e @aemoncannon Setup for publishing to sonatype
aemoncannon authored
30
6a6d29d @fommil remove bintray and use sonatype
fommil authored
31 homepage := Some(url("http://github.com/ensime/ensime-server"))
3051e3e @aemoncannon Setup for publishing to sonatype
aemoncannon authored
32
2bd2542 @fommil prep for 0.1.5
fommil authored
33 licenses := Seq("BSD 3 Clause" -> url("http://opensource.org/licenses/BSD-3-Clause"))
34
35 publishTo <<= version { v: String =>
6a6d29d @fommil remove bintray and use sonatype
fommil authored
36 val nexus = "https://oss.sonatype.org/"
2bd2542 @fommil prep for 0.1.5
fommil authored
37 if (v.contains("SNAP")) Some("snapshots" at nexus + "content/repositories/snapshots")
38 else Some("releases" at nexus + "service/local/staging/deploy/maven2")
6a6d29d @fommil remove bintray and use sonatype
fommil authored
39 }
3051e3e @aemoncannon Setup for publishing to sonatype
aemoncannon authored
40
c064a7f @fommil improve the sonatype Credentials definition
fommil authored
41 credentials ++= {
42 for {
43 username <- sys.env.get("SONATYPE_USERNAME")
44 password <- sys.env.get("SONATYPE_PASSWORD")
45 } yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
46 }.toSeq
9494489 @fommil rewrite of ensime-sbt
fommil authored
47
2bd2542 @fommil prep for 0.1.5
fommil authored
48 pomExtra := (
49 <scm>
50 <url>git@github.com:ensime/ensime-sbt.git</url>
51 <connection>scm:git:git@github.com:ensime/ensime-sbt.git</connection>
52 </scm>
53 <developers>
54 <developer>
55 <id>fommil</id>
56 <name>Sam Halliday</name>
57 </developer>
58 </developers>
59 )
Something went wrong with that request. Please try again.