Skip to content
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
5441 commits
Select commit Hold shift + click to select a range
d17da97
use Groovy 4.0.24-SNAPSHOT
jamesfredley Oct 25, 2024
6c567f6
move grails-bom to resolve dependency versions for all subprojects
jamesfredley Oct 25, 2024
6c6688f
use h2 version from grails-bom
jamesfredley Oct 25, 2024
a9fa746
restore domain inheritance tests
jamesfredley Oct 25, 2024
c8de45d
fix failing tests by addressing h2 reserved words
jamesfredley Oct 25, 2024
9289653
Merge pull request #910 from grails/restore-domain-inheritance
jamesfredley Oct 26, 2024
e7351d8
Merge branch '9.0.x' into renovate/spring-boot
jamesfredley Oct 26, 2024
f6e93a3
Merge pull request #908 from grails/renovate/junit5-monorepo
jamesfredley Oct 26, 2024
65ac6ba
compileJava options release one line
jamesfredley Oct 26, 2024
b5e5565
Merge pull request #909 from grails/renovate/spring-boot
codeconsole Oct 28, 2024
23d4769
Update for H2 reserved keywords, Add .sdkmanrc, Update to ContainerGe…
jdaugherty Oct 30, 2024
6cdf90b
Add workaround for GROOVY-11512
jdaugherty Oct 30, 2024
ee37c0a
Add workaround for json $target fields.
jdaugherty Oct 30, 2024
97aefb3
Merge pull request #912 from jdaugherty/9.0.x
jdaugherty Oct 30, 2024
16ccfd4
fix #1155 - skipValidate logic in GormValidateable causes missed vali…
jdaugherty Oct 30, 2024
63881c9
Merge pull request #913 from jdaugherty/feature/9.0.x/1155-skip-validate
jdaugherty Oct 31, 2024
57b43c3
Update error exceptions from javax to jakarta
jamesfredley Oct 31, 2024
858c0ca
Merge pull request #914 from grails/javax-jakarta-error-exception
jamesfredley Oct 31, 2024
9c11a2a
Rename hibernate5Version -> hibernateVersion
codeconsole Oct 31, 2024
7c001b1
Merge pull request #915 from codeconsole/9.0.x-rename-version
codeconsole Oct 31, 2024
33f7ea6
clean up spring dependencies
codeconsole Nov 2, 2024
a505b20
Remove no longer needed configuraitons.all closures
codeconsole Nov 2, 2024
be02fa9
Merge pull request #918 from codeconsole/9.0.x-bom-cleanup
codeconsole Nov 2, 2024
b15b34c
picocliVersion not in bom
codeconsole Nov 2, 2024
3aab0cb
restore examples grails data services tests
jamesfredley Nov 7, 2024
b7949c7
Merge pull request #921 from grails/restore-example-grails-data-servi…
jamesfredley Nov 7, 2024
374ed7d
.sdkmanrc
codeconsole Nov 7, 2024
d012d8d
jdk 17
codeconsole Nov 7, 2024
5b6c7da
Merge pull request #922 from codeconsole/9.0.x
codeconsole Nov 7, 2024
b0177ad
fix: Make Spring Boot Plugin autoconfiguration work (#924)
matrei Nov 7, 2024
3fd7e66
fix(deps): update groovy monorepo to v4.0.24
renovate[bot] Nov 8, 2024
134a4c7
Merge pull request #925 from grails/renovate/groovy-monorepo
jdaugherty Nov 8, 2024
862edf2
Remove snapshot repo since groovy 4.0.24 is released
jdaugherty Nov 8, 2024
126d0fc
Merge pull request #926 from jdaugherty/9.0.x
jdaugherty Nov 8, 2024
8f1eba3
Add back snapshot support for groovy
jdaugherty Nov 8, 2024
c5fb353
Merge pull request #927 from jdaugherty/9.0.x
jdaugherty Nov 8, 2024
36d847f
fix(deps): update dependency org.apache.tomcat:tomcat-jdbc to v10.1.33
renovate[bot] Nov 11, 2024
66a3bdd
Gradle 8.11
codeconsole Nov 12, 2024
1f13777
Merge pull request #930 from codeconsole/9.0.x
codeconsole Nov 12, 2024
56026e5
Merge pull request #928 from grails/renovate/tomcatversion
codeconsole Nov 13, 2024
7353dc0
chore(deps): update plugin com.gradle.enterprise to v3.18.2
renovate[bot] Nov 13, 2024
e1448bc
chore(deps): update dependency gradle to v8.11.1
renovate[bot] Nov 20, 2024
6f9d931
Use versions from `grails-bom` in example apps (#920)
matrei Nov 22, 2024
ce9e36d
Merge branch '9.0.x' into renovate/gradle-8.x
codeconsole Nov 22, 2024
b0f2a64
Merge pull request #935 from grails/renovate/gradle-8.x
codeconsole Nov 22, 2024
8603b24
Merge branch '9.0.x' into renovate/com.gradle.enterprise-3.x
codeconsole Nov 23, 2024
edf0ff9
Merge pull request #931 from grails/renovate/com.gradle.enterprise-3.x
codeconsole Nov 23, 2024
7f2a739
Remove versioning from example folder names
codeconsole Nov 23, 2024
f7e8251
remove version number from folder name
codeconsole Nov 23, 2024
6b41829
Merge pull request #936 from codeconsole/9.0.x-directory-rename
codeconsole Nov 25, 2024
2e38553
Updating for grails-publish plugin change
jdaugherty Dec 3, 2024
091a034
Merge pull request #388 from jdaugherty/6.0.x
jdaugherty Dec 3, 2024
07d2fb8
17.0.13-librca
codeconsole Dec 9, 2024
b232590
Gradle 8.11.1
codeconsole Dec 9, 2024
c4dc26b
add eof
codeconsole Dec 9, 2024
95a8054
Revert "fix: Remove dependency on grails-shell (#350)"
jamesfredley Dec 12, 2024
779247d
update to Grails 6.2.1 and Groovy 3.0.23
jamesfredley Dec 12, 2024
86927a0
Merge pull request #389 from grails/restore-grails-shell-commands-scr…
jamesfredley Dec 12, 2024
c6ddbc3
Merge branch '5.0.x' into merge-5.0.x-into-6.0.x-12-11-2024
jamesfredley Dec 12, 2024
b1273f6
update command to pass parameter of type List<T> instead of new Array…
jamesfredley Dec 12, 2024
b9e4c1f
Merge pull request #390 from grails/merge-5.0.x-into-6.0.x-12-11-2024
jamesfredley Dec 12, 2024
5c9025d
add javaparser-core dependency
jamesfredley Dec 12, 2024
8064bc6
Merge pull request #391 from grails/fix-groovydocs-task
jamesfredley Dec 12, 2024
cbaf286
Update README.md for 5.0.0 release
jamesfredley Dec 18, 2024
c046b1b
Merge pull request #392 from grails/pre-release-5.0.0
jamesfredley Dec 18, 2024
bf1b895
[skip ci] Release v5.0.0
puneetbehl Dec 18, 2024
663f297
chore: Bump version to 5.0.1-SNAPSHOT
puneetbehl Dec 18, 2024
c186daf
Merge branch '5.0.x' into merge-5.0.x-into-6.0.x-12-18-2024
jamesfredley Dec 18, 2024
2d12e46
Update docs for 6.0.x for Grails 7
jamesfredley Dec 18, 2024
2eeec84
Merge pull request #393 from grails/merge-5.0.x-into-6.0.x-12-18-2024
jamesfredley Dec 18, 2024
ccb6cad
Use grails-bom, ContainerGebSpec, cleanup dependencies and fix tests
jamesfredley Dec 19, 2024
0dd0065
remove unused ext variables
jamesfredley Dec 19, 2024
9492acf
Use versions from grails-bom -> spring-boot-dependencies
jamesfredley Dec 19, 2024
8dfea49
update dependencies
jamesfredley Dec 19, 2024
11a5fc4
remove unused property usesGeb
jamesfredley Dec 19, 2024
2e30bf9
remove unneeded dependencies
jamesfredley Dec 19, 2024
0d83ba8
Merge pull request #774 from grails/more-grails-7-updates
jamesfredley Dec 19, 2024
3b81c42
Merge branch '9.0.x' into renovate/supercharge-mongodb-github-action-1.x
jamesfredley Dec 19, 2024
c97a8c8
Merge pull request #760 from grails/renovate/supercharge-mongodb-gith…
jamesfredley Dec 19, 2024
b968238
chore(deps): update dependency gradle to v8.12
renovate[bot] Dec 20, 2024
f4fabfd
use more versions from grails-bom
jamesfredley Dec 20, 2024
44a11d5
Merge pull request #945 from grails/use-more-grails-bom-version
jamesfredley Dec 20, 2024
cf9f740
Move views-json-templates from grails-views to gorm-mongodb
jdaugherty Dec 21, 2024
d76913b
Merge pull request #783 from jdaugherty/9.0.x
jdaugherty Dec 21, 2024
b9491ec
Add back hibernateValidatorVersion
jdaugherty Dec 21, 2024
69b15bf
Fix bom import, use liberica, use grails github actions, support the …
jdaugherty Dec 21, 2024
4b0b09a
Merge pull request #940 from jdaugherty/9.0.x
jdaugherty Dec 21, 2024
137bffe
[skip ci] Release v9.0.0-M2
grails-build Dec 21, 2024
48e59ad
chore: Bump version to 9.0.0-SNAPSHOT
grails-build Dec 21, 2024
c0f33db
Fixes found after pre release for mongodb
jdaugherty Dec 21, 2024
a035f7b
Fix bom import, use liberica, use grails github actions, support the …
jdaugherty Dec 21, 2024
53c9a54
Merge pull request #784 from jdaugherty/9.0.x
jdaugherty Dec 21, 2024
b747662
chore: Bump version to 9.0.0-SNAPSHOT
grails-build Dec 21, 2024
694d2f2
Merge pull request #947 from jdaugherty/9.0.x
jdaugherty Dec 21, 2024
32f8300
[skip ci] pre release workflow support
jdaugherty Dec 22, 2024
b2a4fc0
[skip ci] Release v6.0.0-M1
grails-build Dec 22, 2024
b92ed0e
chore: Bump version to 6.0.0-SNAPSHOT
grails-build Dec 22, 2024
2519361
use grails-datastore-gorm-tck version from grails-bom
jamesfredley Jan 4, 2025
9352d02
use grails-datastore-gorm-tck version from grails-bom
jamesfredley Jan 4, 2025
12fc468
remove unused version
jamesfredley Jan 4, 2025
75ffe0e
Merge pull request #949 from grails/use-tck-from-grails-bom
jamesfredley Jan 4, 2025
3ed88f0
Merge pull request #786 from grails/use-tck-from-grails-bom
jamesfredley Jan 4, 2025
335d708
Merge pull request #780 from grails/renovate/gradle-8.x
codeconsole Jan 14, 2025
e7f1ecc
.sdkmanrc
codeconsole Jan 14, 2025
cbc7ef0
Use mongodbDriver 5.3.0
codeconsole Jan 14, 2025
b881dfb
Merge pull request #788 from codeconsole/9.0.x-5.3.0
codeconsole Jan 14, 2025
e8a5856
build: add system property for TCK test control (#790)
matrei Jan 24, 2025
8b1cc84
exclude hibernate-core dependency
jamesfredley Feb 4, 2025
2ddbfff
add jboss-transaction-api dependency
jamesfredley Feb 4, 2025
89ccb91
remove doc change from Grails 3
jamesfredley Feb 4, 2025
85bf404
build: remove module dependency on `hibernate-ehcache`
matrei Feb 5, 2025
b00713a
build: explicitly exclude `hibernate-core` from `hibernate-ehcache`
matrei Feb 7, 2025
285efe8
build: add `jboss-transaction-api` for `hibernate-ehcache`
matrei Feb 8, 2025
56964cf
docs: update GORM in Spring Boot section
matrei Feb 8, 2025
eecb602
build: fix wrong dependency configuration
matrei Feb 8, 2025
0946ca2
fix: enable correct Spring auto-configuration in `boot-plugin`
matrei Feb 11, 2025
2867e36
ci: fix typo in `renovate.json` for `grails-datastore-async`
matrei Feb 11, 2025
4e1e78e
ci: update GitHub workflows
matrei Feb 11, 2025
aa1f718
test: fix `MongoDbGormAutoConfigurationSpec` failure due to misconfig…
matrei Feb 11, 2025
e5e1d0c
build: extract common build logic into `*-config.gradle` files
matrei Feb 11, 2025
e65a931
test: update `BsonPersistentEntityCodecSpec` for updated API
matrei Feb 11, 2025
3900e84
test: refactor `BookSpec` to not use try/catch in setup
matrei Feb 11, 2025
defda5a
test: remove Micronaut HttpClient dependency from `GlobalTemplateSpe`
matrei Feb 11, 2025
202e602
test: re-enable two passing tests in `MongoDbDataStoreSpringInitializ…
matrei Feb 11, 2025
89205f8
build: update develocity build scan and remote cache
matrei Feb 11, 2025
20847ad
test: clean up config in test applications
matrei Feb 11, 2025
3e93c25
refactor: remove `grails-app` from Grails MongoDB Plugin
matrei Feb 11, 2025
20b60f3
fix: update `MongodbGrailsPlugin` for Grails 7
matrei Feb 11, 2025
d93e30e
chore: cleanup unused imports
matrei Feb 11, 2025
a89c4b6
test: replace `@Ignore` with `@PendingFeature` in `LocalMongoUnitSpec`
matrei Feb 11, 2025
e503efc
test: replace deprecated `Package.getPackage()` usage in `MongoSpec`
matrei Feb 11, 2025
3807bc5
test: cleanup `UrlMappings` in `examples/gson-templates`
matrei Feb 11, 2025
ae4c180
build: refactor build configuration and update dependencies
matrei Feb 11, 2025
c49d3ec
ci: update mongodb settings
matrei Feb 11, 2025
fded9ce
ci: update mongodb versions
matrei Feb 11, 2025
17debfa
chore: remove author and developer info from `MongodbGrailsPlugin`
matrei Feb 11, 2025
043ca24
build: fix maven pom info for `views-json-templates`
matrei Feb 11, 2025
2886917
chore: remove unused version property `grailsViewsVersion`
matrei Feb 11, 2025
a67fd0b
ci: use v3 tag for `grails/github-actions`
matrei Feb 12, 2025
8400c48
ci: use v3 tag for `grails/github-pages-deploy-action`
matrei Feb 12, 2025
153bd20
Merge pull request #793 from grails/matrei/project-overhaul
matrei Feb 12, 2025
39259ec
Doc fixes from data-mapping merge attempt
jdaugherty Feb 12, 2025
182fbce
Merge pull request #794 from jdaugherty/9.0.x
jdaugherty Feb 12, 2025
5fdcbe7
ci: fix snapshot publishing by adding auth details (#795)
matrei Feb 12, 2025
30718bb
back to grails 7.0.0-SNAPSHOT
jamesfredley Feb 12, 2025
770e557
Merge pull request #398 from grails/back-to-grails-7.0.0-SNAPSHOT
jamesfredley Feb 13, 2025
91a7dff
BootStrap init closure servletContext cleanup
gsartori Feb 13, 2025
5726b33
BootStrap init closure servletContext cleanup
gsartori Feb 13, 2025
e8f6849
BootStrap init closure servletContext cleanup
gsartori Feb 13, 2025
d134561
Update plugin com.gradle.enterprise to v3.19.2
renovate[bot] Feb 18, 2025
8c0dd17
Merge pull request #957 from gsartori/9.0.x
jdaugherty Feb 19, 2025
ab9ebd8
Merge pull request #797 from gsartori/9.0.x
jdaugherty Feb 19, 2025
8b617dc
Merge pull request #397 from MichaelMorett/feature/fix-getting-started
jamesfredley Feb 19, 2025
fbe9a5e
Merge pull request #399 from grails/5.0.x
jamesfredley Feb 19, 2025
d3a4d04
Merge remote-tracking branch 'grails-database-migration/6.0.x' into m…
jamesfredley Feb 19, 2025
d49d195
remove gradle, github workflows, .gitignore and license
jamesfredley Feb 19, 2025
a0a1a48
update build
jamesfredley Feb 19, 2025
af54121
asciidoc consolidation into /docs
jamesfredley Feb 19, 2025
a0417fb
Update Grails 7 version to 9.0.x and point to new documentation location
jamesfredley Feb 19, 2025
6a4aa88
Merge pull request #955 from grails/exclude-hibernate-core
jamesfredley Feb 20, 2025
54db32a
Update example projects to set hibernate-ehcache dependency
jamesfredley Feb 20, 2025
58d464d
document hibernate-ehcache breaking change in documentation
jamesfredley Feb 20, 2025
bd70062
Update docs to be correctly nested and fix attribute issues
jdaugherty Feb 20, 2025
705a722
Remove ehcache configuration from gson-templates since it does not us…
jamesfredley Feb 20, 2025
73ce257
Merge pull request #961 from grails/hibernate-ehcache-breaking-change
jamesfredley Feb 20, 2025
c121692
Merge branch '9.0.x' into merge-database-migration-plugin
jamesfredley Feb 20, 2025
fe2af79
Merge pull request #800 from grails/hibernate-ehcache-breaking-change
jamesfredley Feb 20, 2025
b39e53a
Merge pull request #959 from grails/merge-database-migration-plugin
jamesfredley Feb 20, 2025
38ee06c
Allow loading classpath resources for sqlFile changesets
acanby Feb 20, 2025
280fe49
Remove "dataSource_" from bean name as dataSourceName of GroovyChange…
nobeans Feb 20, 2025
f6d4396
Removing documented command that was removed in commit 23b3ca66
jdaugherty Feb 20, 2025
76e17c1
Nullsafe
jdaugherty Feb 20, 2025
ca9ffc4
Update description of groovy change
jdaugherty Feb 20, 2025
ff35d87
Merge pull request #966 from grails/issue965
jdaugherty Feb 20, 2025
97e873e
Handle loading migrations from embedded jars (plugins)
jdaugherty Feb 20, 2025
65403c6
fix grails/gorm-hibernate5#973 (9.0.x)
zyro23 Feb 20, 2025
f21ce79
Merge pull request #985 from zyro23/issue-973
jdaugherty Feb 20, 2025
5888773
Exclude liquibase-commercial from being exported
jdaugherty Feb 20, 2025
0b35311
Merge pull request #971 from grails/groovyChangeDescription
jdaugherty Feb 20, 2025
be9edf6
Merge pull request #969 from grails/issue968
jdaugherty Feb 20, 2025
2b814d3
Merge pull request #986 from grails/excludeLiquibaseCommerical
jdaugherty Feb 20, 2025
3543296
Merge pull request #981 from grails/embeddedJarHandling
jdaugherty Feb 20, 2025
57d9ca8
Merge pull request #964 from grails/issue963
jdaugherty Feb 20, 2025
8c08069
Update dependency gradle to v8.13
renovate[bot] Feb 25, 2025
80a1a35
remove groovyVersion from gradle.properties
jamesfredley Mar 3, 2025
d0b58f8
Use snapshot versions
jamesfredley Mar 3, 2025
0a14dcd
use grails-bom version in buildscript{}
jamesfredley Mar 3, 2025
2a9fa9f
Merge pull request #989 from grails/remove-groovyVersion
jamesfredley Mar 3, 2025
25effc1
Update dependency org.asciidoctor:asciidoctor-gradle-jvm to v4.0.4
renovate[bot] Mar 3, 2025
6cf22e1
Merge branch '9.0.x' into renovate/gradle-8.x
jamesfredley Mar 3, 2025
f9bd588
Merge branch '9.0.x' into renovate/com.gradle.enterprise-3.x
jamesfredley Mar 3, 2025
22dac73
Merge pull request #916 from grails/renovate/asciidoctorgradleversion
jamesfredley Mar 3, 2025
c00e191
Merge pull request #939 from grails/renovate/com.gradle.enterprise-3.x
jamesfredley Mar 3, 2025
5792fb8
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v2.1
renovate[bot] Mar 3, 2025
81c6c1b
Merge pull request #944 from grails/renovate/gradle-8.x
jamesfredley Mar 3, 2025
32084a3
Merge pull request #953 from grails/renovate/com.gradle.common-custom…
jamesfredley Mar 3, 2025
92e2a05
use spring-boot-gradle-plugin version from grails-bom
jamesfredley Mar 4, 2025
d1b4b5b
add repo.grails.org
jamesfredley Mar 4, 2025
0e5e8ee
Merge pull request #990 from grails/use-more-version-grails-bom
jamesfredley Mar 4, 2025
698f450
[skip ci] grails 7.0.0-M3 release
jdaugherty Mar 4, 2025
f57fe45
[skip ci] copy the staged release workflow from the data-mapping project
jdaugherty Mar 4, 2025
4c6d05c
[skip ci] fix publishing
jdaugherty Mar 4, 2025
12f2b93
[skip ci] Release v9.0.0-M3
grails-build Mar 4, 2025
e0c696b
[skip ci] grails 7.0.0-M3
jdaugherty Mar 4, 2025
5bd9b2c
[skip ci] switch to datastore version 9.0.0-M3
jdaugherty Mar 4, 2025
cf3085a
[skip ci] Release v9.0.0-M3
grails-build Mar 4, 2025
a1d5e11
[skip ci] add missing github pre release repo
jdaugherty Mar 4, 2025
6d03b87
[skip ci] add missing github pre release repo
jdaugherty Mar 4, 2025
dcb586b
chore: Bump version to 9.0.0-SNAPSHOT
grails-build Mar 4, 2025
22a7455
[skip ci] add staged repo
jdaugherty Mar 4, 2025
c8287aa
chore: Bump version to 9.0.0-SNAPSHOT
grails-build Mar 4, 2025
00e3d57
Merge pull request #988 from dertalai/7.2.x
jamesfredley Mar 4, 2025
5123b38
Merge pull request #991 from grails/988-merge-to-9.0.x
jdaugherty Mar 5, 2025
5020afc
chore: major project cleanup
matrei Mar 7, 2025
eeaae75
ci: fix problems
matrei Mar 7, 2025
5901ff4
build: add the `slf4jPreventExclusion` property
matrei Mar 7, 2025
8f7cdb7
use GrailsStringUtils.trimToNull() instead of apache commons version
jamesfredley Mar 7, 2025
56c646a
Merge pull request #993 from grails/use-GrailsStringUtils-trimToNull
jamesfredley Mar 7, 2025
9a2748c
build: pr feedback
matrei Mar 7, 2025
e0c7160
build: updated pr feedback
matrei Mar 7, 2025
35606cd
Merge pull request #992 from grails/matrei/project-cleanup
matrei Mar 7, 2025
3596a6d
Imported grails-data-hibernate5
jdaugherty Mar 8, 2025
834941e
Integrate grails-data-hibernate5
jdaugherty Mar 8, 2025
604ccbc
Imported mongodb
jdaugherty Mar 8, 2025
88a565a
Integrate Mongodb
jdaugherty Mar 8, 2025
ab43a14
Update for spring security plugin move & remove mavenLocal()
jdaugherty Mar 11, 2025
480fe9a
Split hibernate5, mongodb, and datastore tests
jdaugherty Mar 11, 2025
468f52b
Merge branch '9.0.x' into newMongoMerge
jamesfredley Mar 11, 2025
1efaacd
Add missing mongodb-version's
jamesfredley Mar 11, 2025
d548f9a
add mongodb-github-action to groovy-joint-workflow
jamesfredley Mar 11, 2025
739b47b
force dependency refresh
jamesfredley Mar 11, 2025
6c3ba4a
fix gradle.yml
jamesfredley Mar 11, 2025
b9d15e1
force refresh dependencies
jamesfredley Mar 11, 2025
9981a61
adjust matrix strategy and add mongodb-github-action for datastore build
jamesfredley Mar 11, 2025
26966c1
try again
jamesfredley Mar 11, 2025
a738a9a
Code review feedback:
jdaugherty Mar 11, 2025
0454905
Revert "force refresh dependencies"
jamesfredley Mar 11, 2025
af64464
Revert "force dependency refresh"
jamesfredley Mar 11, 2025
19f258c
feedback:
jdaugherty Mar 12, 2025
e5642b0
feedback: move up permissions where possible
jdaugherty Mar 12, 2025
a8d0a86
Remove .DS_Store
jdaugherty Mar 12, 2025
ac09eb7
fix: force tests to rerun in build
jdaugherty Mar 12, 2025
20a3f14
refactor: move the tck tests to main so they can be exported and impo…
jdaugherty Mar 12, 2025
9348516
fix the tck so it always runs
jdaugherty Mar 12, 2025
fb9db1f
feedback: rename simple datastore implementation
jdaugherty Mar 12, 2025
0d62678
ignore tests that were failing in prior releases
jdaugherty Mar 13, 2025
4e269ce
Adjust @PendingFeatureIf conditions on FirstAndLastMethodSpec
jamesfredley Mar 13, 2025
4ab0ba0
Merge branch 'newMongoMerge' of https://github.com/jdaugherty/grails-…
jamesfredley Mar 13, 2025
0f21e24
tests: do not not ignore tests in mongo that pass
jdaugherty Mar 13, 2025
89560ea
feedback: styling & removing debug
jdaugherty Mar 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
95 changes: 71 additions & 24 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ on:
branches:
- '[7-9]+.[0-9]+.x'
jobs:
build:
name: "Build Project"
datastore-build:
name: "Build Datastore Project"
runs-on: ubuntu-24.04
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
java: [17, 21]
java: [ 17, 21 ]
mongodb-version: [ '4', '5', '6', '7', '8' ]
steps:
- name: "📥 Checkout the repository"
uses: actions/checkout@v4
Expand All @@ -29,15 +30,78 @@ jobs:
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "▶️ Start MongoDB (needed for some tests)"
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: "🔨 Run Build"
id: build
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build --continue -PonlyDatatstoreTests
mongodb-build:
name: "Build Mongodb Project"
runs-on: ubuntu-24.04
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
java: [ 17, 21 ]
mongodb-version: [ '4', '5', '6', '7', '8' ]
steps:
- name: "📥 Checkout the repository"
uses: actions/checkout@v4
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "▶️ Start MongoDB (needed for some tests)"
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: "🔨 Run Build"
id: build
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build --continue
run: ./gradlew build --continue -PonlyMongodbTests
hibernate5-build:
name: "Build Hibernate5 Project"
runs-on: ubuntu-24.04
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
java: [ 17, 21 ]
steps:
- name: "📥 Checkout the repository"
uses: actions/checkout@v4
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: liberica
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "🔨 Run Build"
id: build
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build --continue -PonlyHibernate5Tests
publish:
if: github.event_name == 'push'
name: "Publish Snapshot"
needs: build
needs: [datastore-build, hibernate5-build, mongodb-build]
runs-on: ubuntu-24.04
permissions:
contents: read
Expand Down Expand Up @@ -97,7 +161,7 @@ jobs:
trigger-build-gorm-impls:
if: github.event_name == 'push'
name: "Trigger Build in GORM Implementations"
needs: [build, publish]
needs: [datastore-build, mongodb-build, hibernate5-build, publish]
runs-on: ubuntu-24.04
continue-on-error: true
steps:
Expand All @@ -111,14 +175,6 @@ jobs:
- name: "📝 Create Snapshot Message for the Workflow Dispatch"
id: dispatch_message
run: echo "value={\"message\":\"New Data Mapping Snapshots $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT
- name: "📡 Invoke the Java CI workflow in GORM Hibernate5"
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
continue-on-error: true
with:
workflow: Java CI
repo: grails/gorm-hibernate5
ref: ${{ steps.extract_branch.outputs.value }}
token: ${{ secrets.GH_TOKEN }}
- name: "📡 Invoke the Java CI workflow in GORM Hibernate6"
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
Expand All @@ -135,13 +191,4 @@ jobs:
repo: grails/gorm-mongodb
ref: ${{ steps.extract_branch.outputs.value }}
token: ${{ secrets.GH_TOKEN }}
inputs: ${{ steps.dispatch_message.outputs.value }}
- name: "📡 Invoke the Java CI workflow in GORM Neo4j"
if: false # Skip until neo4j is ported to grails 7
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
with:
workflow: Java CI
repo: grails/gorm-neo4j
ref: ${{ steps.extract_branch.outputs.value }}
token: ${{ secrets.GH_TOKEN }}
inputs: ${{ steps.dispatch_message.outputs.value }}
4 changes: 4 additions & 0 deletions .github/workflows/groovy-joint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ jobs:
key: cache-local-maven-${{ github.sha }}
- name: "🪶 Add mavenLocal repository to build"
run: sed -i 's|// mavenLocal() // Keep|mavenLocal() // Keep|' build.gradle
- name: "▶️ Start MongoDB (needed for some tests)"
uses: supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # v1.12.0 (Use commit sha as this is a 3rd party action)
with:
mongodb-version: '8'
- name: "🔨 Build and test the project using the locally built Groovy snapshot"
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
Expand Down
48 changes: 25 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
!gradle-wrapper.jar
*.db
*.iml
*.ipr
*.iws
*.sha1
*.swp
.settings/
*.zip
.DS_Store
.classpath
.project
.gradle
.gradletasknamecache
.idea
.metadata
.DS_Store
.project
.settings/
Servers/
bin/
build/
target/
.gradle/
grails-plugins/mongodb/web-app
classes/
eclipse-workspace/
gradle-app.setting
grails-plugins/checkout
grails-plugins/redis/web-app
grails-plugins/mongodb/grails-mongodb-1.0.0.RC5.zip.sha1
grails-plugins/mongodb/web-app
grails-plugins/neo4j/web-app
eclipse-workspace/
Servers/
grails-plugins/redis/web-app
out
stacktrace.log
*.iws
*.iml
*.ipr
.idea/*
classes/*
bin/
boot-plugins/*/.idea/*
grails-plugins/mongodb/grails-mongodb-1.0.0.RC5.zip.sha1
prodDb.mv.db
secring.gpg
spy.log
*.db

*.sha1

*.zip
stacktrace.log
target/
10 changes: 10 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Various properties that control which tests run
* onlyHibernate5Tests
* onlyMongodbTests
* onlyDatastoreTests
* skipHibernate5Tests
* skipMongodbTests
* skipDatastoreTests

# Start a mongo docker container
docker run -d --name mongo-on-docker -p 27017:27017 mongo
22 changes: 20 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,30 @@ def publishedProjects = [
'grails-datastore-gorm-validation',
'grails-datastore-web',
'grails-gorm-testing-support',
'database-migration-hibernate5',
'gorm-hibernate5-spring-boot',
'grails-datastore-gorm-hibernate5',
'hibernate5-grails-plugin',
'gorm-mongodb-spring-boot',
'grails-datastore-gorm-bson',
'grails-datastore-gorm-mongodb',
'grails-datastore-gorm-mongodb-ext',
'mongodb-grails-plugin',
'views-json-templates'
]
subprojects {
subprojects { Project subproject ->
if (name in publishedProjects) {
// This has to be applied here
apply plugin: 'org.grails.grails-publish'
}

// asset-pipeline #177 work around for parallel builds
subproject.afterEvaluate {
Task assetTask = subproject.tasks.findByName('assetCompile')
if(assetTask) {
assetTask.outputs.dir rootProject.layout.buildDirectory.dir("asset-serialize")
}
}
}

apply from: layout.projectDirectory.file('gradle/documentation-config.gradle')
apply from: layout.projectDirectory.file('gradle/documentation-config.gradle')
5 changes: 3 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file('../gradle.properties').withInputStream {
}

repositories {
mavenLocal()
// mavenLocal()
maven { url = 'https://repo.grails.org/grails/core' }
mavenCentral()
if (System.getenv('GITHUB_MAVEN_PASSWORD')) {
Expand All @@ -25,5 +25,6 @@ repositories {
dependencies {
implementation platform("org.grails:grails-bom:${versions.getProperty('grailsVersion')}")
implementation 'org.grails:grails-gradle-plugin'
runtimeOnly 'io.github.gradle-nexus:publish-plugin:2.0.0'
runtimeOnly 'com.bertramlabs.plugins:asset-pipeline-gradle'
runtimeOnly 'org.grails.plugins:views-gradle'
}
13 changes: 12 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
projectVersion=9.0.0-SNAPSHOT

grailsVersion=7.0.0-SNAPSHOT
javaVersion=17

asciidoctorVersion=4.0.4
testcontainersMongodbVersion=1.20.1
commonsValidatorVersion=1.9.0
hibernateVersion=5.6.15.Final
grailsSpringSecurityVersion=7.0.0-SNAPSHOT
jbossTransactionApiVersion=2.0.0.Final
liquibaseHibernate5Version=4.27.0
yakworksHibernateGroovyProxyVersion=1.1
jakartaElVersion=4.0.0
jakartaElGlassfishImplVersion=4.0.2
javassistVersion=3.30.2-GA
micronautPlatformVersion=4.6.3
picocliVersion=4.7.6

# This prevents the Grails Gradle Plugin from unnecessarily excluding slf4j-simple in the generated POMs
# https://github.com/grails/grails-gradle-plugin/issues/222
slf4jPreventExclusion=true

org.gradle.caching=true
org.gradle.parallel=true
org.gradle.daemon=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1536M -XX:MaxMetaspaceSize=512M
17 changes: 16 additions & 1 deletion gradle/documentation-config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,25 @@ tasks.register('data-mapping-groovydoc', Groovydoc) {
}
}

tasks.register('copyGormImplementationDocs', Copy) {
dependsOn(':grails-data-hibernate5-docs:docs', ':grails-data-mongodb-docs:docs')

def hibernate5SourceDir = project(':hibernate5-docs').layout.buildDirectory.dir('docs')
def mongodbSourceDir = project(':mongodb-docs').layout.buildDirectory.dir('docs')
def targetDir = rootProject.layout.buildDirectory.dir('docs')

from(hibernate5SourceDir, mongodbSourceDir)
into(targetDir)

inputs.dir(hibernate5SourceDir)
inputs.dir(mongodbSourceDir)
outputs.dir(targetDir)
}

tasks.register('docs') {
group = 'documentation'
dependsOn(':data-mapping-groovydoc')
finalizedBy('copyRootWebsite','copyGuides')
finalizedBy('copyRootWebsite','copyGuides', 'copyGormImplementationDocs')
}

tasks.register('copyRootWebsite', Copy) {
Expand Down
3 changes: 3 additions & 0 deletions gradle/example-config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tasks.withType(Groovydoc).configureEach {
enabled = false
}
53 changes: 53 additions & 0 deletions gradle/hibernate5-test-config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.withType(Test).configureEach {
onlyIf {
if(project.hasProperty('skipHibernate5Tests')) {
return false
}

if(project.hasProperty('onlyMongodbTests')) {
return false
}

if(project.hasProperty('onlyDatastoreTests')) {
return false
}

true
}

useJUnitPlatform()
systemProperty('hibernate5.gorm.suite', System.getProperty('hibernate5.gorm.suite') ?: true)
reports.html.required = !System.getenv('CI')
reports.junitXml.required = !System.getenv('CI')
testLogging {
events('passed', 'skipped', 'failed')
showExceptions = true
exceptionFormat = 'full'
showCauses = true
showStackTraces = true

// set options for log level DEBUG and INFO
debug {
events('started', 'passed', 'skipped', 'failed', 'standardOut', 'standardError')
exceptionFormat = 'full'
}
info.events = debug.events
info.exceptionFormat = debug.exceptionFormat
}
afterTest { desc, result ->
logger.quiet(' -- Executed test {} [{}] with result: {}', desc.name, desc.className, result.resultType)
}
afterSuite { desc, result ->
if (!desc.parent) { // will match the outermost suite
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
def startItem = '| ', endItem = ' |'
def repeatLength = startItem.length() + output.length() + endItem.length()
def dashes = '-' * repeatLength
logger.quiet('\n{}\n{}{}{}\n{}', dashes, startItem, output, endItem, dashes)
}
}
}
Loading
Loading