# 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`.

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ondrej-kvasnovsky-2.gitbook.io/vaadin-on-grails-3/database/clean_up_when_using_alternatives.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
