From 4fb3bcdfb6e2f606acc032330eda001a9c364104 Mon Sep 17 00:00:00 2001 From: Vladimir Samoylov Date: Wed, 15 Jul 2020 11:36:30 +0300 Subject: [PATCH] Provide info about using with pants build tool Spent a couple of hours trying to figure out --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 87c1da4..68fcaaa 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,24 @@ The plugin is available on Maven Central. ```sbt addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1") ``` +To add into pants project + +Add into your root `BUILD` file + +```ini +jar_library(name='scalac-plugin-dep', + jars=[ + scala_jar(org='com.olegpy', name='better-monadic-for', rev='0.3.1') + ]) +``` + +Add to your `pants.ini` + +```ini +[scala] +scalac_plugins: ['bm4'] +``` + Supports Scala 2.11, 2.12, and 2.13.1