Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reduce per-project config: remove per-repo need to declare sbt-sonatype #16

Open
rtyley opened this issue Dec 24, 2023 · 0 comments
Open

Comments

@rtyley
Copy link
Member

rtyley commented Dec 24, 2023

Currently each project that uses gha-scala-library-release-workflow needs to declare sbt-sonatype:

* [`sbt-sonatype`](https://github.com/xerial/sbt-sonatype) - you currently need to have this in your project's
`plugins.sbt`, as the [`🎊 Create artifacts`](https://github.com/guardian/gha-scala-library-release-workflow/blob/7d278d4d44e30b4b4c0f6791053bdeb40b8159cb/.github/workflows/reusable-release.yml#L141-L158)
job expects it, but in the future, the workflow will probably supply this automatically.

https://www.scala-sbt.org/1.x/docs/Using-Plugins.html#Global+plugins

Plugins can be installed for all your projects at once by declaring them in $HOME/.sbt/1.0/plugins/. $HOME/.sbt/1.0/plugins/ is an sbt project whose classpath is exported to all sbt build definition projects. Roughly speaking, any .sbt or .scala files in $HOME/.sbt/1.0/plugins/ behave as if they were in the project/ directory for all projects.

You can create $HOME/.sbt/1.0/plugins/build.sbt and put addSbtPlugin() expressions in there to add plugins to all your projects at once.

--sbt-dir   <path>  path to global settings/plugins directory (default: ~/.sbt)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant