Java Reference
In-Depth Information
Note
Rumor has it that the Grails BeanBuilder class will be added to the core Spring libraries
in version 4, which will make using it trivial. Still, the process described here is useful for
any general external library.
The version of Spring used for the examples in this chapter is 3.2, which doesn't include
the BeanBuilder . A few versions ago Grails was reformulated to split its dependencies
into separate JARs as much as possible, the same way Spring was refactored in version 3.
The Grails distribution thus contains a JAR file called grails-spring-2.2.2.jar, correspond-
ing to Grails version 2.2.2.
The Grails-Spring JAR could simply be added to my projects as an external JAR depend-
ency, but because the rest of my project was built with Gradle I prefer to list my additional
dependencythatwaytoo.TheGrails-Spring JARitselfdependsonSimpleLoggingFrame-
work for Java (SLF4J), so its dependencies must be added too.
The following listing shows the complete build file, which assumes the project is using tra-
ditional Maven structure.
Search WWH ::




Custom Search