diff --git a/src/en/guide/commandLine/creatingCustomCommands.adoc b/src/en/guide/commandLine/creatingCustomCommands.adoc index 36e5c93c3a..973f6ee32f 100644 --- a/src/en/guide/commandLine/creatingCustomCommands.adoc +++ b/src/en/guide/commandLine/creatingCustomCommands.adoc @@ -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 { @@ -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 { @@ -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 { diff --git a/src/en/guide/conf/dataSource/multipleDatasources.adoc b/src/en/guide/conf/dataSource/multipleDatasources.adoc index 9430853b87..83906e4e52 100644 --- a/src/en/guide/conf/dataSource/multipleDatasources.adoc +++ b/src/en/guide/conf/dataSource/multipleDatasources.adoc @@ -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 ---- @@ -272,7 +272,7 @@ You can exclude transaction manager beans from the BE1PC implementation with thi ---- grails: transaction: - chainedTransactionManagerPostProcessor: + chainedTransactionManager: enabled: true blacklistPattern: '.*' ---- diff --git a/src/en/guide/introduction/whatsNew/dependencyUpgrades.adoc b/src/en/guide/introduction/whatsNew/dependencyUpgrades.adoc index 49f195aaad..4d21573add 100644 --- a/src/en/guide/introduction/whatsNew/dependencyUpgrades.adoc +++ b/src/en/guide/introduction/whatsNew/dependencyUpgrades.adoc @@ -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 diff --git a/src/en/ref/Command Line/create-job.adoc b/src/en/ref/Command Line/create-job.adoc new file mode 100644 index 0000000000..10bb2e3c88 --- /dev/null +++ b/src/en/ref/Command Line/create-job.adoc @@ -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//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 <> +----