thoughtworksinc / enableif.scala   1.2.0

Apache License 2.0 GitHub

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

Scala versions: 2.13 2.12 2.11 2.10

enableif 1.1.0


Group ID:
com.thoughtworks.enableIf
Artifact ID:
enableif_2.10
Version:
1.1.0
Release Date:
Jul 9, 2016
Licenses:

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

Mill build tool

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

Scala CLI

//> using dep "com.thoughtworks.enableIf::enableif:1.1.0"

Ammonite REPL

import $ivy.`com.thoughtworks.enableIf::enableif:1.1.0`
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.10</artifactId>
  <version>1.1.0</version>
</dependency>

compile group: 'com.thoughtworks.enableIf', name: 'enableif_2.10', version: '1.1.0'