Vaadin 8 on Grails 3
  • Introduction
  • Project setup
    • Environment setup
      • Unix based systems
      • Windows
    • Creating Project
      • Command line
      • IntelliJ IDEA
    • Plugin Configuration
      • UI class
      • URL mapping
      • Production mode
      • Async support
      • Themes
      • SASS compilation
      • Widgetset compilation
      • Servlet class
      • Spring component scan
      • UI provider
      • Open session in view
    • Clean up
    • Best Practices
  • Database
    • GORM
      • Create Domain Model
      • Transactions
      • LazyInitializationException
      • Open Session In View I.
      • Open Session In View II.
      • Table Container
    • Groovy SQL
      • Create Sql Bean
      • Execute SQLs
    • MyBatis
      • MyBatis Configuration
      • Reading Data with MyBatis
    • JdbcTemplate
      • Create JdbcTemplate Beans
      • Using JdbcTemplate
    • Clean Up When Using Alternatives
  • UI
Powered by GitBook
On this page
  • Step 1
  • Step 2

Was this helpful?

  1. Database

Clean Up When Using Alternatives

TODO: revisit....

With alternative database frameworks, like Groovy Sql, MyBatis, JdbcTemplate, we do not need some GORM libraries, like hibernate, let's remove them and maybe exclude some others.

Before you start excluding and removing dependencies, let's run grails dependency-report compile command to see what libraries are loaded for compile scope.

Step 1

Remove runtime ":hibernate4:4.x" or runtime ":hibernate:3.x" from BuildConfig.groovy.

Step 2

Add exclude for grails-plugin-databinding in BuildConfig.groovy.

grails.project.dependency.resolution = {
    inherits("global") {
        'grails-plugin-databinding'
    }
PreviousUsing JdbcTemplateNextUI

Last updated 5 years ago

Was this helpful?