-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.sbt
56 lines (42 loc) · 1.5 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
sbtPlugin := true
crossSbtVersions := Vector("0.13.16", "1.0.0")
scalacOptions := Seq("-deprecation", "-unchecked")
organization := "org.scalastyle"
name := "scalastyle-sbt-plugin"
publishMavenStyle := true
resolvers += "sonatype-snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
resolvers += "sonatype-releases" at "https://oss.sonatype.org/content/repositories/releases/"
//resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/dev/repo/"
libraryDependencies ++= Seq(
"org.scalastyle" %% "scalastyle" % "1.1.0-SNAPSHOT"
)
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")
}
publishArtifact in Test := false
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://www.scalastyle.org</url>
<licenses>
<license>
<name>Apache 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:git@github.com:scalastyle/scalastyle.git</url>
<connection>scm:git:git@github.com:scalastyle/scalastyle.git</connection>
</scm>
<developers>
<developer>
<id>matthewfarwell</id>
<name>Matthew Farwell</name>
<url>http://www.farwell.co.uk</url>
</developer>
</developers>)