Skip to content

Commit 46e94ce

Browse files
committed
Publishing configuration
1 parent 6f7befa commit 46e94ce

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

build.sbt

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
// Project info
22
name := "ColorLib"
33
homepage := Some(url("https://github.com/ScalaMath/ColorLib"))
4+
version := "1.0"
5+
description := "A Scala library for color math"
6+
// Organization info
47
organization := "io.github.scalamath"
58
organizationName := "ScalaMath"
69
organizationHomepage := Some(url("https://github.com/ScalaMath"))
7-
version := "1.0"
8-
description := "A Scala library for color math"
910
// Project scala version
1011
scalaVersion := "2.13.12"
1112

13+
// Do not append the scala version to the generated artifact
14+
crossPaths := false
15+
1216
// VecMatLib dependency
1317
libraryDependencies += "io.github.scalamath" % "vecmatlib" % "3.0"
18+
1419
// Scala test dependency
1520
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % Test
1621
// Junit test dependency
@@ -42,11 +47,7 @@ licenses := List(
4247
"Apache 2" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")
4348
)
4449

45-
// Maven publishing
50+
// Publish to local repository
4651
pomIncludeRepository := { _ => false }
47-
publishTo := {
48-
val nexus = "https://s01.oss.sonatype.org/"
49-
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
50-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
51-
}
52-
publishMavenStyle := true
52+
publishTo := Some(Resolver.file("local-ivy", file(Path.userHome + "/.ivy2")))
53+
publishMavenStyle := true

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")

0 commit comments

Comments
 (0)