{"id":15664734,"url":"https://github.com/davidgregory084/mill-tpolecat","last_synced_at":"2025-04-28T15:53:14.936Z","repository":{"id":44196185,"uuid":"169403978","full_name":"DavidGregory084/mill-tpolecat","owner":"DavidGregory084","description":"scalac options for the enlightened","archived":false,"fork":false,"pushed_at":"2024-08-21T14:28:32.000Z","size":80,"stargazers_count":17,"open_issues_count":8,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-28T15:53:06.738Z","etag":null,"topics":["mill-module","mill-plugin"],"latest_commit_sha":null,"homepage":null,"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/DavidGregory084.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":"2019-02-06T12:40:18.000Z","updated_at":"2024-04-23T13:03:54.000Z","dependencies_parsed_at":"2024-10-23T08:57:16.243Z","dependency_job_id":"1ee4905e-e42a-4d57-b0d4-512cca5460fb","html_url":"https://github.com/DavidGregory084/mill-tpolecat","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGregory084%2Fmill-tpolecat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGregory084%2Fmill-tpolecat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGregory084%2Fmill-tpolecat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidGregory084%2Fmill-tpolecat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidGregory084","download_url":"https://codeload.github.com/DavidGregory084/mill-tpolecat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342718,"owners_count":21574243,"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":["mill-module","mill-plugin"],"created_at":"2024-10-03T13:43:59.949Z","updated_at":"2025-04-28T15:53:14.915Z","avatar_url":"https://github.com/DavidGregory084.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mill-tpolecat\n\n[![CI](https://github.com/DavidGregory084/mill-tpolecat/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/DavidGregory084/mill-tpolecat/actions/workflows/ci.yml)\n[![License](https://img.shields.io/github/license/DavidGregory084/mill-tpolecat.svg)](https://opensource.org/licenses/Apache-2.0)\n![Maven Central](https://img.shields.io/maven-central/v/io.github.davidgregory084/mill-tpolecat_mill0.10_2.13)\n\n### scalac options for the enlightened\n\nmill-tpolecat is an extension for the [Mill build tool](https://github.com/lihaoyi/mill/) for automagically configuring scalac options according to the project Scala version, inspired by Rob Norris ([@tpolecat](https://github.com/tpolecat))'s excellent series of blog posts providing [recommended options](https://tpolecat.github.io/2017/04/25/scalac-flags.html) to get the most out of the compiler.\n\nIt has been tested with versions 0.10.x and 0.9.x of mill.\n\n### Usage\n\nImport the module in `build.sc` using mill's `$ivy` import syntax, and extend `TpolecatModule` in your build definition:\n\n```scala\n// build.sc\n\nimport $ivy.`io.github.davidgregory084::mill-tpolecat::0.3.2`\n\nimport io.github.davidgregory084.TpolecatModule\n\nobject core extends TpolecatModule {\n  def scalaVersion = \"2.13.7\"\n}\n```\n\nDon't forget to apply the mill platform suffix to your import according to the mill version that you are using.\n\nIf necessary you can filter out scalac options that are not appropriate for your project:\n\n```scala\n// build.sc\n\nimport $ivy.`io.github.davidgregory084::mill-tpolecat_mill0.10:0.3.2`\n\nimport io.github.davidgregory084.TpolecatModule\n\nobject core extends TpolecatModule {\n  def scalaVersion = \"2.13.7\"\n  def scalacOptions = T { super.scalacOptions().filterNot(Set(\"-Yno-imports\")) }\n}\n```\n\n### Caveat\n\nI can't promise this plugin will work for old minor releases of Scala. It has been tested with:\n\n* 2.13.7\n* 2.12.11\n* 2.11.12\n\n### License\n\nAll code in this repository is licensed under the Apache License, Version 2.0.  See [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgregory084%2Fmill-tpolecat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidgregory084%2Fmill-tpolecat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidgregory084%2Fmill-tpolecat/lists"}