From 6359226f5df032c35ad7d78b8e6ae87c203fe741 Mon Sep 17 00:00:00 2001 From: Sam Escolas Date: Tue, 29 Apr 2025 12:20:56 -0600 Subject: [PATCH 1/2] Publish to GitHub packages. --- README.md | 2 +- build.sbt | 3 +-- project/plugins.sbt | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2de60e8..06a84ad 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ interpolation, and calls to `mkString` on iterables of that type. Add the resolver and compiler plugin dependency to your `build.sbt`: ```scala -resolvers += "bondlink-maven-repo" at "https://raw.githubusercontent.com/mblink/maven-repo/main" +resolvers += "bondlink-maven-repo" at "GitHub Packages (disable-toString)" at "https://maven.pkg.github.com/mblink/disable-toString" addCompilerPlugin("bondlink" %% "disable-to-string-plugin" % "0.2.2") ``` diff --git a/build.sbt b/build.sbt index 2c50ee1..50327c3 100644 --- a/build.sbt +++ b/build.sbt @@ -28,7 +28,7 @@ val baseSettings = Seq( scalaVersion := scalaVersions.find(_.startsWith("3.")).get, organization := "bondlink", version := "0.2.2", - gitPublishDir := file("/src/maven-repo"), + publishTo := Some("GitHub Package Registry".at("https://maven.pkg.github.com/mblink/disable-toString")), ) lazy val disableToStringPlugin = project.in(file(".")) @@ -44,7 +44,6 @@ lazy val disableToStringPlugin = project.in(file(".")) val testSettingsNoSrc = baseSettings ++ Seq( publish := {}, publishLocal := {}, - gitRelease := {}, scalacOptions ++= { val jar = (disableToStringPlugin / Compile / Keys.`package`).value Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index 25b7f6f..3e5f6d9 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,2 @@ addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.24.0") addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2") - -resolvers += "bondlink-maven-repo" at "https://raw.githubusercontent.com/mblink/maven-repo/main" -addSbtPlugin("bondlink" % "sbt-git-publish" % "0.0.5") From e427798c6130e6ed04f421a66a459f19c065d1af Mon Sep 17 00:00:00 2001 From: Sam Escolas Date: Tue, 29 Apr 2025 12:23:41 -0600 Subject: [PATCH 2/2] Fix README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 06a84ad..38c43ba 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ interpolation, and calls to `mkString` on iterables of that type. Add the resolver and compiler plugin dependency to your `build.sbt`: ```scala -resolvers += "bondlink-maven-repo" at "GitHub Packages (disable-toString)" at "https://maven.pkg.github.com/mblink/disable-toString" +resolvers += "GitHub Packages (disable-toString)" at "https://maven.pkg.github.com/mblink/disable-toString" addCompilerPlugin("bondlink" %% "disable-to-string-plugin" % "0.2.2") ```