{"id":19249031,"url":"https://github.com/sbt/sbt-fresh","last_synced_at":"2025-04-06T16:12:46.827Z","repository":{"id":3967832,"uuid":"51398332","full_name":"sbt/sbt-fresh","owner":"sbt","description":"sbt-plugin to create an opinionated fresh sbt project","archived":false,"fork":false,"pushed_at":"2024-08-13T03:15:15.000Z","size":520,"stargazers_count":233,"open_issues_count":6,"forks_count":23,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-30T13:09:39.148Z","etag":null,"topics":["sbt","sbt-plugin","scala"],"latest_commit_sha":null,"homepage":"","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/sbt.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":"2016-02-09T20:44:03.000Z","updated_at":"2024-04-06T22:32:22.000Z","dependencies_parsed_at":"2024-11-09T18:12:22.561Z","dependency_job_id":"50de1eea-26aa-4971-8bd3-1e067299d6a1","html_url":"https://github.com/sbt/sbt-fresh","commit_stats":{"total_commits":538,"total_committers":18,"mean_commits":29.88888888888889,"dds":0.5966542750929368,"last_synced_commit":"1fe1a454d574faedcd211a3bc3c6eb5427950a4f"},"previous_names":[],"tags_count":264,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-fresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-fresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-fresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-fresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbt","download_url":"https://codeload.github.com/sbt/sbt-fresh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509235,"owners_count":20950232,"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":["sbt","sbt-plugin","scala"],"created_at":"2024-11-09T18:12:09.298Z","updated_at":"2025-04-06T16:12:46.810Z","avatar_url":"https://github.com/sbt.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-fresh #\n\n![Build](https://img.shields.io/github/workflow/status/sbt/sbt-fresh/Test)\n[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\nsbt-fresh is a plugin for sbt to scaffold an opinionated fresh sbt project: it\ncreates an sbt build according to established best practices, creates a useful\npackage object for the root package, initializes a Git repository, creates an\ninitial commit, etc.\n\nNotice: The build definition created by sbt-fresh is incompatible with the\n-Yno-adapted-args scalac option.\n\nRequirements: sbt 1.0 or higher\n\nAdd sbt-fresh to your global plugins definition, which most probably resides\nunder `~/.sbt/1.0/plugins/plugins.sbt`:\n\n``` scala\naddSbtPlugin(\"de.heikoseeberger\" % \"sbt-fresh\" % \"\u003clatest-version\u003e\")\n```\n\nYou can define the following settings in your global build definition, which\nmost probably sits at `~/.sbt/1.0/build.sbt`:\n\n``` scala\nimport de.heikoseeberger.sbtfresh.License  // Only needed for `freshLicense` setting\n\nfreshOrganization     := \"doe.john\"        // Organization – \"default\" by default\nfreshAuthor           := \"John Doe\"        // Author – value of \"user.name\" system property or \"default\" by default\nfreshLicense          := Some(License.mit) // Optional license – `apache20` by default\nfreshSetUpGit         := false             // Initialize a Git repo and create an initial commit – `true` by default\n```\n\nOther settings which probably shouldn't be set globally:\n\n``` scala\nfreshName := ??? // Name – name of build directory by default; doesn't make much sense as a permanent setting\n\n```\n\nIn order to scaffold a fresh sbt project, just start sbt in an empty directory.\nThen call the `fresh` command, optionally passing one or more of the following\narguments (hit tab for auto completion) which override the respective settings:\n\n- `organization`\n- `name`\n- `author`\n- `license`\n- `setUpGit`\n\nExample:\n\n```\nsbt\u003e fresh license=bsd3 setUpGit=false setUpTravis=false\n```\n\nThe following values are available for the license argument:\n- `apache20`\n- `agpl3`\n- `bsd2`\n- `bsd3`\n- `gpl3`\n- `lgpl3`\n- `mit`\n\n## Layout\n\nsbt-fresh creates a project with the following layout:\n\n```\n+ .gitignore\n+ .scalafmt.conf\n+ build.sbt                      // build settings\n+ LICENSE                        // license file (Apache by default)\n+ NOTICE\n+ project\n--+ build.properties             // sbt version\n--+ plugins.sbt                  // sbt-git, sbt-header, sbt-scalafmt\n+ README.md\n+ src\n--+ main\n----+ scala\n------+ package.scala            // type aliases repointing `Seq` and friends to immutable\n```\n\n## Contribution policy ##\n\nContributions via GitHub pull requests are gladly accepted from their original\nauthor. Along with any pull requests, please state that the contribution is your\noriginal work and that you license the work to the project under the project's\nopen source license. Whether or not you state this explicitly, by submitting any\ncopyrighted material via pull request, email, or other means you agree to\nlicense the material under the project's open source license and warrant that\nyou have the legal authority to do so.\n\n## License ##\n\nThis code is open source software licensed under the\n[Apache 2.0 License](\"http://www.apache.org/licenses/LICENSE-2.0.html\").\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-fresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbt%2Fsbt-fresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-fresh/lists"}