Skip to content

Releases: mavenplugins/maven-cdi-plugin-utils

v4.0.2 maven-cdi-plugin-utils

Choose a tag to compare

@github-actions github-actions released this 26 Sep 22:20

Release Notes - mavenplugins/maven-cdi-plugin-utils

4.0.2

4.0.2 Badge

Summary

  • Remove vulnerability warnings due to guava dependency:
    • Update dependency to guava version 33.4.0-jre -> 33.5.0-jre
  • Simplify WorkFlow reading and fix unit testing - #22
  • Fix workflow parsing:
    • add missing reset of parallelStepBuilder after parallel block closing
    • raise RuntimeException if there is a parallel-block within a finally-block

🐛 Fixes

  • Fix workflow parsing:
    • add missing reset of parallelStepBuilder after parallel block closing
    • raise RuntimeException if there is a parallel-block within a finally-block

📢 Deprecated

  • InputStream WorkflowUtil.getWorkflowDescriptor(String, PluginDescriptor, Optional, Logger)
    • replace by List<String> WorkflowUtil.getTrimmedWorkflowLines(String, PluginDescriptor, Optional, Logger)
  • ProcessingWorkflow WorkflowUtil.parseWorkflow(InputStream, String)
    • replace by ProcessingWorkflow WorkflowUtil.parseWorkflow(List, String)

🔒 Security

  • Fix security warning on GitHub Actions of this project

📦 Updates

  • pom.xml:
    • Update dependency com.google.guava:guava:33.4.0-jre -> com.google.guava:guava:33.5.0-jre

🚦 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)
    • deprecate method ProcessingWorkflow WorkflowUtil.parseWorkflow(InputStream, String)
      • replace by ProcessingWorkflow WorkflowUtil.parseWorkflow(List, String)
    • update code to make use of these replacing methods
    • fix parseWorkflow(...):
      • add missing reset of parallelStepBuilder after parallel block closing
      • raise RuntimeException if there is a parallel-block within a finally-block
  • WorkflowValidator.java:

    • fix void validateSyntactically(List<String> trimmedWorkflowLines) unbalanced try-blocks / closing finally-blocks
    • fix boolean validateFinallyBlockOpening(String line)
  • AbstractCDIMojo.java:

    • simplify method ProcessingWorkflow getWorkflow() making use of methods replacing deprecated ones
  • 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

Choose a tag to compare

@github-actions github-actions released this 23 Feb 22:42

Release Notes - mavenplugins/maven-cdi-plugin-utils

4.0.1

4.0.1 Badge

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
  • No further functional change

🔒 Security

  • Fix vulnerability warning on guava dependency

📦 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
  • CDIUtil.java:

    • update usage of deprecated/removed guava API Files.fileTreeTraverser().preOrderTraversal(folder)
      to Files.fileTraverser().depthFirstPreOrder(folder)
  • WorkflowUtil.java:

    • extract ASCII table rendering from method printAvailableSteps(Map<String, ProcessingStep> steps, Logger log)
      to method renderAvailableSteps(Map<String, ProcessingStep> steps)
  • WorkflowUtilTest.java:

    • add test for WorkflowUtil.renderAvailableSteps(Map<String, ProcessingStep> steps)
  • WorkflowValidatorTest.java:

    • Fix for junit deprecation warning raised due to junit version update

v4.0.0 maven-cdi-plugin-utils

Choose a tag to compare

@github-actions github-actions released this 05 Jul 09:07

Release Notes - mavenplugins/maven-cdi-plugin-utils

4.0.0

4.0.0 Badge

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
  • 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

Choose a tag to compare

@github-actions github-actions released this 28 Apr 18:57

Release Notes - mavenplugins/maven-cdi-plugin-utils

3.4.1

3.4.1 Badge

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 provided for:
      • maven-core
      • maven-plugin-annotations
  • CDIUtil.java:

    • fix JavaDoc warnings
  • README.md:

    • Update requirements:
      • JDK 1.8
      • Apache Maven 3.3.9 or higher

v3.4.0 maven-cdi-plugin-utils

Choose a tag to compare

@github-actions github-actions released this 19 Nov 22:42

Release Notes - mavenplugins/maven-cdi-plugin-utils

3.4.0

3.4.0 Badge

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