Skip to content

Commit

Permalink
Publishing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
HexagonNico committed Apr 21, 2024
1 parent 6f7befa commit 46e94ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
// Project info
name := "ColorLib"
homepage := Some(url("https://github.com/ScalaMath/ColorLib"))
version := "1.0"
description := "A Scala library for color math"
// Organization info
organization := "io.github.scalamath"
organizationName := "ScalaMath"
organizationHomepage := Some(url("https://github.com/ScalaMath"))
version := "1.0"
description := "A Scala library for color math"
// Project scala version
scalaVersion := "2.13.12"

// Do not append the scala version to the generated artifact
crossPaths := false

// VecMatLib dependency
libraryDependencies += "io.github.scalamath" % "vecmatlib" % "3.0"

// Scala test dependency
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % Test
// Junit test dependency
Expand Down Expand Up @@ -42,11 +47,7 @@ licenses := List(
"Apache 2" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")
)

// Maven publishing
// Publish to local repository
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://s01.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
publishTo := Some(Resolver.file("local-ivy", file(Path.userHome + "/.ivy2")))
publishMavenStyle := true
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

0 comments on commit 46e94ce

Please sign in to comment.