Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-7535

Issue with java modules when using drools-core

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.44.0.Final
    • 8.40.0.Final, 8.41.0.Final, 8.42.0.Final, 8.43.0.Final
    • None
    • None
    • 2023 Week 33-35 (from Aug 14)
    • Hide

      I created a minimal Project to reproduce this issue:

      https://github.com/aschi/drools-dependency-issue-example

      You can amend the drools version in build.gradle and then try to build it using

      ./gradlew clean build
      

      I tested the following versions

      • 8.37.0.Final -> Build successful
      • 8.39.0.Final -> Build successful
      • 8.40.0.Final -> Build does not work
      • 8.42.0.Final -> Build does not work
      • 8.43.0.Final -> Build does not work

       

      Show
      I created a minimal Project to reproduce this issue: https://github.com/aschi/drools-dependency-issue-example You can amend the drools version in build.gradle and then try to build it using ./gradlew clean build I tested the following versions 8.37.0.Final -> Build successful 8.39.0.Final -> Build successful 8.40.0.Final -> Build does not work 8.42.0.Final -> Build does not work 8.43.0.Final -> Build does not work  
    • NEW
    • NEW
    • ---
    • ---

      We are using drools-core as a dependency in our java project. Starting from drools version 8.40.0.Final we are no longer able to build our project due to a package conflict.

      When we try to build our project with the new drools version we get the following error message:

      .../module-info.java:1: error: module xxx reads package org.drools.core.base from both org.drools.core and org.drools.util

      As far as I understand this is an issue with the newly moved (or created) CoercionUtil in drools-util-8.40.0.Final.jar. As it is currently configured, every jar is its own "Automatic-Module" and the java package org.drools.core.base is now in the modules org.drools.core and org.drools.util.

            mfusco@redhat.com Mario Fusco
            aschii Adrian Schmid (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: