From 92d25c9f98430ee20b48b76113ee58928ca7d1a4 Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Tue, 12 Oct 2021 02:20:45 +0530 Subject: [PATCH] Update Documentation and remove RELEASE from version * Update section release notes and upgrade notes --- build.gradle | 2 +- docs/build.gradle | 2 +- .../asciidoc/introduction/releaseNotes.adoc | 7 ++-- .../asciidoc/introduction/upgradeNotes.adoc | 32 +++++++++++++++++-- 4 files changed, 35 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index 58f29ec1..c93b0111 100644 --- a/build.gradle +++ b/build.gradle @@ -186,7 +186,7 @@ subprojects { project -> if(isPluginProject) { group "org.grails.plugins" - version( rootProject.version - '.RELEASE' ) + version( rootProject.version ) } else { group "org.grails" diff --git a/docs/build.gradle b/docs/build.gradle index 8e693857..3bc4854e 100644 --- a/docs/build.gradle +++ b/docs/build.gradle @@ -60,7 +60,7 @@ asciidoctor { 'icons' : 'font', 'reproducible' : '', 'version' : project.version, - 'pluginVersion' : project.version - '.RELEASE', + 'pluginVersion' : project.version, 'mongoDriverVersion': mongodbDriverVersion, 'sourcedir' : "${project.rootDir}" } diff --git a/docs/src/docs/asciidoc/introduction/releaseNotes.adoc b/docs/src/docs/asciidoc/introduction/releaseNotes.adoc index 37246f09..b32e05e1 100644 --- a/docs/src/docs/asciidoc/introduction/releaseNotes.adoc +++ b/docs/src/docs/asciidoc/introduction/releaseNotes.adoc @@ -2,9 +2,10 @@ Below are the details of the changes across releases: ==== 7.1 -* Support Groovy 3 -* Upgrade to mongodb-driver-sync 4.0.3 -* Autowire bean by type in the Data Service. +* Support Apache Groovy 3, and Java 14 +* Upgrade to mongodb-driver-sync 4.3.3 +* Autowire bean by type in the Data Service +* Compatible only with Grails 5 ==== 7.0 diff --git a/docs/src/docs/asciidoc/introduction/upgradeNotes.adoc b/docs/src/docs/asciidoc/introduction/upgradeNotes.adoc index 1d8c602f..b9fd5bb0 100644 --- a/docs/src/docs/asciidoc/introduction/upgradeNotes.adoc +++ b/docs/src/docs/asciidoc/introduction/upgradeNotes.adoc @@ -1,5 +1,31 @@ -==== Removal of the RxGORM Module +==== Dependency Upgrades -Due to lack of interest and usage from the community, the RxGORM module for MongoDB has been removed. +GORM 7.1 supports Apache Groovy 3, Java 14, MongoDB Driver 4.3 and Spring 5.3.x. + +Each of these underlying components may have changes that require altering your application. These changes are beyond the scope of this documentation. + +==== Default Autowire By Type inside GORM Data Services + +A Grails Service (or a bean) inside GORM DataService will default to autowire by-type, For example: + +_./grails-app/services/example/BookService.groovy_ +``` +package example + +import grails.gorm.services.Service + +@Service(Book) +abstract class BookService { + + TestService testRepo + + abstract Book save(String title, String author) + + void doSomething() { + assert testRepo != null + } +} +``` + +Please note that with autowire by-type as the default, when multiple beans for same type are found the application with throw Exception. Use the Spring `@Qualifier annotation for https://docs.spring.io/spring-framework/docs/5.3.10/reference/html/core.html#beans-autowired-annotation-qualifiers[Fine-tuning Annotation Based Autowiring with Qualifiers]. -If you use this module you should stick to the 6.1.x line of GORM. \ No newline at end of file