From fa581289bc6aefe71a075a56047dcb925a217d22 Mon Sep 17 00:00:00 2001 From: Casper Cromjongh Date: Thu, 16 May 2024 13:08:29 +0200 Subject: [PATCH 1/3] Add configuration to publish. --- build.sbt | 25 +++++++++++++++++++++---- project/plugins.sbt | 1 + 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 5c977ef..c12747b 100644 --- a/build.sbt +++ b/build.sbt @@ -1,3 +1,5 @@ +import com.jsuereth.sbtpgp.PgpKeys.{publishLocalSigned, publishSigned} + val chiselVersion = "6.3.0" ThisBuild / scalaVersion := "2.13.12" @@ -7,6 +9,19 @@ ThisBuild / semanticdbEnabled := true ThisBuild / semanticdbVersion := scalafixSemanticdb.revision ThisBuild / scalafixScalaBinaryVersion := scalaBinaryVersion.value +ThisBuild / developers := List( + Developer( + id = "ccromjongh", + name = "Casper Cromjongh", + email = "C.Cromjongh@tudelft.nl", + url = url("https://github.com/abs-tudelft/") + ) +) + +ThisBuild / publishMavenStyle := true +//ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / versionScheme := Some("early-semver") + lazy val commonSettings = Seq( homepage := Some(url("https://github.com/abs-tudelft/tydi-chisel")), organizationHomepage := Some(url("https://github.com/abs-tudelft/")), @@ -41,10 +56,12 @@ lazy val testingTools: Project = (project in file("testing")) // Aggregate projects to build them together lazy val root = (project in file(".")) .aggregate(library, testingTools) - .settings( - publish := {}, // Disable publishing for the root project - publishLocal := {} - ) +// .settings( +// publish := {}, // Disable publishing for the root project +// publishSigned := {}, +// publishLocal := {}, +// publishLocalSigned := {}, +// ) val CICommands = Seq("clean", "compile", "test", "scalafmtCheckAll", "scalafmtSbtCheck", "scalafixAll --check").mkString(";") diff --git a/project/plugins.sbt b/project/plugins.sbt index f9e4b4e..50cbc7c 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -3,3 +3,4 @@ logLevel := Level.Warn // Code quality addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") From eb89c283a9f081225a262ed3d838e28211345b7e Mon Sep 17 00:00:00 2001 From: Casper Cromjongh Date: Thu, 16 May 2024 15:17:25 +0200 Subject: [PATCH 2/3] Fix local signed publishing. --- build.sbt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/build.sbt b/build.sbt index c12747b..4f4831c 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,3 @@ -import com.jsuereth.sbtpgp.PgpKeys.{publishLocalSigned, publishSigned} - val chiselVersion = "6.3.0" ThisBuild / scalaVersion := "2.13.12" @@ -21,6 +19,8 @@ ThisBuild / developers := List( ThisBuild / publishMavenStyle := true //ThisBuild / pomIncludeRepository := { _ => false } ThisBuild / versionScheme := Some("early-semver") +ThisBuild / resolvers += Resolver.mavenLocal +ThisBuild / publishTo := Some(Resolver.mavenLocal) lazy val commonSettings = Seq( homepage := Some(url("https://github.com/abs-tudelft/tydi-chisel")), @@ -56,12 +56,7 @@ lazy val testingTools: Project = (project in file("testing")) // Aggregate projects to build them together lazy val root = (project in file(".")) .aggregate(library, testingTools) -// .settings( -// publish := {}, // Disable publishing for the root project -// publishSigned := {}, -// publishLocal := {}, -// publishLocalSigned := {}, -// ) + .settings(publish / skip := true) val CICommands = Seq("clean", "compile", "test", "scalafmtCheckAll", "scalafmtSbtCheck", "scalafixAll --check").mkString(";") From b3dfece775fb93b8a6b38b436db93758e00f414d Mon Sep 17 00:00:00 2001 From: Casper Cromjongh Date: Thu, 16 May 2024 15:17:53 +0200 Subject: [PATCH 3/3] Set up GitHub Packages publishing. --- build.sbt | 10 ++++++---- project/plugins.sbt | 7 ++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/build.sbt b/build.sbt index 4f4831c..1627eb9 100644 --- a/build.sbt +++ b/build.sbt @@ -16,11 +16,13 @@ ThisBuild / developers := List( ) ) -ThisBuild / publishMavenStyle := true -//ThisBuild / pomIncludeRepository := { _ => false } -ThisBuild / versionScheme := Some("early-semver") +ThisBuild / publishMavenStyle := true +ThisBuild / pomIncludeRepository := { _ => false } +ThisBuild / versionScheme := Some("early-semver") ThisBuild / resolvers += Resolver.mavenLocal -ThisBuild / publishTo := Some(Resolver.mavenLocal) +ThisBuild / githubOwner := "abs-tudelft" +ThisBuild / githubRepository := "Tydi-Chisel" +ThisBuild / publishTo := githubPublishTo.value lazy val commonSettings = Seq( homepage := Some(url("https://github.com/abs-tudelft/tydi-chisel")), diff --git a/project/plugins.sbt b/project/plugins.sbt index 50cbc7c..c3a942c 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,7 @@ logLevel := Level.Warn // Code quality -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") -addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") -addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2") +addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1") +addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") +addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")