Repository navigation
Releases: mavenplugins/maven-cdi-plugin-utils
Releases · mavenplugins/maven-cdi-plugin-utils
Release list
v4.0.2 maven-cdi-plugin-utils
Release Notes - mavenplugins/maven-cdi-plugin-utils
4.0.2
Summary
- Remove vulnerability warnings due to guava dependency:
- Update dependency to guava version
33.4.0-jre->33.5.0-jre
- Update dependency to guava version
- Simplify WorkFlow reading and fix unit testing - #22
- Fix workflow parsing:
- add missing reset of
parallelStepBuilderafter parallel block closing - raise
RuntimeExceptionif there is a parallel-block within a finally-block
- add missing reset of
🐛 Fixes
- Fix workflow parsing:
- add missing reset of
parallelStepBuilderafter parallel block closing - raise
RuntimeExceptionif there is a parallel-block within a finally-block
- add missing reset of
📢 Deprecated
InputStream WorkflowUtil.getWorkflowDescriptor(String, PluginDescriptor, Optional, Logger)- replace by
List<String> WorkflowUtil.getTrimmedWorkflowLines(String, PluginDescriptor, Optional, Logger)
- replace by
ProcessingWorkflow WorkflowUtil.parseWorkflow(InputStream, String)
- replace by
ProcessingWorkflow WorkflowUtil.parseWorkflow(List, String)
- replace by
🔒 Security
- Fix security warning on
GitHub Actionsof this project
📦 Updates
- pom.xml:
- Update dependency
com.google.guava:guava:33.4.0-jre->com.google.guava:guava:33.5.0-jre
- Update dependency
🚦 Tests
- fix test data resource names for
testValidate_error(String workflowName) - fix content of
invalid/try-finally_noFinallyBlock
🔧 Internal Changes
-
WorkflowUtil.java:
- deprecated method
InputStream WorkflowUtil.getWorkflowDescriptor(String, PluginDescriptor, Optional, Logger)- replace by
List<String> WorkflowUtil.getTrimmedWorkflowLines(String, PluginDescriptor, Optional, Logger)
- replace by
- deprecate method
ProcessingWorkflow WorkflowUtil.parseWorkflow(InputStream, String)- replace by
ProcessingWorkflow WorkflowUtil.parseWorkflow(List, String)
- replace by
- update code to make use of these replacing methods
- fix parseWorkflow(...):
- add missing reset of
parallelStepBuilderafter parallel block closing - raise
RuntimeExceptionif there is a parallel-block within a finally-block
- add missing reset of
- deprecated method
-
WorkflowValidator.java:
- fix void
validateSyntactically(List<String> trimmedWorkflowLines)unbalanced try-blocks / closing finally-blocks - fix
boolean validateFinallyBlockOpening(String line)
- fix void
-
AbstractCDIMojo.java:
- simplify method
ProcessingWorkflow getWorkflow()making use of methods replacing deprecated ones
- simplify method
-
WorkflowUtilTest.java:
- update code to make use of methods replacing deprecated ones
- add
testParseWorkflow_WorkflowNotExisting()
-
WorkflowValidatorTest.java:
- update code to make use of methods replacing deprecated ones
- fix test data resource names for
testValidate_error(String workflowName)
v4.0.1 maven-cdi-plugin-utils
Release Notes - mavenplugins/maven-cdi-plugin-utils
4.0.1
Summary
- Remove vulnerability warnings due to guava dependency:
- Update dependency to guava version
19.0->33.4.0-jre - Update dependency to junit version
4.12->4.13.2 - Update dependency to junit-dataprovider version
1.10.3->1.13.1 - Update dependency to asciitable version
0.2.5->0.3.2 - Update dependency to slf4j version
1.7.21->1.7.36
- Update dependency to guava version
- No further functional change
🔒 Security
- Fix vulnerability warning on
guavadependency
📦 Updates
-
pom.xml:
- Update dependency
com.google.guava:guava:19.0->com.google.guava:guava:33.4.0-jre - Update dependency
junit:junit:4.12->junit:junit:4.13.2 - Update dependency
com.tngtech.java:junit-dataprovider:1.10.3->com.tngtech.java:junit-dataprovider:1.13.1 - Update dependency
de.vandermeer:asciitable:0.2.5->de.vandermeer:asciitable:0.3.2 - Update dependency
org.slf4j:slf4j-simple:1.7.21->org.slf4j:slf4j-api:1.7.36
- Update dependency
-
CDIUtil.java:
- update usage of deprecated/removed guava API
Files.fileTreeTraverser().preOrderTraversal(folder)
toFiles.fileTraverser().depthFirstPreOrder(folder)
- update usage of deprecated/removed guava API
-
WorkflowUtil.java:
- extract ASCII table rendering from method
printAvailableSteps(Map<String, ProcessingStep> steps, Logger log)
to methodrenderAvailableSteps(Map<String, ProcessingStep> steps)
- extract ASCII table rendering from method
-
WorkflowUtilTest.java:
- add test for
WorkflowUtil.renderAvailableSteps(Map<String, ProcessingStep> steps)
- add test for
-
WorkflowValidatorTest.java:
- Fix for junit deprecation warning raised due to junit version update
v4.0.0 maven-cdi-plugin-utils
Release Notes - mavenplugins/maven-cdi-plugin-utils
4.0.0
Summary
- Work for Java 8, 11, 17, 21 by using CDI WELD 4.0.3.Final with Jakarta Inject API
- CDI dependencies migrated from Javax to Jakarta EE (see Compatibility below)
- Extend the workflow execution to handle an
EnforceRollbackWithoutErrorException
to abort the workflow with a rollback of previous actions but with Maven success.
This is supposed for test purpose only - #4
Compatibility
- 👉 This release requires to migrate components depending on it, since CDI dependencies did have been changed from Javax to Jakarta EE!
Updates
-
EnforceRollbackWithoutErrorException.java:
- added
-
WorkflowExecutor.java:
- handle EnforceRollbackWithoutErrorException to:
- perform a rollback like in an error case
- end normal without re-throwing this exception
- handle EnforceRollbackWithoutErrorException to:
-
AbstractCDIMojo.java,
MojoInject.java,
MojoProduces.java,
CdiBeanWrapper.java,
CdiProducerBean.java,
CDIUtil.java,
MavenLogWrapper.java:- migrate from Javax to Jakarta EE injection
v3.4.1 maven-cdi-plugin-utils
Release Notes - mavenplugins/maven-cdi-plugin-utils
3.4.1
Summary
- Update requirements:
- JDK 1.8 or higher
- Apache Maven 3.3.9 or higher
- Improve and precise Maven dependencies
- Fix JavaDoc warning
Updates
-
pom.xml:
- update version.java 1.7 -> 1.8
- update version.maven 3.2.1 -> 3.3.9
- update version.weld-se 2.3.3.Final -> 2.4.8.Final
- remove obsolete explicit dependencies
- change dependency scope to
providedfor:- maven-core
- maven-plugin-annotations
-
CDIUtil.java:
- fix JavaDoc warnings
-
README.md:
- Update requirements:
- JDK 1.8
- Apache Maven 3.3.9 or higher
- Update requirements:
v3.4.0 maven-cdi-plugin-utils
Release Notes - mavenplugins/maven-cdi-plugin-utils
3.4.0
Summary
- Initial release of this artifact with new groupId
io.github.mavenplugins - Codewise identical with
com.itemis.maven.plugins:cdi-plugin-utils:3.4.0
No more features nor changes - Released to Maven Central