Fanish
09/26/2025, 8:51 AMtasks.register('compileJasperReports') {
dependsOn classes
doLast {
def jasperOut = jasperOutDir.get().asFile
jasperOut.mkdirs()
ant.taskdef(
name: 'jasper',
classname: 'net.sf.jasperreports.ant.JRAntCompileTask',
classpath: jasperCompileClasspath.asPath
)
ant.jasper(
destdir: jasperOut,
srcdir: jasperSrcDir,
includes: jasperIncludes
) {
classpath {
pathelement(path: mainOutputClassesDirs.asPath)
pathelement(path: mainOutputResourcesDir)
pathelement(path: compileClasspath.asPath)
pathelement(path: jasperCompileClasspath.asPath)
}
}
}
}
but the build is failing with
14:08:04 FAILURE: Build failed with an exception.
14:08:04
14:08:04 * What went wrong:
14:08:04 Java heap space
I have added this in gradle.properties
org.gradle.jvmargs=-Xmx12g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError
What is cousing this issue?TheGoesen
09/26/2025, 9:02 AM-Xmx12gFanish
09/26/2025, 12:32 PMTheGoesen
09/26/2025, 12:35 PMVampire
09/26/2025, 12:44 PMFanish
09/26/2025, 1:25 PMFanish
09/30/2025, 6:45 AMTheGoesen
09/30/2025, 7:45 AMFanish
09/30/2025, 9:33 AMVampire
09/30/2025, 3:51 PMFanish
10/06/2025, 11:20 AMTheGoesen
10/06/2025, 11:22 AMFanish
10/06/2025, 12:52 PMfilePermissions {
user {
read = true
execute = true
}
other.execute = false
}Vampire
10/06/2025, 6:10 PM