Repository navigation
Grails 8 upgrade and Hibernate 7 support #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d0a337a
chore: upgrade to Grails 8.0.0, Java 21 and Gradle 9.8.0
sbglasius 82d4c70
fix: check for Enum explicitly when mapping array criteria values
sbglasius 6fb4a2b
ci: build with Java 21
sbglasius fbf503c
refactor: split plugin into core and hibernate5 modules
sbglasius e108e30
feat: add Hibernate 7 plugin
sbglasius a276e84
test: add test-app2 for the Hibernate 7 plugin
sbglasius 74676ef
test: run integration tests on Testcontainers
sbglasius 11d3f4f
test: share test-app1 sources with test-app2
sbglasius 9b34ee8
fix(hibernate7): address review of the criteria and orders
sbglasius e095270
chore: review cleanup
sbglasius edcab87
fix(hibernate7): address review nits
sbglasius File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,2 +1,2 @@ | ||
| # Enable auto-env through the sdkman_auto_env config - https://sdkman.io/usage#env | ||
| java=17.0.15-librca | ||
| java=21.0.12-librca |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| plugins { | ||
| id 'groovy' | ||
| id 'java-library' | ||
| } | ||
|
|
||
| version = projectVersion | ||
| group = 'io.github.gpc' | ||
|
|
||
| grailsPublish { | ||
| artifactId = 'grails-postgresql-extensions-core' | ||
| githubSlug = 'gpc/grails-postgresql-extensions' | ||
| license.name = 'Apache-2.0' | ||
| title = 'Grails PostgreSQL Extensions Core' | ||
| desc = 'Hibernate-independent support code shared by the Grails PostgreSQL Extensions plugins.' | ||
| developers = rootProject.ext.pgextDevelopers | ||
| } | ||
|
|
||
| dependencies { | ||
|
|
||
| implementation platform("org.apache.grails:grails-bom:$grailsVersion") | ||
|
|
||
| compileOnly 'org.springframework:spring-core', { // Provided | ||
| // impl: Assert | ||
| } | ||
|
|
||
| implementation 'org.apache.groovy:groovy' | ||
| implementation 'org.slf4j:slf4j-api' | ||
| api 'org.postgresql:postgresql' | ||
|
|
||
| testImplementation 'org.spockframework:spock-core' | ||
|
|
||
| testRuntimeOnly 'org.springframework:spring-core', { | ||
| // Assert | ||
| } | ||
| } | ||
|
|
||
| compileJava.options.release = javaVersion.toInteger() | ||
|
|
||
| apply { | ||
| from rootProject.layout.projectDirectory.file('gradle/test-config.gradle') | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| plugins { | ||
| id 'java-library' | ||
| id 'org.apache.grails.gradle.grails-plugin' | ||
| } | ||
|
|
||
| version = projectVersion | ||
| group = 'io.github.gpc' | ||
|
|
||
| grailsPublish { | ||
| artifactId = 'grails-postgresql-extensions' | ||
| githubSlug = 'gpc/grails-postgresql-extensions' | ||
| license.name = 'Apache-2.0' | ||
| title = 'Grails PostgreSQL Extensions Plugin' | ||
| desc = 'A Grails plugin that adds Hibernate UserTypes for PostgreSQL native types, ' + | ||
| 'like Array, HStore, JSON, JSONB, ..., and GORM criteria extensions to query them.' | ||
| developers = rootProject.ext.pgextDevelopers | ||
| } | ||
|
|
||
| dependencies { | ||
|
|
||
| implementation platform("org.apache.grails:grails-bom:$grailsVersion") | ||
|
|
||
| api project(':grails-postgresql-extensions-core') | ||
|
|
||
| compileOnly 'org.apache.grails:grails-core', { // Provided | ||
| // impl: Plugin | ||
| } | ||
| compileOnly 'org.apache.grails:grails-data-hibernate5', { | ||
| // Must be provided by the Grails application | ||
| } | ||
|
|
||
| implementation 'com.google.code.gson:gson' | ||
| implementation "org.hibernate:hibernate-core-jakarta:$hibernate5Version" | ||
| } | ||
|
|
||
| compileJava.options.release = javaVersion.toInteger() |
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes the exception type for anyone calling
PgArrayUtilsdirectly (HibernateException->IllegalArgumentException). Fine by me, but worth a line in the release notes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added an "Upgrading to 9.0.0" section to the README that mentions it (e095270), and I'll put it in the release notes when 9.0.0 is published.