1- import com .jsuereth .sbtpgp .PgpKeys
2- import sbtrelease .ReleasePlugin .autoImport ._
3- import sbtrelease .ReleaseStateTransformations ._
41
52val isDotty = Def .setting(CrossVersion .partialVersion(scalaVersion.value).exists(_._1 != 2 ))
63
@@ -28,29 +25,35 @@ val dotty = "3.2.2"
2825val mainScalaVersion = scala_2_13
2926val supportedScalaVersions = Seq (scala_2_12, scala_2_13, dotty)
3027
28+ ThisBuild / crossScalaVersions := supportedScalaVersions
29+ ThisBuild / scalaVersion := mainScalaVersion
30+
3131lazy val baseSettings = Seq (
3232// Scala settings
3333 homepage := Some (url(" https://github.com/theiterators/sealed-monad" )),
34- scalaVersion := mainScalaVersion,
3534 scalacOptions := Seq (" -deprecation" , " -unchecked" , " -feature" , " -encoding" , " utf8" ) ++
3635 (if (isDotty.value)
3736 Seq (" -language:implicitConversions" , " -Ykind-projector" , " -Xignore-scala2-macros" )
3837 else Nil ),
3938 scalafmtOnCompile := true ,
4039// Sonatype settings
41- publishTo := sonatypePublishTo.value,
4240 sonatypeProfileName := " pl.iterators" ,
43- publishMavenStyle := true ,
4441 licenses := Seq (" Apache-2.0" -> url(" https://www.apache.org/licenses/LICENSE-2.0" )),
4542 organization := " pl.iterators" ,
4643 organizationName := " Iterators" ,
47- organizationHomepage := Some (url(" https://iterato.rs " )),
44+ organizationHomepage := Some (url(" https://www.iteratorshq.com " )),
4845 developers := List (
4946 Developer (
5047 id = " mrzeznicki" ,
5148 name = " Marcin Rzeźnicki" ,
5249 email = " mrzeznicki@iterato.rs" ,
5350 url = url(" https://github.com/marcin-rzeznicki" )
51+ ),
52+ Developer (
53+ id = " pkiersznowski" ,
54+ name = " Paweł Kiersznowski" ,
55+ email = " pkiersznowski@iteratorshq.com" ,
56+ url = url(" https://github.com/pk044" )
5457 )
5558 ),
5659 scmInfo := Some (
@@ -59,21 +62,13 @@ lazy val baseSettings = Seq(
5962 connection = " scm:git:https://github.com/theiterators/sealed-monad.git"
6063 )
6164 ),
62- credentials += Credentials (Path .userHome / " .ivy2" / " .credentials" ),
63- releasePublishArtifactsAction := PgpKeys .publishSigned.value,
64- crossScalaVersions := supportedScalaVersions,
65- releaseCrossBuild := true
65+ crossScalaVersions := supportedScalaVersions
6666)
6767
6868lazy val noPublishSettings =
6969 Seq (
7070 publishArtifact := false ,
71- releaseCrossBuild := false ,
72- skip / publish := true ,
73- releasePublishArtifactsAction := {
74- val projectName = name.value
75- streams.value.log.warn(s " Publishing for $projectName is turned off " )
76- }
71+ skip / publish := true
7772 )
7873
7974lazy val examples = project
@@ -123,19 +118,5 @@ lazy val sealedMonad = project
123118 .settings(baseSettings : _* )
124119 .settings(
125120 name := " sealed-monad" ,
126- description := " Scala library for nice for-comprehension-style error handling" ,
127- releaseProcess := Seq (
128- checkSnapshotDependencies,
129- inquireVersions,
130- releaseStepCommandAndRemaining(" +publishLocalSigned" ),
131- releaseStepCommandAndRemaining(" +clean" ),
132- releaseStepCommandAndRemaining(" +test" ),
133- setReleaseVersion,
134- commitReleaseVersion,
135- tagRelease,
136- releaseStepCommandAndRemaining(" +publishSigned" ),
137- setNextVersion,
138- commitNextVersion,
139- pushChanges
140- )
121+ description := " Scala library for nice for-comprehension-style error handling"
141122 )
0 commit comments