11lazy val commonSettings = Seq (
22 organization := " nl.codestar" ,
33 homepage := Some (url(" https://github.com/code-star/sbt-azure-functions-plugin" )),
4- // version is set by sbt-dynver plugin (included through sbt-ci-assembly )
4+ // version is set by sbt-dynver plugin (included through sbt-ci-release )
55 description := " SBT Plugin to generate function.json artefacts needed to publish code as an Azure Function" ,
6+ organization := " nl.codestar" ,
7+ organizationName := " Codestar powered by Sopra Steria" ,
8+ organizationHomepage := Some (url(" https://codestar.nl" )),
9+ homepage := Some (url(" https://codestar.nl/sbt-azure-functions-plugin" )),
610 licenses += (" MIT" , url(" https://opensource.org/licenses/MIT" )),
711 developers := List (
812 Developer (
@@ -11,7 +15,38 @@ lazy val commonSettings = Seq(
1115 " jean-marc.vanleerdam@soprasteria.com" ,
1216 url(" https://soprasteria.com" )
1317 )
18+ ),
19+ scmInfo := Some (
20+ ScmInfo (
21+ url(" https://github.com/code-star/sbt-azure-functions-plugin" )," scm:git@github.com:code-star/sbt-azure-functions-plugin.git" )
22+ ),
23+ credentials ++= Seq (
24+ Credentials (
25+ " GnuPG Key ID" ,
26+ " gpg" ,
27+ System .getenv(" PGP_KEYID" ), // key identifier
28+ " ignored" // this field is ignored; passwords are supplied by pinentry
29+ ),
30+ Credentials (
31+ " Sonatype Nexus Repository Manager" ,
32+ " oss.sonatype.org" ,
33+ System .getenv(" SONATYPE_USER" ),
34+ System .getenv(" SONATYPE_PASSWORD" ) // Use environment variable for security
35+ ),
36+ Credentials (
37+ " Sonatype Nexus Repository Manager" ,
38+ " central.sonatype.com" ,
39+ System .getenv(" SONATYPE_USER" ),
40+ System .getenv(" SONATYPE_PASSWORD" ) // Use environment variable for security
41+ ),
42+ Credentials (
43+ " central-snapshots" ,
44+ " central.sonatype.com" ,
45+ System .getenv(" SONATYPE_USER" ),
46+ System .getenv(" SONATYPE_PASSWORD" ) // Use environment variable for security
47+ )
1448 )
49+
1550)
1651
1752lazy val root = project.in(file(" ." ))
@@ -29,6 +64,12 @@ lazy val plugin = project.in(file("plugin"))
2964 .settings(
3065 name := " sbt-azure-functions" ,
3166 commonSettings,
67+ scalaVersion := " 2.12.18" ,
68+ pluginCrossBuild / sbtVersion := {
69+ scalaBinaryVersion.value match {
70+ case " 2.12" => " 1.11.4" // set minimum version
71+ }
72+ },
3273 scalacOptions ++= Seq (
3374 " -encoding" ,
3475 " UTF8" ,
@@ -60,3 +101,12 @@ lazy val plugin = project.in(file("plugin"))
60101
61102// workaround for interactive sessions that do not echo the user input (https://github.com/sbt/sbt-bintray/issues/177)
62103ThisBuild / useSuperShell := false
104+
105+ ThisBuild / pomIncludeRepository := { _ => false }
106+ ThisBuild / publishMavenStyle := true
107+
108+ ThisBuild / publishTo := {
109+ val centralSnapshots = " https://central.sonatype.com/repository/maven-snapshots/"
110+ if (isSnapshot.value) Some (" central-snapshots" at centralSnapshots)
111+ else localStaging.value
112+ }
0 commit comments