Setup
Figet4s requires at least Java 8 and supports Scala versions 2.13 and 2.12.
SBT
When using SBT, add the following line to your build file:
// Core library
libraryDependencies += "com.colofabrix.scala" %% "figlet4s-core" % "0.3.2"
If you want support for effects (see the section Using effects) you also need to include a second package:
// Effects extension package
libraryDependencies += "com.colofabrix.scala" %% "figlet4s-effects" % "0.3.2"
If you want to use Figlet4s in a pure Java project you can import the Java package:
// Note that this line uses only a single `%` between the group id and the artifact id.
libraryDependencies += "com.colofabrix.scala" % "figlet4s-java" % "0.3.2"
Ammonite
To play with Figlet4s on Ammonite, use the following import inside the
Ammonite REPL or add that same line inside Ammonite’s user file ~/.ammonite/predef.sc
:
import $ivy.`com.colofabrix.scala::figlet4s-core:0.3.2`
import $ivy.`com.colofabrix.scala::figlet4s-effects:0.3.2`
Maven for Java
If you’re using Maven you’re probably looking to use Figlet4s inside Java. This is what to use with maven:
<dependency>
<groupId>com.colofabrix.scala</groupId>
<artifactId>figlet4s-java</artifactId>
<version>0.3.2</version>
</dependency>