Skip to content

Commit 53e1a91

Browse files
authored
Merge pull request #21 from codacy/add-sonatype-creds
Add sonatype credentials
2 parents 2ddc8f0 + c4c02b8 commit 53e1a91

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

build.sbt

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ crossScalaVersions := Seq(scalaVersion.value, "2.12.4")
77

88
libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "4.0.2" % Test)
99

10-
description := "Library to develop Codacy tool plugins"
11-
homepage := Some(url("https://github.com/codacy/codacy-plugins-api"))
12-
startYear := Some(2016)
13-
organizationName := "Codacy"
14-
organizationHomepage := Some(new URL("https://www.codacy.com"))
15-
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
16-
10+
// Sonatype repository settings
11+
credentials += Credentials(
12+
"Sonatype Nexus Repository Manager",
13+
"oss.sonatype.org",
14+
sys.env.getOrElse("SONATYPE_USER", "username"),
15+
sys.env.getOrElse("SONATYPE_PASSWORD", "password")
16+
)
1717
publishMavenStyle := true
1818
publishArtifact in Test := false
1919
pomIncludeRepository := { _ =>
@@ -26,10 +26,17 @@ publishTo := {
2626
else
2727
Some("releases" at nexus + "service/local/staging/deploy/maven2")
2828
}
29+
30+
organizationName := "Codacy"
31+
organizationHomepage := Some(new URL("https://www.codacy.com"))
32+
startYear := Some(2016)
33+
description := "Library to develop Codacy tool plugins"
34+
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
35+
homepage := Some(url("http://www.github.com/codacy/codacy-plugins-api/"))
2936
pomExtra :=
3037
<scm>
3138
<url>https://github.com/codacy/codacy-plugins-api</url>
32-
<connection>scm:git:git@github.com:codacy/codacy-engine-scala-seed.git</connection>
39+
<connection>scm:git:git@github.com:codacy/codacy-plugins-api.git</connection>
3340
<developerConnection>scm:git:https://github.com/codacy/codacy-plugins-api.git</developerConnection>
3441
</scm>
3542
<developers>
@@ -39,4 +46,28 @@ pomExtra :=
3946
<email>johann [at] codacy.com</email>
4047
<url>https://github.com/johannegger</url>
4148
</developer>
49+
<developer>
50+
<id>rtfpessoa</id>
51+
<name>Rodrigo Fernandes</name>
52+
<email>rodrigo [at] codacy.com</email>
53+
<url>https://github.com/rtfpessoa</url>
54+
</developer>
55+
<developer>
56+
<id>bmbferreira</id>
57+
<name>Bruno Ferreira</name>
58+
<email>bruno.ferreira [at] codacy.com</email>
59+
<url>https://github.com/bmbferreira</url>
60+
</developer>
61+
<developer>
62+
<id>xplosunn</id>
63+
<name>Hugo Sousa</name>
64+
<email>hugo [at] codacy.com</email>
65+
<url>https://github.com/xplosunn</url>
66+
</developer>
67+
<developer>
68+
<id>pedrocodacy</id>
69+
<name>Pedro Amaral</name>
70+
<email>pamaral [at] codacy.com</email>
71+
<url>https://github.com/pedrocodacy</url>
72+
</developer>
4273
</developers>

0 commit comments

Comments
 (0)