I guess you could do it like in https://github.com/scalamacros/paradise/blob/f1c286086ca0091df3517ca71b51b812dec387d2/project/build.scala#L179