O'Reilly logo

Building Applications with Scala by Diego Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrating JasperReports with Play framework

We will need to create a new folder under ReactiveWebStore/app called reports. Then, we will copy all three new .jrxml files from the Jaspersoft Studio to this folder and set up the build dependencies.

build.sbt

First of all, we will need to add new dependencies to the build.sbt file.

Your build.sbt file should look like this after adding the Jasper dependencies:

 libraryDependencies ++= Seq( // .... Other dependencies .... "net.sf.jasperreports" % "jasperreports" % "6.2.2" withSources() ,"net.sf.jasperreports" % "jasperreports-functions" % "6.2.2", "net.sf.jasperreports" % "jasperreports-chart-themes" % "6.2.2" ) resolvers += "Jasper" at "https://jaspersoft.artifactoryonline.com/jaspersoft/repo/" resolvers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required