diff --git a/mdui/build.sbt b/mdui/build.sbt index 0674c61..779e04a 100644 --- a/mdui/build.sbt +++ b/mdui/build.sbt @@ -3,6 +3,7 @@ import VersionHelper.{versionFmt, fallbackVersion} ThisBuild / scalaVersion := Versions.Scala_3 resolvers ++= Resolver.sonatypeOssRepos("public") +credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credentials") ThisBuild / version := dynverGitDescribeOutput.value .mkVersion(out => versionFmt(out, dynverSonatypeSnapshots.value), @@ -31,10 +32,18 @@ lazy val mdui = (project in file(".")) ), ) .settings( + // versionScheme := Some("early-semver"), + version := "0.1.0", name := "Laminar MDUI", normalizedName := "laminar-mdui", organization := "io.github.elgca", homepage := Some(url("https://github.com/elgca/laminar-mdui-components")), + scmInfo := Some( + ScmInfo( + url("https://github.com/elgca/laminar-mdui-components"), + "scm:git@github.com:elgca/laminar-mdui-components.git", + ), + ), developers := List( Developer( id = "io.github.elgca", @@ -46,6 +55,15 @@ lazy val mdui = (project in file(".")) licenses := List("MIT" -> url("https://opensource.org/license/MIT")), (Test / publishArtifact) := false, pomIncludeRepository := { _ => false }, - sonatypeCredentialHost := "s01.oss.sonatype.org", - sonatypeRepository := "https://s01.oss.sonatype.org/service/local", + // sonatypeCredentialHost := "s01.oss.sonatype.org", + // sonatypeRepository := "https://s01.oss.sonatype.org/service/local", + // publishTo := { + // // For accounts created after Feb 2021: + // val nexus = "https://s01.oss.sonatype.org/" + // // val nexus = "https://oss.sonatype.org/" + // if (isSnapshot.value) + // Some("snapshots" at nexus + "content/repositories/snapshots") + // else Some("releases" at nexus + "service/local/staging/deploy/maven2") + // }, + publishMavenStyle := true, ) diff --git a/mdui/project/plugins.sbt b/mdui/project/plugins.sbt index 6ba5202..18ab4c5 100644 --- a/mdui/project/plugins.sbt +++ b/mdui/project/plugins.sbt @@ -1,3 +1,5 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.16.0") addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11") addSbtPlugin("com.github.sbt" % "sbt-git" % "2.0.1") +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")