mill-tpolecat_2.13

scalac options for the enlightened

License

License

GroupId

GroupId

io.github.davidgregory084
ArtifactId

ArtifactId

mill-tpolecat_2.13
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

mill-tpolecat_2.13
scalac options for the enlightened
Project URL

Project URL

https://github.com/DavidGregory084/mill-tpolecat
Source Code Management

Source Code Management

https://github.com/DavidGregory084/mill-tpolecat

Download mill-tpolecat_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.davidgregory084/mill-tpolecat_2.13/ -->
<dependency>
    <groupId>io.github.davidgregory084</groupId>
    <artifactId>mill-tpolecat_2.13</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.davidgregory084/mill-tpolecat_2.13/
implementation 'io.github.davidgregory084:mill-tpolecat_2.13:0.2.0'
// https://jarcasting.com/artifacts/io.github.davidgregory084/mill-tpolecat_2.13/
implementation ("io.github.davidgregory084:mill-tpolecat_2.13:0.2.0")
'io.github.davidgregory084:mill-tpolecat_2.13:jar:0.2.0'
<dependency org="io.github.davidgregory084" name="mill-tpolecat_2.13" rev="0.2.0">
  <artifact name="mill-tpolecat_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.davidgregory084', module='mill-tpolecat_2.13', version='0.2.0')
)
libraryDependencies += "io.github.davidgregory084" % "mill-tpolecat_2.13" % "0.2.0"
[io.github.davidgregory084/mill-tpolecat_2.13 "0.2.0"]

Dependencies

provided (1)

Group / Artifact Type Version
com.lihaoyi : mill-scalalib_2.13 jar 0.9.3

Project Modules

There are no modules declared in this project.

mill-tpolecat

Build Status License Latest Version

scalac options for the enlightened

mill-tpolecat is an extension for the Mill build tool which configures your scalac options according to @tpolecat's recommendations where possible, according to the Scala version you are using.

This should help to ensure that you are getting the greatest possible benefit from the Scala compiler's many linting options.

It has been tested with version 0.9.3 of mill.

Usage

Import the module in build.sc using mill's $ivy import syntax, and extend TpolecatModule in your build definition:

// build.sc

import $ivy.`io.github.davidgregory084::mill-tpolecat:0.2.0`

import io.github.davidgregory084.TpolecatModule

object core extends TpolecatModule {
  def scalaVersion = "2.12.11"
}

If necessary you can filter out scalac options that are not appropriate for your project:

// build.sc

import $ivy.`io.github.davidgregory084::mill-tpolecat:0.2.0`

import io.github.davidgregory084.TpolecatModule

object core extends TpolecatModule {
  def scalaVersion = "2.12.11"
  def scalacOptions = T { super.scalacOptions().filterNot(Set("-Yno-imports")) }
}

Caveat

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

  • 2.13.2
  • 2.12.11
  • 2.11.12

License

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

Versions

Version
0.2.0
0.1.4
0.1.3