Skip to content

Commit

Permalink
publish config update
Browse files Browse the repository at this point in the history
  • Loading branch information
elgca committed Jun 22, 2024
1 parent fe44627 commit 167d306
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
22 changes: 20 additions & 2 deletions mdui/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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",
Expand All @@ -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,
)
2 changes: 2 additions & 0 deletions mdui/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit 167d306

Please sign in to comment.