11ThisBuild / organization := " com.github.dmytromitin"
2+ ThisBuild / organizationName := " com.github.dmytromitin"
23ThisBuild / version := " 0.1.1-SNAPSHOT"
4+ ThisBuild / versionScheme := Some (" early-semver" )
35ThisBuild / scalaVersion := " 2.12.21"
46ThisBuild / sbtVersion := " 1.12.15"
57ThisBuild / publishMavenStyle := true
68ThisBuild / publishTo := None
79ThisBuild / credentials := Nil
810ThisBuild / licenses := List (" Apache-2.0" -> url(" https://www.apache.org/licenses/LICENSE-2.0" ))
911ThisBuild / homepage := Some (url(" https://github.com/DmytroMitin/macroparadise-scala3" ))
12+ ThisBuild / scmInfo := Some (
13+ ScmInfo (
14+ url(" https://github.com/DmytroMitin/macroparadise-scala3" ),
15+ " scm:git:https://github.com/DmytroMitin/macroparadise-scala3.git" ,
16+ Some (" scm:git:ssh://git@github.com:DmytroMitin/macroparadise-scala3.git" )
17+ )
18+ )
19+ ThisBuild / developers := List (
20+ Developer (
21+ " DmytroMitin" ,
22+ " Dmytro Mitin" ,
23+ " dmitin3@gmail.com" ,
24+ url(" https://github.com/DmytroMitin" )
25+ )
26+ )
27+ ThisBuild / pomIncludeRepository := (_ => false )
1028
1129lazy val verifyIntegrationPolicy = taskKey[Unit ](" Verify the sbt integration publication and dependency boundary" )
1230
@@ -33,6 +51,9 @@ lazy val sbtIntegration = project
3351 require(credentials.value.isEmpty, " publication credentials must remain unset" )
3452 require((Compile / packageSrc / publishArtifact).value, " source artifact must remain enabled" )
3553 require((Compile / packageDoc / publishArtifact).value, " documentation artifact must remain enabled" )
54+ require(versionScheme.value.contains(" early-semver" ), " sbt integration version scheme must be early-semver" )
55+ require(scmInfo.value.nonEmpty, " sbt integration SCM metadata must be present" )
56+ require(developers.value.nonEmpty, " sbt integration developer metadata must be present" )
3657 streams.value.log.info(" sbt integration policy verified: sbt1.x/scala2.12 dottyRuntime=false publishTo=none credentials=none" )
3758 }
3859 )
0 commit comments