gmazelier / gradle-jasperreports

Provides the capability to compile JasperReports design files.
https://plugins.gradle.org/plugin/com.github.gmazelier.jasperreports
Apache License 2.0
25 stars 19 forks source link

Plugin not correctly finding source/out directory for multi-project build #16

Open roderickmcdonald opened 4 years ago

roderickmcdonald commented 4 years ago

This is the work-around so that I could make my project work. Note that I had to be explicit with the build directory.

jasperreports {
  val packageDir = "org/naic/spl/gateway/reports"
  val myBuildDir = project(":gateway-jasper-reports").buildDir
  srcDir = file("$projectDir/src/main/jasperreports/$packageDir")
  tmpDir = file("$myBuildDir/jasperreports")
  outDir = file("$myBuildDir/classes/java/main/$packageDir")
  srcExt = ".jrxml"
  outExt = ".jasper"
  compiler = "net.sf.jasperreports.engine.design.JRJdtCompiler"
  keepJava = false
  validateXml = true
  verbose = false
  useRelativeOutDir = true
  classpath = files
}