1
1
val scala211 = " 2.11.12"
2
2
val scala212 = " 2.12.8"
3
- val scala213 = " 2.13.0 "
3
+ val scala213 = " 2.13.1 "
4
4
5
5
name := " codacy-plugins-api"
6
6
organization := " com.codacy"
7
7
8
8
scalaVersion := scala212
9
+
9
10
crossScalaVersions := Seq (scala211, scala212, scala213)
10
11
11
- libraryDependencies ++= Seq (" org.specs2" %% " specs2-core" % " 4.6.0 " % Test )
12
+ libraryDependencies ++= Seq (" org.specs2" %% " specs2-core" % " 4.7.1 " % Test )
12
13
13
14
unmanagedSourceDirectories in Compile += {
14
15
val sourceDir = (sourceDirectory in Compile ).value
@@ -18,53 +19,11 @@ unmanagedSourceDirectories in Compile += {
18
19
}
19
20
}
20
21
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)
29
23
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"
53
25
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" ))
59
28
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
0 commit comments