{"id":20768159,"url":"https://github.com/softwaremill/sbt-softwaremill","last_synced_at":"2025-04-30T11:25:37.309Z","repository":{"id":28910824,"uuid":"119174340","full_name":"softwaremill/sbt-softwaremill","owner":"softwaremill","description":"A sane set of default build settings","archived":false,"fork":false,"pushed_at":"2025-04-18T07:41:13.000Z","size":598,"stargazers_count":73,"open_issues_count":2,"forks_count":11,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-04-18T21:10:39.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softwaremill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-27T15:05:29.000Z","updated_at":"2025-04-18T07:41:14.000Z","dependencies_parsed_at":"2024-01-01T01:26:14.700Z","dependency_job_id":"335fea73-d1e4-449c-a242-ad2328797a06","html_url":"https://github.com/softwaremill/sbt-softwaremill","commit_stats":null,"previous_names":[],"tags_count":93,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaremill%2Fsbt-softwaremill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaremill%2Fsbt-softwaremill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaremill%2Fsbt-softwaremill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softwaremill%2Fsbt-softwaremill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softwaremill","download_url":"https://codeload.github.com/softwaremill/sbt-softwaremill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251689687,"owners_count":21627960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T11:36:07.387Z","updated_at":"2025-04-30T11:25:37.082Z","avatar_url":"https://github.com/softwaremill.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-softwaremill\n\n[![Build Status](https://travis-ci.org/softwaremill/sbt-softwaremill.svg?branch=master)](https://travis-ci.org/softwaremill/sbt-softwaremill)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.softwaremill.sbt-softwaremill/sbt-softwaremill-common/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.softwaremill.sbt-softwaremill/sbt-softwaremill-common)  \n\nA sane set of common build settings.\n\n## Usage\n\nFor each project where you'd like to use the build settings, add some or all of the following your `project/plugins.sbt`\nfile:\n\n````scala\naddSbtPlugin(\"com.softwaremill.sbt-softwaremill\" % \"sbt-softwaremill-common\" % \"2.0.25\")\naddSbtPlugin(\"com.softwaremill.sbt-softwaremill\" % \"sbt-softwaremill-publish\" % \"2.0.25\")\naddSbtPlugin(\"com.softwaremill.sbt-softwaremill\" % \"sbt-softwaremill-extra\" % \"2.0.25\")\naddSbtPlugin(\"com.softwaremill.sbt-softwaremill\" % \"sbt-softwaremill-browser-test-js\" % \"2.0.25\")\n````\n\nNow you can add the appropriate settings in your `build.sbt`, e.g.:\n\n````scala\nimport com.softwaremill.SbtSoftwareMillCommon.commonSmlBuildSettings\n\nlazy val commonSettings = commonSmlBuildSettings ++ Seq(\n  // your settings, which can override some of commonSmlBuildSettings\n) \n````\n\nEach dependency provides a choice of settings:\n\n````scala\n// common - compiler flags\nimport com.softwaremill.SbtSoftwareMillCommon.commonSmlBuildSettings\ncommonSmlBuildSettings\n\n// publish\nimport com.softwaremill.Publish.ossPublishSettings\nossPublishSettings\n\n// extra - use all or choose\nlazy val extraSmlBuildSettings =\n  dependencyUpdatesSettings ++  // check dependency updates on startup (max once per 12h)\n  dependencyCheckSettings\n\n// downloads the appropriate chrome/gecko driver for testing scala.js using scalajs-env-selenium and sets the jsenv\nimport com.softwaremill.SbtSoftwareMillBrowserTestJS.{browserChromeTestSettings, browserGeckoTestSettings}\nbrowserChromeTestSettings\nbrowserGeckoTestSettings \n````\n\n`sbt-softwaremill-common` comes with:\n- [sbt-scalafmt](https://scalameta.org/scalafmt/docs/installation.html)\n- [sbt-tpolecat](https://github.com/DavidGregory084/sbt-tpolecat)\n\n`sbt-softwaremill-publish` comes with:\n- [sbt-ci-release](https://github.com/olafurpg/sbt-ci-release)\n\n`sbt-softwaremill-extra` comes with:\n- [sbt-updates](https://github.com/rtimush/sbt-updates)\n- [sbt-dependency-check](https://github.com/albuch/sbt-dependency-check)\n\n## Sonatype setup\n\nBy default, the plugins use the new `s01.oss.sonatype.org` host for releasing to Sonatype. If your project isn't yet\n[migrated](https://central.sonatype.org/news/20210223_new-users-on-s01/), you'll need to add the following to your\nroot project settings:\n\n```scala\nsonatypeCredentialHost := \"oss.sonatype.org\"\n```\n\n## Releasing your library\n\n`sbt-softwaremill-publish` exposes a default configuration suitable for releasing open source libraries.\nThe release process is broken into two steps:\n\n1. *local*: `sbt release`. This sbt command prepares the next release: asks about the version, updates the version\n   in the docs \u0026 readme, commits the changes and finally asks the user to push the changes. Your `README.md`, \n   `docs` and `doc` directory will be parsed for `\"[organization]\" %(%) \"artifactId\" % \"someVersion\"` and that \n   version value will be bumped.\n2. *remote*: `sbt ci-release`. This sbt command should be run on GH actions, triggered when a new tag is pushed. It\n   publishes the artifacts to sonatype, and invokes repository release.\n   \nTo setup the remote part, follow the guide on [sbt-ci-release](https://github.com/olafurpg/sbt-ci-release). You can\nalso take a look at this project's `.github/workflows/ci.yml`.\n\nYou might need to explicitly set the sonatype profile name:\n\n```scala\nval commonSettings = ossPublishSettings ++ Seq(\n  sonatypeProfileName := \"com.example\"\n)\n```\n\n## Releasing sbt-softwaremill\n\nsbt-softwaremill release process is setup on GH Actions. This plugin uses itself to publish binaries to oss-sonatype.\n\n## Note for migrating from sbt-softwaremill 1.x series\n\nYou should remove `version.sbt` file as it's no longer used, and it may disrupt the release process. In the 2.x series the version is deduced from git tags and the current state using [https://github.com/dwijnand/sbt-dynver](https://github.com/dwijnand/sbt-dynver).\n\nMoreover, a number of bundled plugins are removed, which aren't available for Scala3 and would cause build problems\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaremill%2Fsbt-softwaremill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftwaremill%2Fsbt-softwaremill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftwaremill%2Fsbt-softwaremill/lists"}