Coder Social home page Coder Social logo

sbt-tpolecat's Introduction

sbt-tpolecat

Build Status License

scalac options for the enlightened

sbt-tpolecat is an SBT plugin for automagically configuring scalac options according to the project Scala version, inspired by Rob Norris (@tpolecat)'s excellent series of blog posts providing recommended options to get the most out of the compiler.

It also enables the excellent sbt-partial-unification plugin for those Scala versions where it is needed.

As of version 0.1.11, it also supports setting options for Dotty.

Usage

Add the following to your project's project/plugins.sbt:

addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")

If necessary you can filter out scalac options that are unhelpful in the REPL from user-defined tasks or scopes.

By default the plugin only applies this filtering to the console task in the Compile and Test configurations.

scalacOptions.in(Tut) ~= filterConsoleScalacOptions

Caveat

I can't promise this plugin will work for old minor releases of Scala. It has been tested with:

  • 2.13.6
  • 2.13.5
  • 2.13.4
  • 2.13.3
  • 2.12.12
  • 2.11.12
  • 2.10.7

and Dotty versions:

  • 3.0.0
  • 3.0.0-RC3

License

All code in this repository is licensed under the Apache License, Version 2.0. See LICENSE.

sbt-tpolecat's People

Contributors

calvinlfer avatar christopherdavenport avatar daddykotex avatar davidgregory084 avatar jatcwang avatar kubukoz avatar mrdziuban avatar rdesgroppes avatar rossabaker avatar sethtisue avatar wlk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.