Skip to content

Commit 174f2c7

Browse files
committed
Publish to GitHub packages.
1 parent 85e395e commit 174f2c7

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ GitHub release:
3030
![GitHub Release](https://img.shields.io/github/v/release/mblink/find-unused)
3131

3232
```scala
33-
resolvers += "bondlink-maven-repo" at "https://raw.githubusercontent.com/mblink/maven-repo/main"
33+
resolvers += "GitHub Packages (find-unused)" at "https://maven.pkg.github.com/mblink/find-unused"
3434
addSbtPlugin("bondlink" % "find-unused" % "x.y.z")
3535
```
3636

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ lazy val commonSettings = Seq(
116116
)
117117

118118
commonSettings
119-
gitRelease := {}
120119

121120
lazy val publishSettings = Seq(
122121
publish / skip := false,
123-
gitPublishDir := file("/src/maven-repo"),
122+
publishTo := Some("GitHub Package Registry".at("https://maven.pkg.github.com/mblink/find-unused")),
124123
)
125124

126125
lazy val core = project.in(file("core"))

plugin/src/main/scala/bl/unused/FindUnusedPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ object FindUnusedPlugin extends AutoPlugin with FindUnusedPluginCompat {
154154
val dep = Dependency(Module(Organization("bondlink"), ModuleName("find-unused-cli_3"), Map.empty), BuildInfo.version)
155155
val repos = Seq(
156156
Repositories.central,
157-
MavenRepository("https://raw.githubusercontent.com/mblink/maven-repo/main"),
157+
MavenRepository("https://maven.pkg.github.com/mblink/find-unused"),
158158
)
159159
runLogged(log, () => Fetch().withRepositories(repos).addDependencies(dep).run())
160160
}

project/plugins.sbt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")
33
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.0")
44
addSbtPlugin("com.github.sbt" % "sbt-github-actions" % "0.25.0")
55
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
6-
7-
resolvers += "bondlink-maven-repo" at "https://raw.githubusercontent.com/mblink/maven-repo/main"
8-
addSbtPlugin("bondlink" % "sbt-git-publish" % "0.0.5")

0 commit comments

Comments
 (0)