← All tasks
javanetworknt/light-4j #1948Not a task: not reproduced

Dependency in body module seems to be in the wrong scope.

envgap__networknt__light-4j-1948

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
583ff9bf1275b3b3c892800045e90eb4b43350a9
Manifest
body/pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

networknt/light-4j #1948 · read the original issue
# Problem Description

Dependency "com.networknt:status" in the "body" module is set to the default dependency scope **"compile"**. However, it seems that it's only used in the tests with classes [com.networknt.exception.ClientException, com.networknt.status.Status].

```

        <dependency>

            <groupId>com.networknt</groupId>

            <artifactId>status</artifactId>

        </dependency>

```

# Possible Outcome

This brings redundant compile time dependency not only for light-4j, but also for projects using light-4j, resulting in enlarged dependency tree.

# Solution

To fix the problem, i change the dependency scope to test, recompile the module and run the tests. The module is successfully compiled and all tests have passed after the changes.





Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]