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 fa128ac commit 6543dd8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 54 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/publish.yml

This file was deleted.

16 changes: 8 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
// Project info
name := "VecMatLib"
homepage := Some(url("https://github.com/ScalaMath/VecMatLib"))
version := "3.0"
description := "A Scala library for vectors and matrix math"
// Organization info
organization := "io.github.scalamath"
organizationName := "ScalaMath"
organizationHomepage := Some(url("https://github.com/ScalaMath"))
version := "3.0"
description := "A Scala library for vectors and matrix math"
// Project scala version
scalaVersion := "2.13.12"

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

// Scala test dependency
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % Test
// Junit test dependency
Expand Down Expand Up @@ -40,11 +44,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")
}
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 6543dd8

Please sign in to comment.