Skip to content
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

Merge 6.2.x into 7.0.x #919

Merged
merged 25 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
91478a0
Fix simple typo (#886)
jeffscottbrown Jan 9, 2024
0f1e201
docs: Change wrong info about controller default scope (#885)
matrei Jan 10, 2024
2686eb4
[skip ci] Release v6.1.2 docs
puneetbehl Jan 30, 2024
a11b26a
Document new CLI command "create-job" (#887)
guillermocalvo Feb 2, 2024
a93ea63
Update multipleDatasources.adoc
kovacicluka Mar 27, 2024
38376a5
feat(java): baseline to java 17 (#901)
puneetbehl Apr 19, 2024
d99008f
Update creatingCustomCommands.adoc
johan313 Jun 22, 2024
0da43fe
Merge pull request #903 from johan313/patch-1
matrei Aug 11, 2024
c0dca29
update in preparation for Grails 6.2.1 release and update to Gradle 7…
jamesfredley Oct 3, 2024
fe38d14
go back to Gradle 7.6.1
jamesfredley Oct 3, 2024
81dd5a3
update to Gradle 7.6.4
jamesfredley Oct 3, 2024
2f53cd7
[skip ci] Release v6.2.1 docs
puneetbehl Oct 3, 2024
1c0769a
final version cleanup
jamesfredley Oct 4, 2024
8cf2969
Merge pull request #913 from grails/release-6.2.1
jeffscottbrown Oct 4, 2024
64ed1b4
Update what's included in Grails 6.2.1
jamesfredley Oct 4, 2024
967dee1
Merge pull request #914 from grails/update-whats-included-6.2.1
jamesfredley Oct 4, 2024
0c0228d
[skip ci] Release vupdate what's included docs
puneetbehl Oct 4, 2024
812e104
Update to 6.2.2-SNAPSHOT
jamesfredley Oct 7, 2024
839b387
Merge pull request #888 from kovacicluka/patch-1
jamesfredley Nov 11, 2024
ca01ab7
Update chainedTransactionManager configuration documentation
jamesfredley Nov 11, 2024
7ef951b
Merge pull request #916 from grails/update-chainedTransactionManager-…
jamesfredley Nov 11, 2024
6c68ed6
Merge branch '6.1.x' into 6.2.x
jamesfredley Nov 11, 2024
1fee37d
Revert "docs: Change wrong info about controller default scope (#885)"
jamesfredley Nov 11, 2024
d1cc2c0
Merge pull request #918 from grails/merge-6.1.x-into-6.2.x
jamesfredley Nov 11, 2024
3511dab
Merge branch '6.2.x' into 7.0.x
jamesfredley Nov 11, 2024
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
6 changes: 3 additions & 3 deletions src/en/guide/commandLine/creatingCustomCommands.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To create a custom command, you need to create a Groovy class that implements th
// grails-app/commands/com/example/GreetCommand.groovy
package com.example
import grails.cli.GrailsApplicationCommand
import grails.dev.commands.GrailsApplicationCommand
class GreetCommand implements GrailsApplicationCommand {
Expand Down Expand Up @@ -91,7 +91,7 @@ Grails also supports command-line arguments and options for custom commands. You
// grails-app/commands/com/example/GreetCommand.groovy
package com.example
import grails.cli.GrailsApplicationCommand
import grails.dev.commands.GrailsApplicationCommand
class GreetCommand implements GrailsApplicationCommand {
Expand Down Expand Up @@ -155,7 +155,7 @@ Here's an example of how you can create a custom command that uses the execution
// grails-app/commands/com/example/BackupCommand.groovy
package com.example
import grails.cli.GrailsApplicationCommand
import grails.dev.commands.GrailsApplicationCommand
class BackupCommand implements GrailsApplicationCommand {
Expand Down
6 changes: 3 additions & 3 deletions src/en/guide/conf/dataSource/multipleDatasources.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ If you have a `Foo` domain class in `dataSource1` and a `Bar` domain class in `d

Grails does not by default try to handle transactions that span multiple data sources.

You can enable Grails to use the Best Effort 1PC pattern for handling transactions across multiple datasources. To do so you must set the `grails.transaction.chainedTransactionManagerPostProcessor.enabled` setting to `true` in `application.yml`:
You can enable Grails to use the Best Effort 1PC pattern for handling transactions across multiple datasources. To do so you must set the `grails.transaction.chainedTransactionManager.enabled` setting to `true` in `application.yml`:

[source,yaml]
----
grails:
transaction:
chainedTransactionManagerPostProcessor:
chainedTransactionManager:
enabled: true
----

Expand All @@ -272,7 +272,7 @@ You can exclude transaction manager beans from the BE1PC implementation with thi
----
grails:
transaction:
chainedTransactionManagerPostProcessor:
chainedTransactionManager:
enabled: true
blacklistPattern: '.*'
----
Expand Down
16 changes: 8 additions & 8 deletions src/en/guide/introduction/whatsNew/dependencyUpgrades.adoc
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Grails {version} ships with the following dependency upgrades:

* Groovy 3.0.11
* Micronaut 3
* Micronaut for Spring 4
* GORM 8
* Spring Framework 5.3
* Spring Boot 2.7
* Gradle 7.6.1
* Groovy 3.0.21
* Micronaut 3.10.4
* Micronaut for Spring 4.5.1
* GORM 8.1.2
* Spring Framework 5.3.39
* Spring Boot 2.7.18
* Gradle 7.6.4
* Spock 2.1-groovy-3.0
* Grails Testing Support 3
* Grails Testing Support 3.2.1
31 changes: 31 additions & 0 deletions src/en/ref/Command Line/create-job.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
== create-job

=== Purpose


The `create-job` command creates a new scheduled job for the given base name.


=== Examples

----
grails create-job Scheduled
grails create-job com.example.Scheduled
----

=== Description


Creates a new Quartz scheduled job with an empty 'execute' method. The argument is required.

The name of the job can include a Java package, such as `com.example` in the last example above, but if one is not provided a default is used. So the first example will create the file `grails-app/jobs/<appname>/ScheduledJob.groovy` whereas the second one will create `grails-app/jobs/com/example/ScheduledJob.groovy`. Note that the first letter of the job name is always upper-cased when determining the class name.

If you want the command to default to a different package for jobs, provide a value for `grails.project.groupId` in the link:{guidePath}/conf.html#config[runtime configuration].

Note that this command is just for convenience and you can also create jobs in your favourite text editor or IDE if you choose.

Usage:
[source,groovy]
----
grails create-job <<name>>
----
Loading