diff --git a/build.sbt b/build.sbt index a250cc4..ad9ea0b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,10 +1,6 @@ name := "mapk" -organization := "com.codedx" version := "1.0.0" -githubOwner := "codedx" -githubRepository := "mapk" - scalaVersion := "2.12.13" crossScalaVersions := List("2.12.13", "2.13.5") scalacOptions := List("-deprecation", "-unchecked", "-feature", "-language:higherKinds") @@ -16,4 +12,6 @@ scalacOptions ++= (scalaBinaryVersion.value match { libraryDependencies += "org.typelevel" %% "cats-core" % "2.4.2" libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.5" % "test" -addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.3" cross CrossVersion.full) \ No newline at end of file +addCompilerPlugin("org.typelevel" % "kind-projector" % "0.11.3" cross CrossVersion.full) + +// \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt index d7bc2a4..c860296 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1 +1,2 @@ -addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.2") \ No newline at end of file +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.7") +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") \ No newline at end of file diff --git a/publish.sbt b/publish.sbt new file mode 100644 index 0000000..adb65ee --- /dev/null +++ b/publish.sbt @@ -0,0 +1,31 @@ +ThisBuild / organization := "com.codedx" +ThisBuild / organizationName := "Code Dx" +ThisBuild / organizationHomepage := Some(url("https://codedx.com/")) + +ThisBuild / scmInfo := Some( + ScmInfo( + url("https://github.com/codedx/mapk"), + "scm:git@github.com:codedx/mapk.git" + ) +) +ThisBuild / developers := List( + Developer( + id = "codedx", + name = "Code Dx", + email = "support@codedx.com", + url = url("https://codedx.com/") + ) +) + +ThisBuild / description := "Map-like class for higher-kind key and value types" +ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) +ThisBuild / homepage := Some(url("https://github.com/codedx/mapk")) + +// Remove all additional repository other than Maven Central from POM +ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / publishTo := { + 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") +} +ThisBuild / publishMavenStyle := true \ No newline at end of file