Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
801 commits
Select commit Hold shift + click to select a range
04c1680
Merge pull request #211 from grails-plugins/renovate/com.h2database-h…
puneetbehl Nov 16, 2021
fa9a4b8
Remove provided scope as it is deprecated
puneetbehl Nov 16, 2021
7f0a8c1
Merge pull request #212 from grails-plugins/renovate/org.asciidoctor-…
puneetbehl Nov 16, 2021
5cb61bd
Merge pull request #213 from grails-plugins/removeProvidedScope
puneetbehl Nov 16, 2021
48614d4
Migrated to Grails 5
puneetbehl Nov 17, 2021
af5683e
Merge pull request #214 from grails-plugins/grails5
puneetbehl Nov 17, 2021
9a51c6e
Update dependency org.hibernate:hibernate-core to v5.6.1.Final
renovate-bot Nov 17, 2021
c68969f
Remove spock-outputcapture dependency
puneetbehl Nov 17, 2021
efa17be
Merge pull request #217 from grails-plugins/removeOutputCapture
puneetbehl Nov 17, 2021
89a16ff
Merge pull request #195 from grails-plugins/renovate/hibernate-core
puneetbehl Nov 17, 2021
94be4a7
Update dependency org.liquibase:liquibase-core to v4
renovate-bot Nov 17, 2021
e26958a
Update dependency org.liquibase.ext:liquibase-hibernate5 to v4
puneetbehl Nov 17, 2021
c3d8756
Replace ServiceLocator with java.util.ServiceLoader to find extension…
puneetbehl Nov 18, 2021
ff87779
Replace Legacy LiquibaseCommand with new CommandStep
puneetbehl Nov 18, 2021
bbae977
Wrap up Liquibase 4.0 upgrade
puneetbehl Nov 18, 2021
8ded253
Use New CommandStep API to execute commands
puneetbehl Nov 18, 2021
443f0e7
Fix CompositeResourceAccessor breaking API changes
puneetbehl Nov 18, 2021
65a6286
Implemented Spock Extension
puneetbehl Nov 19, 2021
d30b8c2
Update .gitignore
puneetbehl Nov 19, 2021
b1485c9
Merge pull request #201 from grails-plugins/renovate/major-liquibasev…
puneetbehl Nov 19, 2021
96703c4
Update Release Drafter Configuration
puneetbehl Nov 19, 2021
99a8b80
Merge pull request #218 from grails-plugins/puneetbehl-patch-1
puneetbehl Nov 19, 2021
05aea2d
Fix Groovydoc Task
puneetbehl Nov 19, 2021
a3a29e3
Update Asciidocs
puneetbehl Nov 19, 2021
fb61fc9
Fix minor grammatical errors
puneetbehl Nov 19, 2021
7e1dbca
Merge pull request #219 from grails-plugins/fixPublish
puneetbehl Nov 19, 2021
01d4c10
Update release-drafter.yml
puneetbehl Nov 19, 2021
5127f0e
Merge pull request #220 from grails-plugins/puneetbehl-patch-1
puneetbehl Nov 19, 2021
cf79dd2
Update release-drafter configuration
puneetbehl Nov 19, 2021
192d6ae
Merge pull request #221 from grails-plugins/updateReleaseDrafter
puneetbehl Nov 19, 2021
90bfbde
Setup New Github Wofklow - To publish release on Sonatype OSSRH
puneetbehl Nov 19, 2021
a95c18c
Merge pull request #222 from grails-plugins/releaseWorkflow
puneetbehl Nov 19, 2021
7b0cfc1
Configure Asciidoctor task outputDir to /build/asciidoc folder
puneetbehl Nov 19, 2021
ee6ddca
Merge pull request #223 from grails-plugins/asciidoctor
puneetbehl Nov 19, 2021
d1e1501
Improvements to Java CI Workflow
puneetbehl Nov 19, 2021
803115c
Merge pull request #224 from grails-plugins/javaci
puneetbehl Nov 19, 2021
486efd3
Fix documentation for multiple data sources
puneetbehl Nov 19, 2021
233d376
Merge pull request #225 from grails-plugins/puneetbehl-patch-1
puneetbehl Nov 19, 2021
5b229f4
[skip ci] Release v4.0.0-RC1
puneetbehl Nov 23, 2021
a04f595
back to snapshot
puneetbehl Nov 23, 2021
ba4e65d
Fixed path of secring.gpg in release workflow
puneetbehl Nov 23, 2021
cd33f8d
Merge pull request #226 from grails-plugins/puneetbehl-patch-1
puneetbehl Nov 23, 2021
0a8de0d
[skip ci] Release v4.0.0-RC1
puneetbehl Nov 23, 2021
bb1d5a7
Fixed problem with secring.gpg
puneetbehl Nov 23, 2021
4fb9aec
Update release workflow to not use gradle-build-action
puneetbehl Nov 23, 2021
cee83a8
Back to 4.0.0-SNAPSHOT
puneetbehl Nov 23, 2021
16dec31
Update dependency org.grails:grails-bom to v5.0.2
renovate-bot Nov 26, 2021
4b28b2b
Update dependency org.liquibase:liquibase-core to v4.6.2
renovate-bot Dec 2, 2021
9a43454
Merge pull request #231 from grails-plugins/renovate/liquibaseversion
puneetbehl Dec 6, 2021
4705284
Update Java CI workflow trigger and configuration
puneetbehl Dec 6, 2021
f32359c
Update Java CI build trigger
puneetbehl Dec 6, 2021
465b83f
Test Java CI workflow with Java 8, 11, and 14
puneetbehl Dec 6, 2021
341afec
Merge pull request #234 from grails-plugins/javaci
puneetbehl Dec 6, 2021
f6d512b
Update release worklfow to use gradle-github-action
puneetbehl Dec 6, 2021
fda9578
Merge pull request #233 from grails-plugins/releaseWorkflow
puneetbehl Dec 6, 2021
0616fc4
Merge pull request #228 from grails-plugins/renovate/grailsversion
puneetbehl Dec 6, 2021
1ebf65e
Fix missing dependency problems by changing the scope from implementa…
puneetbehl Dec 6, 2021
71cf214
Merge pull request #235 from grails-plugins/fixDependency
puneetbehl Dec 6, 2021
23955b7
Setup Gradle Enterpirse
puneetbehl Dec 6, 2021
9c2d8f0
Remove snapshot information input from Java CI workflow dispatch
puneetbehl Dec 6, 2021
44e623c
Merge pull request #236 from grails-plugins/javaci
puneetbehl Dec 6, 2021
59c9daf
Merge pull request #237 from grails-plugins/geSetup
puneetbehl Dec 6, 2021
cc6abbb
Enable Gradle Build Cache
puneetbehl Dec 6, 2021
bb80f1d
Merge pull request #238 from grails-plugins/enableCaching
puneetbehl Dec 6, 2021
4203b67
Update renovate configuration
puneetbehl Dec 6, 2021
ff6ca36
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.6.2
renovate-bot Dec 6, 2021
9ef59ce
Merge pull request #239 from grails-plugins/renovateConfig
puneetbehl Dec 6, 2021
a457b6d
Merge pull request #240 from grails-plugins/renovate/com.gradle.commo…
puneetbehl Dec 6, 2021
3800b54
Update Release Note Workflow Configuration
puneetbehl Dec 6, 2021
ad3f5c7
Merge pull request #242 from grails-plugins/releaseNotes
puneetbehl Dec 6, 2021
8ec2d7c
Cleanup Travis Config files
puneetbehl Dec 6, 2021
430caa4
Merge pull request #243 from grails-plugins/cleanupTravis
puneetbehl Dec 6, 2021
e57bdb5
[skip ci] Release v4.0.0-RC2
puneetbehl Dec 6, 2021
9eba61c
Back to 4.0.0-SNAPSHOT
puneetbehl Dec 6, 2021
e4653cb
Fixed publish to GitHub Pages step
puneetbehl Dec 7, 2021
54b80c8
Update dependency org.hibernate:hibernate-core to v5.6.2.Final
renovate-bot Dec 9, 2021
8bfe8a1
Merge pull request #245 from grails-plugins/renovate/hibernate-core
puneetbehl Dec 11, 2021
464e55c
Merge pull request #244 from grails-plugins/puneetbehl-patch-1
puneetbehl Dec 11, 2021
7634a64
Update Grails Core to 5.0.3
puneetbehl Dec 14, 2021
cf68834
Merge pull request #247 from grails-plugins/puneetbehl-patch-1
puneetbehl Dec 14, 2021
b9cd92b
Update dependency org.hibernate:hibernate-core to v5.6.3.Final
renovate-bot Dec 16, 2021
1ac264e
Merge pull request #248 from grails-plugins/renovate/hibernate-core
puneetbehl Dec 17, 2021
5f27ec6
Publish release to new infrastructure for Sonatype OSSRH
puneetbehl Dec 17, 2021
1365861
Publish release to new infrastructure for Sonatype OSSRH
puneetbehl Dec 17, 2021
dd5d12c
Merge pull request #249 from grails-plugins/puneetbehl-patch-1-1
puneetbehl Dec 17, 2021
6167fcf
[skip ci] Release v4.0.0-RC3
puneetbehl Dec 17, 2021
a36c2a7
Back to 4.0.0-SNAPSHOT
puneetbehl Dec 17, 2021
b81a1ce
Update dependency org.grails:grails-gradle-plugin to v5.1.0
renovate-bot Dec 19, 2021
faac4a8
Update dependency org.grails:grails-bom to v5.1.1
renovate-bot Dec 20, 2021
5c20f44
Update plugin com.gradle.enterprise to v3.8
renovate-bot Dec 20, 2021
77fe854
Merge pull request #250 from grails/puneetbehl-patch-1
puneetbehl Dec 21, 2021
70e86f6
Merge pull request #254 from grails/renovate/com.gradle.enterprise-3.x
puneetbehl Dec 21, 2021
46ebd87
Update README.md
puneetbehl Dec 21, 2021
b51356c
Update grails-gradle-plugin to 5.1.0
puneetbehl Dec 28, 2021
140884b
Merge pull request #252 from grails/renovate/grailsgradlepluginversion
puneetbehl Dec 28, 2021
dfd0603
Merge branch '4.0.x' into renovate/grails-monorepo
puneetbehl Dec 28, 2021
c534f51
Merge pull request #251 from grails/renovate/grails-monorepo
puneetbehl Dec 28, 2021
8a447ae
[skip ci] Release v4.0.0
puneetbehl Dec 29, 2021
64cb256
Back to 4.0.1-SNAPSHOT
puneetbehl Dec 29, 2021
317f170
Update README to point to correct documentation links
puneetbehl Jan 2, 2022
410c1ba
HTTPS links
puneetbehl Jan 2, 2022
1cc7e08
Merge pull request #258 from grails/puneetbehl-patch-1
puneetbehl Jan 3, 2022
2685458
Update README package distribution
puneetbehl Jan 3, 2022
49341b7
Merge pull request #259 from grails/puneetbehl-patch-1
puneetbehl Jan 3, 2022
7e7926e
Bump up Gradle plugin dependencies (#265)
jprinet Jan 26, 2022
be1a5a0
Update dependency org.grails:grails-bom to v5.1.2 (#266)
renovate[bot] Jan 26, 2022
2cac5f6
Update dependency gradle to v7.3.3 (#261)
renovate[bot] Jan 26, 2022
07ecdba
Update dependency org.liquibase.ext:liquibase-hibernate5 to v4.7.1 (#…
renovate[bot] Jan 26, 2022
7e4f9c5
Update dependency org.liquibase:liquibase-core to v4.7.1 (#263)
renovate[bot] Jan 26, 2022
7471309
Update dependency org.grails:grails-gradle-plugin to v5.1.1 (#264)
renovate[bot] Jan 26, 2022
4adb8c8
Update dependency org.hibernate:hibernate-core to v5.6.5.Final (#267)
renovate[bot] Jan 26, 2022
f3ef498
Update dependency org.grails:grails-gradle-plugin to v5.1.3 (#271)
renovate[bot] Mar 17, 2022
c9c30ec
Update actions/setup-java action to v3 (#278)
renovate[bot] Mar 17, 2022
0150db5
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Mar 17, 2022
78f2f54
Update dependency org.liquibase.ext:liquibase-hibernate5 to v4.8.0 (#…
renovate[bot] Mar 17, 2022
bcd5072
Update dependency org.hibernate:hibernate-core to v5.6.7.Final (#283)
renovate[bot] Mar 17, 2022
499b7e9
Update dependency org.grails:grails-bom to v5.1.3 (#281)
renovate[bot] Mar 17, 2022
b7ba813
Update dependency org.liquibase:liquibase-core to v4.8.0 (#277)
renovate[bot] Mar 17, 2022
4b5cc28
Update dependency gradle to v7.4.1 (#272)
renovate[bot] Mar 17, 2022
467da83
Update groovy monorepo to v3.0.10 (#241)
renovate[bot] Mar 17, 2022
3236292
Update actions/checkout action to v3 (#279)
renovate[bot] Mar 17, 2022
5a5970e
Liquibase dependencies: exclude liquibase-test-harness and h2 (#275)
rainboyan Mar 17, 2022
967626b
[skip ci] Update README
puneetbehl Mar 17, 2022
380a08f
Fixed plugin version unspecified error (#273)
rainboyan Mar 17, 2022
4644c87
[skip ci] Release v4.1.0
puneetbehl Mar 17, 2022
294925d
Back to 4.1.1-SNAPSHOT
puneetbehl Mar 17, 2022
85548ca
Update dependency org.liquibase:liquibase-core to v4.9.0 (#285)
renovate[bot] Mar 21, 2022
69539d2
Update plugin com.gradle.enterprise to v3.9 (#287)
renovate[bot] Mar 21, 2022
63e94e2
Update dependency org.liquibase.ext:liquibase-hibernate5 to v4.9.0 (#…
renovate[bot] Mar 21, 2022
ed2a9bf
Update plugin com.gradle.enterprise to v3.10 (#298)
renovate[bot] May 6, 2022
3893a97
Update dependency org.hibernate:hibernate-core to v5.6.8.Final (#296)
renovate[bot] May 6, 2022
c2d973a
Update dependency org.gradle:test-retry-gradle-plugin to v1.3.2 (#297)
renovate[bot] May 6, 2022
f66c995
Update dependency org.grails:grails-bom to v5.1.7 (#288)
renovate[bot] May 6, 2022
1987135
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] May 6, 2022
5ca4413
Update dependency org.hibernate:hibernate-core to v5.6.14.Final (#301)
renovate[bot] Jan 6, 2023
15c0543
Update plugin com.gradle.enterprise to v3.11.4 (#302)
renovate[bot] Jan 6, 2023
90cde98
Update dependency org.grails:grails-gradle-plugin to v5.2.4 (#299)
renovate[bot] Jan 6, 2023
0b07e1a
Update dependency gradle to v7.5.1 (#292)
renovate[bot] Jan 6, 2023
333be57
Update renovate.json
puneetbehl Jan 6, 2023
a002c47
Update dependency org.grails:grails-bom to v5.2.5 (#309)
renovate[bot] Jan 8, 2023
bb8aae2
Update dependency org.gradle:test-retry-gradle-plugin to v1.5.0 (#300)
renovate[bot] Jan 8, 2023
f14a252
Issue 305 - Upgrade liquibase to remove h2 transitive dependency (#306)
jchharris Jan 9, 2023
00df23e
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Jan 9, 2023
e7c2121
Update release-notes.yml
puneetbehl Jan 9, 2023
98d9278
issue 294 - Fix for generating XML based liquibase diffs (#295)
lynchie14 Jan 9, 2023
b2757bc
Update dependency org.gradle:test-retry-gradle-plugin to v1.5.1 (#312)
renovate[bot] Feb 6, 2023
3722236
Update plugin com.gradle.enterprise to v3.12.3 (#308)
renovate[bot] Feb 15, 2023
6f11236
[skip ci] Release v4.1.1
puneetbehl Feb 15, 2023
081d25d
Back to 4.1.2-SNAPSHOT
puneetbehl Feb 15, 2023
6d6b25b
Update dependency org.grails:grails-gradle-plugin to v5.3.0 (#315)
renovate[bot] Feb 15, 2023
b10e9ba
Update dependency org.hibernate:hibernate-core to v5.6.15.Final (#313)
renovate[bot] Feb 15, 2023
44dda84
Update to 4.2.0-SNAPSHOT
puneetbehl Feb 15, 2023
34f0500
Update dependency org.grails:grails-bom to v5.3.2 (#314)
renovate[bot] Feb 15, 2023
99aecb2
Update liquibase monorepo to v4.19.0 (#311)
renovate[bot] Feb 15, 2023
eea8913
[skip ci] Release v4.2.0
puneetbehl Feb 15, 2023
705177a
Back to 4.2.1-SNAPSHOT
puneetbehl Feb 15, 2023
03fbe0b
Update dependency gradle to v7.6.1 (#317)
renovate[bot] Mar 2, 2023
4251699
Update plugin com.gradle.enterprise to v3.13.4 (#319)
renovate[bot] Jun 27, 2023
05db690
Fixes #304 by removing deprecated setting `resourceAccessor` on `Groo…
verglor Jun 27, 2023
af14e61
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Jun 27, 2023
ddc6da9
Update plugin com.gradle.enterprise to v3.14 (#326)
renovate[bot] Jul 24, 2023
b1e41ee
Update dependency org.grails:grails-bom to v5.3.3 (#324)
renovate[bot] Jul 24, 2023
617beae
Update dependency gradle to v7.6.2 (#323)
renovate[bot] Jul 24, 2023
e26aed8
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Jul 24, 2023
e5c4093
Update plugin com.gradle.enterprise to v3.14.1 (#329)
renovate[bot] Aug 8, 2023
844aa19
[skip ci] Release v4.2.1
puneetbehl Aug 31, 2023
626755c
Back to 4.2.2-SNAPSHOT
puneetbehl Aug 31, 2023
2a65694
Update plugin com.gradle.enterprise to v3.15 (#332)
renovate[bot] Sep 27, 2023
8a5267c
Update actions/checkout action to v4 (#330)
renovate[bot] Sep 27, 2023
c76d0aa
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Sep 27, 2023
01bbead
Update renovate.json
puneetbehl Sep 27, 2023
d757713
Update gradle.yml
puneetbehl Sep 27, 2023
7717f42
Update release.yml
puneetbehl Sep 27, 2023
300e3ae
Update to 5.0.0-SNAPSHOT
puneetbehl Sep 27, 2023
a50c1d4
Update gradle.yml
puneetbehl Sep 27, 2023
21307d0
Update release.yml
puneetbehl Sep 27, 2023
fa53df6
Update to Java 11 as baseline
puneetbehl Sep 27, 2023
c08df21
Update grails monorepo to v6 (#328)
renovate[bot] Sep 27, 2023
1b13979
Update dependency gradle to v7.6.3 (#334)
renovate[bot] Oct 5, 2023
d90c051
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Oct 5, 2023
b481304
Update plugin com.gradle.enterprise to v3.15.1 (#335)
renovate[bot] Oct 10, 2023
93b5d46
Update grails monorepo to v6.1.0 (#337)
renovate[bot] Nov 7, 2023
2ceb683
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Nov 7, 2023
5583df5
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Dec 8, 2023
05abe99
Update actions/setup-java action to v4 (#338)
renovate[bot] Dec 8, 2023
84d5b78
Update grails monorepo to v6.1.1 (#341)
renovate[bot] Dec 20, 2023
50c2ca8
Update plugin com.gradle.enterprise to v3.16.1 (#339)
renovate[bot] Dec 20, 2023
488dc27
fix: Remove dependency on grails-shell (#350)
matrei Mar 14, 2024
cc4c261
Update plugin com.gradle.common-custom-user-data-gradle-plugin to v1.…
renovate[bot] Mar 14, 2024
a54a8fc
Update dependency gradle to v7.6.4 (#348)
renovate[bot] Mar 14, 2024
ae860dd
Update release-drafter/release-drafter action to v6 (#347)
renovate[bot] Mar 14, 2024
1a4e197
Update grails monorepo to v6.1.2 (#345)
renovate[bot] Mar 14, 2024
44fdbec
Update gradle/wrapper-validation-action action to v2 (#344)
renovate[bot] Mar 14, 2024
a7e5647
chore(deps): update plugin com.gradle.enterprise to v3.16.2 (#343)
renovate[bot] Mar 14, 2024
d831f6c
Update dependency org.asciidoctor:asciidoctor-gradle-jvm to v4 (#342)
renovate[bot] Mar 14, 2024
1dc3a47
chore(deps): update gradle/wrapper-validation-action action to v3 (#358)
renovate[bot] Apr 18, 2024
cc63e1d
chore(deps): update plugin com.gradle.common-custom-user-data-gradle-…
renovate[bot] Apr 18, 2024
fb4ac5f
chore(deps): update plugin com.gradle.enterprise to v3.17.2 (#355)
renovate[bot] Apr 19, 2024
0064bf5
chore(deps): update gradle/gradle-build-action action to v3 (#352)
renovate[bot] Apr 19, 2024
bb43b3d
chore: update release notes workflow (#359)
puneetbehl Apr 24, 2024
cc112af
chore(deps): Update to Grails 6.2.0 and Groovy 3.0.21 (#360)
matrei May 2, 2024
51a3dca
chore(build): update to gradle develocity (#361)
puneetbehl May 2, 2024
4273509
Update to 6.0.0-SNAPSHOT
jamesfredley Aug 28, 2024
d3bc30d
Update to Grails 7, Gradle 8.10, hibernate-core-jakarta, Java 17, Gro…
jamesfredley Sep 5, 2024
eb9261e
Update gradle.yml (#373)
jamesfredley Sep 5, 2024
f5249c0
Update gradle.yml
jamesfredley Sep 5, 2024
150ad52
fix(deps): update dependency org.apache.commons:commons-lang3 to v3.1…
renovate[bot] Sep 5, 2024
752a42a
fix(deps): update dependency com.github.javaparser:javaparser-core to…
renovate[bot] Sep 5, 2024
fb94e2f
fix(deps): update dependency org.asciidoctor:asciidoctor-gradle-jvm t…
renovate[bot] Sep 5, 2024
25ddd40
chore(deps): update plugin com.gradle.common-custom-user-data-gradle-…
renovate[bot] Sep 5, 2024
310db42
chore(deps): update plugin com.gradle.enterprise to v3.18 (#362)
renovate[bot] Sep 5, 2024
4206a73
Reuse env.GIT_USER_EMAIL and env.GIT_USER_NAME (#376)
jamesfredley Sep 5, 2024
04d91ef
remove groovy 3 config (#378)
jamesfredley Sep 6, 2024
f63c7b2
Update gradle.yml
jamesfredley Sep 6, 2024
4cecc9a
Update grailsVersion = "7.0.0 > *" (#381)
jamesfredley Sep 25, 2024
282893f
change plugin compatibility to 7.0.0-SNAPSHOT (#383)
jamesfredley Oct 16, 2024
77f66ab
dependency cleanup with grails-bom (#384)
jamesfredley Oct 25, 2024
3f91e70
Tests compatible with H2 `2.x` (#386)
matrei Oct 25, 2024
65ac6ba
compileJava options release one line
jamesfredley Oct 26, 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
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
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
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
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
bd70062
Update docs to be correctly nested and fix attribute issues
jdaugherty Feb 20, 2025
c121692
Merge branch '9.0.x' into merge-database-migration-plugin
jamesfredley Feb 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ gradle-app.setting
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties
.DS_Store

# Database Migration Test Database File
*.db
10 changes: 9 additions & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ dependencies {
}

asciidoctor {
inputs.dir layout.projectDirectory.dir('src/docs/asciidoc')
outputs.dir layout.buildDirectory.dir('docs/manual')
baseDirFollowsSourceDir()
resources {
from("${project.projectDir}/src/docs/asciidoc/images")
Expand All @@ -51,7 +53,13 @@ asciidoctor {
'reproducible' : '',
'version' : project.version,
'pluginVersion' : project.version,
'sourcedir' : "${project.projectDir}/src/main/groovy"
'groupId' : project.group,
'artifactId' : project.name,
'sourcedir' : "${project.projectDir}/src/main/groovy",
'migrationPluginExamplesDir' : rootProject.layout.projectDirectory.dir('grails-database-migration/src/integration-test/resources').asFile.absolutePath,
'migrationPluginGroupId' : rootProject.findProject(':database-migration').group,
'migrationPluginArtifactId' : rootProject.findProject(':database-migration').name,
'liquibaseHibernate5Version': liquibaseHibernate5Version
}

task fetchSource {
Expand Down
49 changes: 49 additions & 0 deletions docs/src/docs/asciidoc/databaseMigration/configuration.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
=== Configuration

There are a few configuration options for the plugin. All configurations are prefixed with `grails.plugin.databasemigration`:

[options="header"]
|==================================
|Property |Default |Meaning
|changelogLocation |`grails-app/migrations` |the folder containing the main changelog file (which can include one or more other files)
|changelogFileName |`changelog.groovy` |the name of the main changelog file
|changelogProperties |none |a map of properties to use for property substitution in Groovy DSL changelogs
|contexts |none |A comma-delimited list of http://www.liquibase.org/manual/contexts[context] names. If specified, only changesets tagged with one of the context names will be run
|dbDocLocation |`target/dbdoc` |the directory where the output from the <<ref-documentation-scripts-dbm-db-doc,dbm-db-doc>> script is written
|dbDocController.enabled |`true` in dev mode |whether the /dbdoc/ url is accessible at runtime
|dropOnStart |`false` |if `true` then drops all tables before auto-running migrations (if updateOnStart is true)
|updateOnStart |`false` |if `true` then changesets from the specified list of names will be run at startup
|updateOnStartFileName |none |the file name (relative to `changelogLocation`) to run at startup if `updateOnStart` is `true`
|updateOnStartDefaultSchema |none |the default schema to use when running auto-migrate on start
|updateOnStartContexts |none |A comma-delimited list of http://www.liquibase.org/manual/contexts[context] names. If specified, only changesets tagged with one of the context names will be run
|updateAllOnStart |false |if `true` then changesets from the specified list of names will be run at startup for all dataSources. Useful for Grails Multitenancy with Multiple Databases (same db schema)
|autoMigrateScripts |['RunApp'] |the scripts when running auto-migrate. Useful to run auto-migrate during test phase with: ['RunApp', 'TestApp']
|excludeObjects |none |A comma-delimited list of database object names to ignore while performing a dbm-gorm-diff or dbm-generate-gorm-changelog
|includeObjects |none |A comma-delimited list of database object names to look for while performing a dbm-gorm-diff or dbm-generate-gorm-changelog
|databaseChangeLogTableName |'databasechangelog' |the Liquibase changelog record table name
|databaseChangeLogLockTableName |'databasechangeloglock' |the Liquibase lock table name
|==================================

NOTE: All the above configs can be used for multiple datasources


*Multiple DataSource Example:*

If secondary dataSource named "second" is configured in application.yml
[source,yaml]
----
include::{migrationPluginExamplesDir}/application-multiple-datasource.yml[lines=11..29]
----

The configuration for this data source would be:
[source,groovy]
----
grails.plugin.databasemigration.reports.updateOnStart = true
grails.plugin.databasemigration.reports.changelogFileName = changelog-second.groovy
----
The configuration for all data sources with same db schema would be:
[source,groovy]
----
grails.plugin.databasemigration.updateAllOnStart = true
grails.plugin.databasemigration.changelogFileName = changelog.groovy
----
23 changes: 23 additions & 0 deletions docs/src/docs/asciidoc/databaseMigration/dbdoc.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
=== DbDoc Controller

You can use the <<ref-documentation-scripts-dbm-db-doc,dbm-db-doc>> script to generate static HTML files to view changelog information, but another option is to use the `DbDocController` at runtime. By default this controller is mapped to `/appname/dbdoc/` but this can be customized with `UrlMappings` like any controller.

You probably don't want to expose this information to all of your application's users so by default the controller is only enabled in the development environment. But you can enable or disable it for any environment in `application.groovy` with the `dbDocController.enabled` config option. For example to enable for all environments (be sure to guard the URL with a security plugin in prod):

[source,groovy]
----
grails.plugin.databasemigration.dbDocController.enabled = true
----

or to enable in the production environment:

[source,groovy]
----
environments {
production {
grails.plugin.databasemigration.dbDocController.enabled = true
}
...
}
----

95 changes: 95 additions & 0 deletions docs/src/docs/asciidoc/databaseMigration/generalUsage.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
=== General Usage

After creating the initial changelog, the typical workflow will be along the lines of:

* make domain class changes that affect the schema
* add changes to the changelog for them
* backup your database in case something goes wrong
* run `grails dbm-update` to update your development environment (or wherever you're applying the changes)
* check the updated domain class(es) and changelog(s) into source control

[WARNING]
=====
1. When running migration scripts on non-development databases, it's important that you backup the database before running the migration in case anything goes wrong. You could also make a copy of the database and run the script against that, and if there's a problem the real database will be unaffected.
2. Setting the dbCreate setting to "none" is recommended when executing the dbm migration commands. Otherwise you might run into troubles and the commands could not be executed.
=====

To create the changelog additions, you can either manually create the changes or with the <<ref-diff-scripts-dbm-gorm-diff,dbm-gorm-diff>> script (you can also use the <<ref-diff-scripts-dbm-diff,dbm-diff>> script but it's far less convenient and requires a 2nd temporary database).

You have a few options with `dbm-gorm-diff`:

* `dbm-gorm-diff` will dump to the console if no filename is specified, so you can copy/paste from there
* if you include the `--add` parameter when running the script with a filename it will register an include for the filename in the main changelog for you

Regardless of which approach you use, be sure to inspect generated changes and adjust as necessary.


==== Autorun on start


Since Liquibase maintains a record of changes that have been applied, you can avoid manually updating the database by taking advantage of the plugin's auto-run feature. By default this is disabled, but you can enable it by adding

[source,groovy]
----
grails.plugin.databasemigration.updateOnStart = true
----

to application.groovy. In addition you must specify the file containing changes; specify the name using the `updateOnStartFileName` property, e.g.:

[source,groovy]
----
grails.plugin.databasemigration.updateOnStartFileName = 'changelog.groovy'
----

Since changelogs can contain changelogs you'll most often just specify the root changelog, changelog.groovy by convention. Any changes that haven't been executed (in the specified file(s) or files included by them) will be run in the order specified.

You may optionally limit the plugin's auto-run feature to run only specific contexts. If this configuration parameter is empty or omitted, all contexts will be run.

[source,groovy]
----
grails.plugin.databasemigration.updateOnStartContexts = ['context1,context2']
----

You can be notified when migration are run (for example to do some work before and/or after the migrations execute) by registering a "callback" class as a Spring bean. The class can have any name and package and doesn't have to implement any interface since its methods will be called using Groovy duck-typing.

The bean name is "migrationCallbacks" and there are currently three callback methods supported (all are optional):

* `beforeStartMigration` will be called (if it exists) for each datasource before any migrations have run; the method will be passed a single argument, the Liquibase `Database` for that datasource
* `onStartMigration` will be called (if it exists) for each migration script; the method will be passed three arguments, the Liquibase `Database`, the `Liquibase` instance, and the changelog file name
* `afterMigrations` will be called (if it exists) for each datasource after all migrations have run; the method will be passed a single argument, the Liquibase `Database` for that datasource

An example class will look like this:

[source,groovy]
----
package com.mycompany.myapp

import liquibase.Liquibase
import liquibase.database.Database

class MigrationCallbacks {

void beforeStartMigration(Database Database) {
...
}

void onStartMigration(Database database, Liquibase liquibase, String changelogName) {
...
}

void afterMigrations(Database Database) {
...
}
}
----

Register it in resources.groovy:

[source,groovy]
----
import com.mycompany.myapp.MigrationCallbacks

beans = {
migrationCallbacks(MigrationCallbacks)
}
----
110 changes: 110 additions & 0 deletions docs/src/docs/asciidoc/databaseMigration/gettingStarted.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
=== Getting Started

*The first step is to add a dependency for the plugin in `build.gradle`:*

[source,groovy,subs="attributes"]
----
buildscript {
dependencies {
...
classpath '{migrationPluginGroupId}:{migrationPluginArtifactId}:{version}'
}
}

dependencies {
...
implementation '{migrationPluginGroupId}:{migrationPluginArtifactId}:{version}'
}
----

It is also recommended to add a direct dependency to liquibase because Spring Boot overrides the one provided by this plugin

[source,groovy,subs="attributes"]
----
dependencies {
...
implementation "org.liquibase:liquibase-core:{liquibaseHibernate5Version}"
implementation "org.liquibase.ext:liquibase-hibernate5:{liquibaseHibernate5Version}"
}
----

You should also tell Gradle about the migrations folder. If using Grails 4 or above, make sure the configuration below is BEFORE the
`dependencies` configuration, so that the `sourceSets` declaration takes effect.

[source,groovy,subs="attributes"]
----
sourceSets {
main {
resources {
srcDir 'grails-app/migrations'
}
}
}
----

*Typical initial workflow*

Next you'll need to create an initial changelog. You can use Liquibase XML or the plugin's Groovy DSL for individual files. You can even mix and match; Groovy files can include other Groovy files and Liquibase XML files (but XML files can't include Groovy files).

Depending on the state of your database and code, you have two options; either create a changelog from the database or create it from your domain classes. The decision tends to be based on whether you prefer to design the database and adjust the domain classes to work with it, or to design your domain classes and use Hibernate to create the corresponding database structure.

To create a changelog from the database, use the <<ref-rollback-scripts-dbm-generate-changelog,dbm-generate-changelog>> script:
[source,groovy]
----
grails dbm-generate-changelog changelog.groovy
----

or

[source,groovy]
----
grails dbm-generate-changelog changelog.xml
----

depending on whether you prefer the Groovy DSL or XML. The filename is relative to the changelog base folder, which defaults to `grails-app/migrations`.

NOTE: If you use the XML format (or use a non-default Groovy filename), be sure to change the name of the file in `application.groovy` so `dbm-update` and other scripts find the file:
[source,groovy]
----
grails.plugin.databasemigration.changelogFileName = 'changelog.xml'
----

Since the database is already correct, run the <<ref-maintenance-scripts-dbm-changelog-sync,dbm-changelog-sync>> script to record that the changes have already been applied:
[source,groovy]
----
grails dbm-changelog-sync
----

Running this script is primarily a no-op except that it records the execution(s) in the Liquibase DATABASECHANGELOG table.

To create a changelog from your domain classes, use the <<ref-rollback-scripts-dbm-generate-gorm-changelog,dbm-generate-gorm-changelog>> script:

[source,groovy]
----
grails dbm-generate-gorm-changelog changelog.groovy
----

or

[source,groovy]
----
grails dbm-generate-gorm-changelog changelog.xml
----

If you haven't created the database yet, run the <<ref-update-scripts-dbm-update,dbm-update>> script to create the corresponding tables:

[source,groovy]
----
grails dbm-update
----

or the <<ref-maintenance-scripts-dbm-changelog-sync,dbm-changelog-sync>> script if the database is already in sync with your code:

[source,groovy]
----
grails dbm-changelog-sync
----

*Source control*

Now you can commit the changelog and the corresponding application code to source control. Other developers can then update and synchronize their databases, and start doing migrations themselves.
25 changes: 25 additions & 0 deletions docs/src/docs/asciidoc/databaseMigration/gorm.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
=== GORM Support

The plugin's support for GORM is one feature that differentiates it from using Liquibase directly. Typically, when using Liquibase you make changes to a database yourself, and then create changesets manually, or use a diff script to compare your updated database to one that hasn't been updated yet. This is a decent amount of work and is rather error-prone. It's easy to forget some changes that aren't required but help performance, for example creating an index on a foreign key when using MySQL.

*create-drop, create, and update*

On the other end of the spectrum, Hibernate's `create-drop` mode (or `create`) will create a database that matches your domain model, but it's destructive since all previous data is lost when it runs. This works well in the very early stages of development but gets frustrating quickly. Unfortunately Hibernate's `update` mode seems like a good compromise since it only makes changes to your existing schema, but it's very limited in what it will do. It's very pessimistic and won't make any changes that could lose data. So it will add new tables and columns, but won't drop anything. If you remove a not-null domain class property you'll find you can't insert anymore since the column is still there. And it will create not-null columns as nullable since otherwise existing data would be invalid. It won't even widen a column e.g. from `VARCHAR(100)` to `VARCHAR(200)`.

*dbm-gorm-diff*

The plugin provides a script that will compare your GORM current domain model with a database that you specify, and the result is a Liquibase changeset - `dbm-gorm-diff`. This is the same changeset you would get if you exported your domain model to a scratch database and diffed it with the other database, but it's more convenient.

So a good workflow would be:

* make whatever domain class changes you need (add new ones, delete unneeded ones, add/change/remove properties, etc.)
* once your tests pass, and you're ready to commit your changes to source control, run the script to generate the changeset that will bring your database back in line with your code
* add the changeset to an existing changelog file, or use the `include` tag to include the whole file
* run the changeset on your functional test database
* assuming your functional tests pass, check everything in as one commit
* the other members of your team will get both the code and database changes when they next update, and will know to run the update script to sync their database with the latest code
* once you're ready to deploy to QA for testing (or staging or production), you can run all the un-run changes since the last deployment

*dbm-generate-gorm-changelog*

The <<ref-rollback-scripts-dbm-generate-gorm-changelog,dbm-generate-gorm-changelog>> script is useful for when you want to switch from `create-drop` mode to doing proper migrations. It's not very useful if you already have a database that's in sync with your code, since you can just use the <<ref-rollback-scripts-dbm-generate-changelog,dbm-generate-changelog>> script that creates a changelog from your database.
Loading
Loading