-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Cleanup
examples-grails-hibernate-groovy-proxy
- `application.yml`: Format properly with 2 spaces and group config settings better. Remove unused config. - `logback.xml`: Correct faulty pattern - `Customer`: Add no-args constructor needed for proxying - `ProxySpec`: Remove unused imports - `Application`: Remove unused imports and old comment - `build.gradle`: Use correct dependencies and narrow the scopes. Switch from `tomcat-jdbc` to `HikariCP` as this will be the new default. Apply Gradle plugins in subproject instead of having logic and conditions in the root build file apply them - much easier to see what's being applied. Change version variable name from `hibernateGroovyProxy` to `yakworksHibernateGroovyProxyVersion`.
- Loading branch information
Showing
9 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
group "examples" | ||
|
||
dependencies { | ||
implementation "org.yakworks:hibernate-groovy-proxy:$hibernateGroovyProxy" | ||
plugins { | ||
id 'groovy' | ||
id 'org.grails.grails-web' | ||
} | ||
|
||
implementation "org.springframework.boot:spring-boot-starter-logging" | ||
implementation "org.springframework.boot:spring-boot-autoconfigure" | ||
implementation "org.grails:grails-core" | ||
implementation "org.grails:grails-dependencies", { | ||
exclude module:'grails-datastore-simple' | ||
} | ||
implementation "org.grails:grails-web-boot" | ||
implementation project(":grails-plugin") | ||
version = rootProject.version | ||
group = 'examples' | ||
|
||
implementation "org.hibernate:hibernate-core-jakarta:$hibernateVersion" | ||
dependencies { | ||
|
||
runtimeOnly "com.h2database:h2" | ||
runtimeOnly "org.yaml:snakeyaml" | ||
runtimeOnly "org.apache.tomcat:tomcat-jdbc" | ||
implementation project(':grails-plugin') | ||
implementation 'org.grails:grails-core' | ||
implementation "org.yakworks:hibernate-groovy-proxy:$yakworksHibernateGroovyProxyVersion" | ||
|
||
testImplementation "org.grails:grails-gorm-testing-support" | ||
runtimeOnly 'org.springframework.boot:spring-boot-starter-logging' | ||
runtimeOnly 'org.springframework.boot:spring-boot-autoconfigure' | ||
runtimeOnly 'com.h2database:h2' | ||
runtimeOnly 'com.zaxxer:HikariCP' | ||
|
||
} | ||
testImplementation 'org.grails:grails-gorm-testing-support' | ||
} |
24 changes: 8 additions & 16 deletions
24
examples/grails-hibernate-groovy-proxy/grails-app/conf/application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters