# How to add a 3rd party library dependency?

  1. Add the library dependency to custom.sbt

    For example to add a dependency on Scala POI Wrapper for the spreadsheet generation in Excel in the lottery project:

    • open lottery/custom.sbt file

    • add the below line:

    libraryDependencies in ThisBuild += "com.norbitltd" %% "spoiwo" % "1.3.2"
    
  2. Inside sbt shell, run command reload

    [Lottery] $ reload