From 775130896364f2ddd9177e05cdd43109848fba97 Mon Sep 17 00:00:00 2001 From: Nico Date: Thu, 18 Apr 2024 10:20:40 +0200 Subject: [PATCH] Updated build scripts --- .github/workflows/ci.yml | 5 ----- .github/workflows/test.yml | 2 +- build.sbt | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 37 insertions(+), 7 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 950c8e2..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,5 +0,0 @@ -name: CI -on: [push, pull_request] -jobs: - test: - uses: ./.github/workflows/test.yml \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17b7923..3340b8e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,5 @@ name: Test -on: [workflow_call] +on: [push, pull_request, workflow_call] jobs: test: runs-on: ubuntu-latest diff --git a/build.sbt b/build.sbt index 4164390..d50bcdb 100644 --- a/build.sbt +++ b/build.sbt @@ -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 @@ -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") \ No newline at end of file +scalacOptions ++= Seq("-unchecked", "-deprecation") + +// Publish info +scmInfo := Some( + ScmInfo( + url("https://github.com/ScalaMath/VecMatLib"), + "scm:git@github.com:ScalaMath/VecMatLib.git" + ) +) + +// Developer info +developers := List( + Developer( + id = "HexagonNico", + name = "Nicholas Amigoni", + email = "nico.hex6@gmail.com", + 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 \ No newline at end of file