All Projects → sbt → Sbt Fresh

sbt / Sbt Fresh

Licence: apache-2.0
sbt-plugin to create an opinionated fresh sbt project

Programming Languages

scala
5932 projects

Projects that are alternatives of or similar to Sbt Fresh

Gatling Sbt Plugin Demo
Showcase of the Gatling Plugin for SBT
Stars: ✭ 137 (-40.17%)
Mutual labels:  sbt, sbt-plugin
Sbt Docker Compose
Integrates Docker Compose functionality into sbt
Stars: ✭ 168 (-26.64%)
Mutual labels:  sbt, sbt-plugin
Flyway Sbt
Flyway SBT plugin
Stars: ✭ 101 (-55.9%)
Mutual labels:  sbt, sbt-plugin
Sbt Crossproject
Cross-platform compilation support for sbt.
Stars: ✭ 176 (-23.14%)
Mutual labels:  sbt, sbt-plugin
Sbt Jacoco
JaCoCo Code Coverage plug-in for sbt.
Stars: ✭ 115 (-49.78%)
Mutual labels:  sbt, sbt-plugin
Sbt Frege
Frege support for sbt
Stars: ✭ 51 (-77.73%)
Mutual labels:  sbt, sbt-plugin
Sbt Tpolecat
scalac options for the enlightened
Stars: ✭ 227 (-0.87%)
Mutual labels:  sbt, sbt-plugin
Sbt Docker
Create Docker images directly from sbt
Stars: ✭ 689 (+200.87%)
Mutual labels:  sbt, sbt-plugin
Sbt Unidoc
sbt plugin to create a unified API document across projects
Stars: ✭ 113 (-50.66%)
Mutual labels:  sbt, sbt-plugin
Sbt S3 Resolver
☁️Amazon S3-based resolver for sbt
Stars: ✭ 112 (-51.09%)
Mutual labels:  sbt, sbt-plugin
Sbt Multi Jvm
Multi-JVM testing in sbt
Stars: ✭ 50 (-78.17%)
Mutual labels:  sbt, sbt-plugin
Sbt Protobuf
sbt plugin for compiling protobuf files
Stars: ✭ 163 (-28.82%)
Mutual labels:  sbt, sbt-plugin
Sbt Play Gulp
Gulp asset pipeline for Play Framework
Stars: ✭ 38 (-83.41%)
Mutual labels:  sbt, sbt-plugin
Sbt Dependency Graph
sbt plugin to create a dependency graph for your project
Stars: ✭ 1,223 (+434.06%)
Mutual labels:  sbt, sbt-plugin
Sbt Ignore Play Generated
Configure linters and coverage tools to ignore Play's generated source files.
Stars: ✭ 10 (-95.63%)
Mutual labels:  sbt, sbt-plugin
Sbt Prompt
An SBT plugin for making your SBT prompt more awesome
Stars: ✭ 107 (-53.28%)
Mutual labels:  sbt, sbt-plugin
Sbt Release
A release plugin for sbt
Stars: ✭ 582 (+154.15%)
Mutual labels:  sbt, sbt-plugin
Sbt Updates
sbt plugin that can check Maven and Ivy repositories for dependency updates
Stars: ✭ 653 (+185.15%)
Mutual labels:  sbt, sbt-plugin
Sbt Native Packager
sbt Native Packager
Stars: ✭ 1,480 (+546.29%)
Mutual labels:  sbt, sbt-plugin
Stryker4s
Mutation testing for Scala. Work in progress...
Stars: ✭ 118 (-48.47%)
Mutual labels:  sbt, sbt-plugin

sbt-fresh

sbt-fresh is a plugin for sbt to scaffold an opinionated fresh sbt project: it creates an sbt build according to established best practices, creates a useful package object for the root package, initializes a Git repository, creates an initial commit, etc.

Notice: The build definition created by sbt-fresh is incompatible with the -Yno-adapted-args scalac option.

Requirements: sbt 1.0 or higher

Add sbt-fresh to your global plugins definition, which most probably resides under ~/.sbt/1.0/plugins/plugins.sbt:

addSbtPlugin("de.heikoseeberger" % "sbt-fresh" % "<latest-version>")

You can define the following settings in your global build definition, which most probably sits at ~/.sbt/1.0/build.sbt:

import de.heikoseeberger.sbtfresh.license.License // Only needed for `freshLicense` setting

freshOrganization     := "doe.john"        // Organization – "default" by default
freshAuthor           := "John Doe"        // Author – value of "user.name" system property or "default" by default
freshLicense          := Some(License.mit) // Optional license – `apache20` by default
freshSetUpGit         := false             // Initialize a Git repo and create an initial commit – `true` by default
freshSetUpTravis      := true              // Configure Travis for Continuous Integration - `false` by default
freshSetUpWartremover := true              // Include the sbt wartremover (http://www.wartremover.org) plugin - `false` by default

Other settings which probably shouldn't be set globally:

freshName := ??? // Name – name of build directory by default; doesn't make much sense as a permanent setting

In order to scaffold a fresh sbt project, just start sbt in an empty directory. Then call the fresh command, optionally passing one or more of the following arguments (hit tab for auto completion) which override the respective settings:

  • organization
  • name
  • author
  • license
  • setUpGit
  • setUpTravis
  • setUpWartremover

Example:

sbt> fresh license=bsd3 setUpGit=false setUpTravis=false

The following values are available for the license argument:

  • apache20
  • agpl3
  • bsd2
  • bsd3
  • gpl3
  • lgpl3
  • mit

Layout

sbt-fresh creates a project with the following layout:

+ .gitignore
+ .scalafmt.conf
+ build.sbt                      // build settings
+ LICENSE                        // license file (Apache by default)
+ NOTICE
+ project
--+ build.properties             // sbt version
--+ plugins.sbt                  // sbt-git, sbt-header, sbt-scalafmt
+ README.md
+ src
--+ main
----+ scala
------+ package.scala            // type aliases repointing `Seq` and friends to immutable

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache 2.0 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].