treehugger.scala 

treehugger.scala is a library to write Scala source code programmatically. It’s also an implementation of Scala abstract syntax tree based on Reflection API.

Setup 

libraryDependencies += "com.eed3si9n" %% "treehugger" % "0.3.0"

resolvers += Resolver.sonatypeRepo("public")