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 3f14e83 commit 562e035
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 58 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/publish.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 17
- name: Build and Test
run: sbt test
run: sbt test
18 changes: 9 additions & 9 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
// Project info
name := "CmplxLib"
homepage := Some(url("https://github.com/ScalaMath/CmplxLib"))
version := "2.0"
description := "A Scala library for complex numbers, complex vectors, and complex matrices"
// Organization info
organization := "io.github.scalamath"
organizationName := "ScalaMath"
organizationHomepage := Some(url("https://github.com/ScalaMath"))
version := "2.0"
description := "A Scala library for complex numbers, complex vectors, and complex matrices"
// 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"

Expand Down Expand Up @@ -43,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 562e035

Please sign in to comment.