Skip to content

Commit

Permalink
Updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
HexagonNico committed Apr 18, 2024
1 parent 5f84d84 commit 7751308
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Test
on: [workflow_call]
on: [push, pull_request, workflow_call]
jobs:
test:
runs-on: ubuntu-latest
Expand Down
37 changes: 36 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Project info
name := "VecMatLib"
homepage := Some(url("https://github.com/ScalaMath/VecMatLib"))
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
Expand All @@ -12,4 +15,36 @@ libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.18" % Test
libraryDependencies += "com.github.sbt" % "junit-interface" % "0.13.3" % Test

// Show deprecation warnings
scalacOptions ++= Seq("-unchecked", "-deprecation")
scalacOptions ++= Seq("-unchecked", "-deprecation")

// Publish info
scmInfo := Some(
ScmInfo(
url("https://github.com/ScalaMath/VecMatLib"),
"scm:[email protected]:ScalaMath/VecMatLib.git"
)
)

// Developer info
developers := List(
Developer(
id = "HexagonNico",
name = "Nicholas Amigoni",
email = "[email protected]",
url = url("https://hexagonnico.github.io")
)
)

// Project license
licenses := List(
"Apache 2" -> new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")
)

// Maven publishing
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

0 comments on commit 7751308

Please sign in to comment.