-
Notifications
You must be signed in to change notification settings - Fork 62
Update to Grails 4.0.0 Final #123
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
6 commits
Select commit
Hold shift + click to select a range
80016ca
Upgrade to match Grails 4.0.0 versions
jamesdh 0264607
Deprecated in favor of grails-gorm-testing-support
jamesdh 80ac7e3
Use latest Postgres dialect
jamesdh 2f3a68a
Add Dockerfile + Makefile to simplify integration testing
jamesdh 8b0ce84
Upgrade to Grails 4.0.0 Final
jamesdh 3fc6c8e
Incorrect version definition
jamesdh 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| FROM postgres | ||
|
|
||
| ENV POSTGRES_PASSWORD=postgres_extensions | ||
| ENV POSTGRES_USER=postgres_extensions | ||
| ENV POSTGRES_DB=pg_extensions_test | ||
|
|
||
| RUN echo "CREATE EXTENSION hstore" >> /docker-entrypoint-initdb.d/hstore.sql |
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,12 @@ | ||
| .PHONY: test | ||
|
|
||
| image : | ||
| docker build -f Dockerfile -t grails/postgres-extensions . | ||
|
|
||
| test : | ||
| ./gradlew clean ;\ | ||
| docker run --rm --name pg_extensions_test -p 5432:5432 -d grails/postgres-extensions ;\ | ||
| ./gradlew check ;\ | ||
| docker container kill pg_extensions_test | ||
|
|
||
| all : image test |
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,4 +1,4 @@ | ||
| gradleWrapperVersion=4.7 | ||
| grailsVersion=3.3.5 | ||
| hibernateVersion=5.2.17.Final | ||
| gormVersion=6.1.9.RELEASE | ||
| gradleWrapperVersion=5.1.1 | ||
| grailsVersion=4.0.0 | ||
| hibernateVersion=5.4.0.Final | ||
| gormVersion=7.0.2.RELEASE |
Binary file not shown.
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,5 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
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
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.
better use
${gormVersion}instead of 7.0.0, you already havegormVersion=7.0.2.RELEASEin the gradle.propertiesThere 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.
@zhuravskiy the hibernate plugin isn't released in lock-step w/ the gorm plugin. The latest version available of
org.grails.plugins:hibernate5is 7.0.1 (see here). So it seems it may have been a mistake to depend ongormVersionfor defining that. I'm guessing that was a relic from when the GORM plugins were organized differently, and shouldn't apply anymore.Therefore, I just used the same versions as given in a fresh Grails 4.0 project.
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.
For reference, I asked about it here: https://grails.slack.com/archives/C0J9Y5PHU/p1562866992014200
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.
@zhuravskiy Thank you for reviewing!