IBM / ibm-cos-sdk-java

ibm-cos-sdk-java
Apache License 2.0
32 stars 24 forks source link

Make library JPMS compatible #62

Open JohannesRabauer opened 11 months ago

JohannesRabauer commented 11 months ago

Currently i can't use the library in my project which uses JPMS (module-info.java) because of the error message:

module xy reads package com.ibm.cloud.objectstorage.auth from both ibm.cos.java.sdk.core and ibm.cos.java.sdk.s3

I'm using Maven with Java 11.

pom.xml:

...
    <dependencies>
        <dependency>
            <groupId>com.ibm.cos</groupId>
            <artifactId>ibm-cos-java-sdk-core</artifactId>
            <version>2.13.2</version>
        </dependency>
        <dependency>
            <groupId>com.ibm.cos</groupId>
            <artifactId>ibm-cos-java-sdk-s3</artifactId>
            <version>2.13.2</version>
        </dependency>
    </dependencies>
...

module-info.java:

module xy
{
...
    requires ibm.cos.java.sdk.core;
    requires ibm.cos.java.sdk.s3;
...
}

As i understand it, the problem occurs because the package com.ibm.cloud.objectstorage.auth exists in both dependencies ibm.cos.java.sdk.core and ``ibm.cos.java.sdk.s3```. This should be fixed to be compatible to JPMS.

IBMalok commented 11 months ago

Thanks for reporting. Opened the internal ticket, and someone from the team will take a look.