A library that toggles Scala code at compile-time, like #if in C/C++

enableif 1.0.1


Group ID:
com.thoughtworks.enableIf
Artifact ID:
enableif_2.11
Version:
1.0.1
Release Date:
Apr 21, 2016
Licenses:

libraryDependencies += "com.thoughtworks.enableIf" %% "enableif" % "1.0.1"
resolvers += Resolver.bintrayJCenter

Mill build tool

ivy"com.thoughtworks.enableIf::enableif:1.0.1"
MavenRepository("https://jcenter.bintray.com")

Scala CLI

//> using lib com.thoughtworks.enableIf::enableif:1.0.1

Ammonite REPL

import $ivy.`com.thoughtworks.enableIf::enableif:1.0.1`
import ammonite._, Resolvers._
val res = Resolver.Http(
  "Bintray's JCenter",
  "Some(https://jcenter.bintray.com)",
  IvyPattern,
  false)
interp.resolvers() = interp.resolvers() :+ res

<dependency>
  <groupId>com.thoughtworks.enableIf</groupId>
  <artifactId>enableif_2.11</artifactId>
  <version>1.0.1</version>
</dependency>

compile group: 'com.thoughtworks.enableIf', name: 'enableif_2.11', version: '1.0.1'