Skip to content

Commit eaae612

Browse files
committed
Update release process
1 parent 66bbf52 commit eaae612

File tree

3 files changed

+13
-34
lines changed

3 files changed

+13
-34
lines changed

build.sbt

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import com.jsuereth.sbtpgp.PgpKeys
2-
import sbtrelease.ReleasePlugin.autoImport._
3-
import sbtrelease.ReleaseStateTransformations._
41

52
val isDotty = Def.setting(CrossVersion.partialVersion(scalaVersion.value).exists(_._1 != 2))
63

@@ -28,29 +25,35 @@ val dotty = "3.2.2"
2825
val mainScalaVersion = scala_2_13
2926
val supportedScalaVersions = Seq(scala_2_12, scala_2_13, dotty)
3027

28+
ThisBuild / crossScalaVersions := supportedScalaVersions
29+
ThisBuild / scalaVersion := mainScalaVersion
30+
3131
lazy 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

6868
lazy 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

7974
lazy 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
)

project/plugins.sbt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.4")
22
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
3-
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
43
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")
54
addSbtPlugin("com.github.tkawachi" % "sbt-doctest" % "0.10.0")
65
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.7")

version.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)