diff --git a/build.gradle b/build.gradle index 4f5e40bc3d6..bf17b1e56a7 100644 --- a/build.gradle +++ b/build.gradle @@ -421,10 +421,10 @@ project("spring-context-support") { optional("org.apache.velocity:velocity:1.7") optional("org.freemarker:freemarker:2.3.15") optional("com.lowagie:itext:2.1.7") - optional("jasperreports:jasperreports:2.0.5") + optional("net.sf.jasperreports:jasperreports:5.0.4") optional("org.slf4j:slf4j-api:${slf4jVersion}") provided("javax.activation:activation:1.1") - testCompile("org.apache.poi:poi:3.0.2-FINAL") + testCompile("org.apache.poi:poi:3.9") testCompile("commons-beanutils:commons-beanutils:1.8.0") // for Velocity/JasperReports testCompile("commons-digester:commons-digester:1.8.1") // for Velocity/JasperReports testCompile("hsqldb:hsqldb:${hsqldbVersion}") @@ -527,9 +527,9 @@ project("spring-webmvc") { optional("org.apache.tiles:tiles-jsp:2.1.2") optional("org.apache.tiles:tiles-servlet:2.1.2") optional("net.sourceforge.jexcelapi:jxl:2.6.3") - optional("org.apache.poi:poi:3.0.2-FINAL") + optional("org.apache.poi:poi:3.9") optional("com.lowagie:itext:2.1.7") - optional("jasperreports:jasperreports:2.0.5") { + optional("net.sf.jasperreports:jasperreports:5.0.4") { exclude group: "xml-apis", module: "xml-apis" } optional("rome:rome:1.0") diff --git a/spring-context-support/src/test/java/org/springframework/ui/jasperreports/JasperReportsUtilsTests.java b/spring-context-support/src/test/java/org/springframework/ui/jasperreports/JasperReportsUtilsTests.java index 7b9ebb44aac..4031209776c 100644 --- a/spring-context-support/src/test/java/org/springframework/ui/jasperreports/JasperReportsUtilsTests.java +++ b/spring-context-support/src/test/java/org/springframework/ui/jasperreports/JasperReportsUtilsTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -122,7 +122,7 @@ public class JasperReportsUtilsTests extends TestCase { public void testRenderAsPdfWithExporterParameters() throws Exception { ByteArrayOutputStream os = new ByteArrayOutputStream(); Map exporterParameters = new HashMap(); - exporterParameters.put(JRPdfExporterParameter.PDF_VERSION, JRPdfExporterParameter.PDF_VERSION_1_6.toString()); + exporterParameters.put(JRPdfExporterParameter.PDF_VERSION, JRPdfExporterParameter.PDF_VERSION_1_6); JasperReportsUtils.renderAsPdf(getReport(), getParameters(), getData(), os, exporterParameters); byte[] output = os.toByteArray(); assertPdfOutputCorrect(output); diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java index 9bfb9c5300b..e6711fdec7d 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/view/document/AbstractExcelView.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,7 @@ import org.springframework.web.servlet.view.AbstractView; /** * Convenient superclass for Excel document views. - * Compatible with Apache POI 3.0 as well as 3.5, as of Spring 3.0. + * Compatible with Apache POI 3.5 and higher, as of Spring 4.0. * *

Properties: *