aboutsummaryrefslogtreecommitdiff
path: root/README.md
Commit message (Collapse)AuthorAgeFilesLines
* Add workspace pluginJakob Odersky2018-08-171-7/+20
|
* Rename plugins to include a -Plugin suffixJakob Odersky2018-08-021-18/+11
|
* Refactor settings to use autoplugins (#4)Jakob Odersky2018-06-291-41/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Overview and motivation** This consolidates settings that were previously implemented as functions and/or implicit conversions into a suite of sbt autoplugins. The rationale is that this is well-defined pattern by sbt and allows easy build introspection with standard sbt functionality (for example, `sbt plugins` will list all active plugins in a build). Furthermore, it makes it very easy to disable certain features when required, such as removing linting during development. **Migration from current version** All features from the previous version should still be provided by the changes proposed here. The migration path is quite straight-forward: - Replace `project.driverService(name)` with `project.enablePlugins(Service)` (same goes for libraries) and make sure the project's name corresponds to the service's name - Linting, which was previously enabled by adding `lintingSettings` and `formatSettings` to a project, is automatically enabled. It may be removed by disabling the plugin: `project.dsiablePlugin(Linting)` All tasks and settings provided by sbt-settings should remain the same. **Additional features** An additional feature is that versioning is now handled the same way between libraries and services; that is, the version is derived from the latest git tag. Since services may be deployed from the same tag mutliple times, it is required that versions can be explicitly set to include additional information, such as a build number from a CI system. This was previously done interactively, using sbt's `set` command: ``` export TAG="$(sbt -no-colors version | tail -1 | awk '{ print $2 }').$TRAVIS_BUILD_NUMBER" sbt "set version := \"$TAG\"" docker:publishLocal ``` While this approach works, it has the downsides of requiring mutliple sbt invocations. The changes proposed in this PR will read the version from a VERSION environment variable first, defaulting to git if unavailable. Therefore, the additional sbt invocation can be removed with a CI script similar to the following: ``` export VERSION="$(git describe).$TRAVIS_BUILD_NUMBER"" sbt docker:publishLocal // use version in other steps ``` Using an autoplugin-based approach may also make it easier to cross-compile projects to ScalaJS and Native in the future, as support for them is built into sbt-crossproject.
* Add version badgeJakob Odersky2018-05-031-1/+2
|
* Add developing instructionsJakob Odersky2018-05-031-0/+5
|
* Update travis badgeJakob Odersky2018-05-031-1/+1
|
* Update readmeJakob Odersky2018-04-241-27/+10
|
* Update README.mdVlad Uspensky2017-10-131-3/+3
|
* Add a doc on how to enable acyclic dependency checking in your projectJohn St John2017-08-081-1/+6
|
* Merge remote-tracking branch 'origin/master'vlad2017-05-091-1/+1
|\ | | | | | | | | # Conflicts: # README.md
| * Upgrade scala to latest patch levelJakob Odersky2017-05-091-2/+2
| |
* | README updatevlad2017-05-091-108/+23
|/
* Fixing scalafmt config format + removing test-all keyvlad2016-10-211-1/+1
|
* Updated README.mdvlad2016-09-191-9/+14
|
* Travis CI build statusvlad2016-09-151-1/+1
|
* Practical scala style and finalization of the plugin version 0.5.0vlad2016-08-181-1/+4
|
* Updated README.md filevlad2016-08-171-3/+8
|
* Generation of all the necessary code style resourcesvlad2016-08-171-0/+6
|
* Separated settings for publication and dependenciesvlad2016-08-101-0/+4
|
* Publish Maven style = true for successful plugin resolution + Version 0.3.0 ↵vlad2016-08-091-1/+2
| | | | release
* Version 0.2.0 releasevlad2016-08-091-1/+1
|
* Readme updated for initial plugin usage simplificationvlad2016-08-091-4/+4
|
* Minor readme changevlad2016-08-081-1/+3
|
* Sbt plugin with common sbt configurationsvlad2016-08-081-0/+130