From 7429f7835063da95e8f7e9dde5236e08138ae3eb Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Wed, 3 Jul 2024 13:25:28 +0200 Subject: [PATCH 1/3] Added the changelog to readme.adoc from release-notes.adoc --- readme.adoc | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/readme.adoc b/readme.adoc index ae39426..a8e04c5 100644 --- a/readme.adoc +++ b/readme.adoc @@ -53,3 +53,60 @@ jqassistant: <1> Dependency to the Spring plugin <2> Activates the group "spring-boot:Strict". +== Changelog + +=== 2.0.0 + +- Moved Plugin from com.buschmais.jqassistant.plugin (core-Distribution) to org.jqassistant.plugin +- Added concept `spring-security:ConfigurationComponent` to label classes annotated by `@EnableGlobalAuthentication`, `@EnableGlobalMethodSecurity`, +`@EnableReactiveMethodSecurity`, `@EnableWebSecurity`, `@EnableWebFluxSecurity` and `@EnableWebMvcSecurity` as `:Spring:Configuration:Component` +- Extended concepts `spring-transaction:TransactionalClass` and `spring-transaction:TransactionalMethod` to accept JEE/JTA annotation `javax.transaction.@Transactional` + +== 1.12.1 + +- Removed redundant result columns from constraints `spring-injection:BeanProducerMustNotBeInvokedDirectly` and `spring-injection:InjectablesShouldBeHeldInFinalFields` + + +=== 1.12.0 + +- Added concepts `spring-mvc:ControllerAdvice` and `spring-mvc:RestControllerAdvice` +- Improved the constraints `spring-component:ControllerMustOnlyDependOnServicesRepositories`, `spring-component:ServiceMustOnlyDependOnServicesRepositories` and `spring-component:RepositoryMustOnlyDependOnRepositories` to report one row per invalid dependency (https://github.com/jQAssistant/jqa-spring-plugin/issues/42[issue]) +- Fixed false positives for constraint `spring-injection:InjectablesMustOnlyBeHeldInInjectables` for inner classes (https://github.com/jQAssistant/jqa-spring-plugin/issues/41[issue]) +- Improved constraint `spring-injection:InjectablesShouldBeHeldInFinalFields` to return the `Type` declaring the `Field` and `InjectedType` as the injected field type. + +=== 1.10.0 + +- Added constraint `spring-injection:BeanProducerMustNotBeInvokedDirectly` +- Allow dependencies from any Spring component to `@Component` annotated beans +- Defined primary columns for constraint results for better matching in SonarQube +- Excluded generated Java types from Spring constraints, therefore the projects needs to extend the concept `java:GeneratedType` +- Excluded classes in test artifacts from constraint `spring-injection:InjectablesMustOnlyBeHeldInInjectables` + +=== 1.9.0 + +- fixed false-positive constraint violations for constraint `InjectablesMustNotBeInstantiated` for constructors invoking constructors from their super class +- the constraint `spring-injection:FieldsOfInjectablesMustNotBeManipulated` now allows manipulating fields from lifecycle callbacks (`@PostConstruct` and `@PreDestroy`) + +=== 1.8.0 + +- Added meta-annotated Spring annotations to concepts, e.g. `@SpringBootApplication` will be also labeled with `Configuration +- Relaxed the constraint `spring-injection:InjectablesMustNotBeInstantiated` such that instantiation is allowed from either bean producer methods declared by injectables or non-injectables (https://github.com/jQAssistant/jqa-spring-plugin/issues/25[issue]) +- Relaxed the constraint `spring-injection:FieldsOfInjectablesMustNotBeManipulated` such that only fields of injectable types are checked for being written by non-constructor methods (https://github.com/jQAssistant/jqa-spring-plugin/issues/19[issue]) +- The constraints `spring-injection:FieldsOfInjectablesMustNotBeManipulated`, `spring-injection:InjectablesMustNotBeHeldInStaticVariables` and `spring-injection:InjectablesMustNotBeAccessedStatically` are improved such that also fields are considered where injectable types are injected by interfaces or super classes. + +=== 1.7.0 + +- Renamed relation representing virtual dependencies between components + from DEPENDS_ON to VIRTUAL_DEPENDS_ON (https://github.com/buschmais/jqa-spring-plugin/issues/26[issue]) + +=== 1.5.0 + +- Ignore synthetic fields (e.g. generated by Groovy) for injection related constraints + +=== 1.4 + +- Initial checkin + + + + From 11ffd2cf254196a5e11538e52b3c88b15e1bf98d Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Wed, 3 Jul 2024 13:29:35 +0200 Subject: [PATCH 2/3] Added the changelog to readme.adoc from release-notes.adoc --- readme.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.adoc b/readme.adoc index a8e04c5..0270f6a 100644 --- a/readme.adoc +++ b/readme.adoc @@ -62,7 +62,7 @@ jqassistant: `@EnableReactiveMethodSecurity`, `@EnableWebSecurity`, `@EnableWebFluxSecurity` and `@EnableWebMvcSecurity` as `:Spring:Configuration:Component` - Extended concepts `spring-transaction:TransactionalClass` and `spring-transaction:TransactionalMethod` to accept JEE/JTA annotation `javax.transaction.@Transactional` -== 1.12.1 +=== 1.12.1 - Removed redundant result columns from constraints `spring-injection:BeanProducerMustNotBeInvokedDirectly` and `spring-injection:InjectablesShouldBeHeldInFinalFields` From ba9f00e8b6e6056ebb9544a4e6cbfc58564b2fb5 Mon Sep 17 00:00:00 2001 From: Yass Almardoud Date: Wed, 3 Jul 2024 14:00:21 +0200 Subject: [PATCH 3/3] Added the changelog to readme.adoc from release-notes.adoc --- src/main/asciidoc/release-notes.adoc | 58 ---------------------------- 1 file changed, 58 deletions(-) delete mode 100644 src/main/asciidoc/release-notes.adoc diff --git a/src/main/asciidoc/release-notes.adoc b/src/main/asciidoc/release-notes.adoc deleted file mode 100644 index e6cb62a..0000000 --- a/src/main/asciidoc/release-notes.adoc +++ /dev/null @@ -1,58 +0,0 @@ - -= Spring Plugin - -== 2.0.0 - -* Moved Plugin from com.buschmais.jqassistant.plugin (core-Distribution) to org.jqassistant.plugin -* Added concept `spring-security:ConfigurationComponent` to label classes annotated by `@EnableGlobalAuthentication`, `@EnableGlobalMethodSecurity`, -`@EnableReactiveMethodSecurity`, `@EnableWebSecurity`, `@EnableWebFluxSecurity` and `@EnableWebMvcSecurity` as `:Spring:Configuration:Component` -* Extended concepts `spring-transaction:TransactionalClass` and `spring-transaction:TransactionalMethod` to accept JEE/JTA annotation `javax.transaction.@Transactional` - -== 1.12.1 - -* Removed redundant result columns from constraints `spring-injection:BeanProducerMustNotBeInvokedDirectly` and `spring-injection:InjectablesShouldBeHeldInFinalFields` - - -== 1.12.0 - -* Added concepts `spring-mvc:ControllerAdvice` and `spring-mvc:RestControllerAdvice` -* Improved the constraints `spring-component:ControllerMustOnlyDependOnServicesRepositories`, `spring-component:ServiceMustOnlyDependOnServicesRepositories` and `spring-component:RepositoryMustOnlyDependOnRepositories` to report one row per invalid dependency (https://github.com/jQAssistant/jqa-spring-plugin/issues/42[issue]) -* Fixed false positives for constraint `spring-injection:InjectablesMustOnlyBeHeldInInjectables` for inner classes (https://github.com/jQAssistant/jqa-spring-plugin/issues/41[issue]) -* Improved constraint `spring-injection:InjectablesShouldBeHeldInFinalFields` to return the `Type` declaring the `Field` and `InjectedType` as the injected field type. - -== 1.10.0 - -* Added constraint `spring-injection:BeanProducerMustNotBeInvokedDirectly` -* Allow dependencies from any Spring component to `@Component` annotated beans -* Defined primary columns for constraint results for better matching in SonarQube -* Excluded generated Java types from Spring constraints, therefore the projects needs to extend the concept `java:GeneratedType` -* Excluded classes in test artifacts from constraint `spring-injection:InjectablesMustOnlyBeHeldInInjectables` - -== 1.9.0 - -* fixed false-positive constraint violations for constraint `InjectablesMustNotBeInstantiated` for constructors invoking constructors from their super class -* the constraint `spring-injection:FieldsOfInjectablesMustNotBeManipulated` now allows manipulating fields from lifecycle callbacks (`@PostConstruct` and `@PreDestroy`) - -== 1.8.0 - -* Added meta-annotated Spring annotations to concepts, e.g. `@SpringBootApplication` will be also labeled with `Configuration -* Relaxed the constraint `spring-injection:InjectablesMustNotBeInstantiated` such that instantiation is allowed from either bean producer methods declared by injectables or non-injectables (https://github.com/jQAssistant/jqa-spring-plugin/issues/25[issue]) -* Relaxed the constraint `spring-injection:FieldsOfInjectablesMustNotBeManipulated` such that only fields of injectable types are checked for being written by non-constructor methods (https://github.com/jQAssistant/jqa-spring-plugin/issues/19[issue]) -* The constraints `spring-injection:FieldsOfInjectablesMustNotBeManipulated`, `spring-injection:InjectablesMustNotBeHeldInStaticVariables` and `spring-injection:InjectablesMustNotBeAccessedStatically` are improved such that also fields are considered where injectable types are injected by interfaces or super classes. - -== 1.7.0 - -* Renamed relation representing virtual dependencies between components - from DEPENDS_ON to VIRTUAL_DEPENDS_ON (https://github.com/buschmais/jqa-spring-plugin/issues/26[issue]) - -== 1.5.0 - -* Ignore synthetic fields (e.g. generated by Groovy) for injection related constraints - -== 1.4 - -* Initial checkin - - - -