Skip to content

Commit b18a52b

Browse files
committed
build: update project plugins (add codacy sbt plugin) and bump specs2 to 4.7.1
Signed-off-by: Luís Ferreira <[email protected]>
1 parent 579ed1a commit b18a52b

File tree

3 files changed

+11
-59
lines changed

3 files changed

+11
-59
lines changed

build.sbt

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
val scala211 = "2.11.12"
22
val scala212 = "2.12.8"
3-
val scala213 = "2.13.0"
3+
val scala213 = "2.13.1"
44

55
name := "codacy-plugins-api"
66
organization := "com.codacy"
77

88
scalaVersion := scala212
9+
910
crossScalaVersions := Seq(scala211, scala212, scala213)
1011

11-
libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "4.6.0" % Test)
12+
libraryDependencies ++= Seq("org.specs2" %% "specs2-core" % "4.7.1" % Test)
1213

1314
unmanagedSourceDirectories in Compile += {
1415
val sourceDir = (sourceDirectory in Compile).value
@@ -18,53 +19,11 @@ unmanagedSourceDirectories in Compile += {
1819
}
1920
}
2021

21-
// Sonatype repository settings
22-
ThisBuild / credentials += Credentials("Sonatype Nexus Repository Manager",
23-
"oss.sonatype.org",
24-
sys.env.getOrElse("SONATYPE_USER", "username"),
25-
sys.env.getOrElse("SONATYPE_PASSWORD", "password"))
26-
ThisBuild / organization := "com.codacy"
27-
ThisBuild / organizationName := "Codacy"
28-
ThisBuild / organizationHomepage := Some(url("https://www.codacy.com"))
22+
pgpPassphrase := Option(System.getenv("SONATYPE_GPG_PASSPHRASE")).map(_.toCharArray)
2923

30-
ThisBuild / scmInfo := Some(
31-
ScmInfo(url("https://github.com/codacy/codacy-plugins-api"), "scm:[email protected]:codacy/codacy-plugins-api"))
32-
ThisBuild / developers := List(
33-
Developer(id = "johannegger",
34-
name = "Johann",
35-
email = "johann [at] codacy.com",
36-
url = url("https://github.com/johannegger")),
37-
Developer(id = "rtfpessoa",
38-
name = "Rodrigo Fernandes",
39-
email = "rodrigo [at] codacy.com",
40-
url = url("https://github.com/rtfpessoa")),
41-
Developer(id = "bmbferreira",
42-
name = "Bruno Ferreira",
43-
email = "bruno.ferreira [at] codacy.com",
44-
url = url("https://github.com/bmbferreira")),
45-
Developer(id = "xplosunn",
46-
name = "Hugo Sousa",
47-
email = "hugo [at] codacy.com",
48-
url = url("https://github.com/xplosunn")),
49-
Developer(id = "pedrocodacy",
50-
name = "Pedro Amaral",
51-
email = "pamaral [at] codacy.com",
52-
url = url("https://github.com/pedrocodacy")))
24+
description := "A dependency free api for Codacy Tools"
5325

54-
ThisBuild / startYear := Some(2016)
55-
ThisBuild / description := "Library to develop Codacy tool plugins"
56-
ThisBuild / licenses := List(
57-
"The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
58-
ThisBuild / homepage := Some(url("http://www.github.com/codacy/codacy-plugins-api/"))
26+
scmInfo := Some(
27+
ScmInfo(url("https://github.com/codacy/codacy-plugins-api"), "scm:git:[email protected]:codacy/codacy-plugins-api.git"))
5928

60-
// Remove all additional repository other than Maven Central from POM
61-
ThisBuild / pomIncludeRepository := { _ =>
62-
false
63-
}
64-
ThisBuild / publishTo := {
65-
val nexus = "https://oss.sonatype.org/"
66-
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
67-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
68-
}
69-
ThisBuild / publishMavenStyle := true
70-
ThisBuild / publishArtifact in Test := false
29+
publicMvnPublish

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.3.0
1+
sbt.version=1.3.2

project/plugins.sbt

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
// Sonatype publishing
2-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
3-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")
1+
resolvers += Resolver.jcenterRepo
42

5-
// Dependency updates
6-
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")
7-
8-
// Coverage
9-
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.0")
10-
addSbtPlugin("com.codacy" % "sbt-codacy-coverage" % "1.3.15")
3+
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "17.1.2")

0 commit comments

Comments
 (0)