Skip to content

Commit 3c56fc0

Browse files
committed
proper scm info
1 parent 5a38316 commit 3c56fc0

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

build.sbt

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ name := """bitbucket-scala-client"""
77

88
scalaVersion := "2.11.12"
99

10-
scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-Ywarn-adapted-args", "-Xlint")
10+
scalacOptions := Seq("-deprecation",
11+
"-feature",
12+
"-unchecked",
13+
"-Ywarn-adapted-args",
14+
"-Xlint")
1115

1216
resolvers += "Typesafe maven repository" at "http://repo.typesafe.com/typesafe/maven-releases/"
1317

@@ -18,9 +22,15 @@ libraryDependencies ++= Seq(
1822
)
1923

2024
mimaPreviousArtifacts := {
21-
val latestVersion = JSON.parseFull(
22-
Source.fromURL("https://api.github.com/repos/codacy/bitbucket-scala-client/releases/latest").mkString
23-
).flatMap(_.asInstanceOf[Map[String, String]].get("tag_name")).getOrElse("5.0.0")
25+
val latestVersion = JSON
26+
.parseFull(
27+
Source
28+
.fromURL(
29+
"https://api.github.com/repos/codacy/bitbucket-scala-client/releases/latest")
30+
.mkString
31+
)
32+
.flatMap(_.asInstanceOf[Map[String, String]].get("tag_name"))
33+
.getOrElse("5.0.0")
2434
Set("com.codacy" %% "bitbucket-scala-client" % latestVersion)
2535
}
2636
mimaBinaryIssueFilters ++= ignoredABIProblems
@@ -40,22 +50,13 @@ description := "Bitbucket Scala Client"
4050

4151
homepage := Some(url("https://github.com/codacy/bitbucket-scala-client.git"))
4252

43-
pomExtra :=
44-
<scm>
45-
<url>https://github.com/codacy/bitbucket-scala-client.git</url>
46-
<connection>scm:git:git@github.com:codacy/bitbucket-scala-client.git</connection>
47-
<developerConnection>scm:git:https://github.com/codacy/bitbucket-scala-client.git</developerConnection>
48-
</scm>
49-
<developers>
50-
<developer>
51-
<id>rtfpessoa</id>
52-
<name>Rodrigo</name>
53-
<email>rodrigo [at] codacy.com</email>
54-
<url>https://github.com/rtfpessoa</url>
55-
</developer>
56-
</developers>
57-
58-
pgpPassphrase := Option(System.getenv("SONATYPE_GPG_PASSPHRASE")).map(_.toCharArray)
53+
scmInfo := Some(
54+
ScmInfo(url("https://github.com/codacy/bitbucket-scala-client.git"),
55+
"scm:git:[email protected]:codacy/bitbucket-scala-client.git")
56+
)
57+
58+
pgpPassphrase := Option(System.getenv("SONATYPE_GPG_PASSPHRASE"))
59+
.map(_.toCharArray)
5960

6061
resolvers ~= { _.filterNot(_.name.toLowerCase.contains("codacy")) }
6162

0 commit comments

Comments
 (0)