Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven build breaks due to non existing transitive dependencies in vck 5.0.0 #144

Open
kstudent opened this issue Oct 8, 2024 · 1 comment

Comments

@kstudent
Copy link

kstudent commented Oct 8, 2024

I can't include vck 5.0.0 in a maven project because maven cant resolve the following dependencies:

$ mvn clean install
...
The following artifacts could not be resolved:
- io.matthewnelson.encoding:core:jar:null (absent)
- io.matthewnelson.encoding:base16:jar:null (absent)
- io.matthewnelson.encoding:base64:jar:null (absent)

Those dependencies are transitive via vck / openid-data-classes:

$ mvn dependency:tree
...
[INFO] +- at.asitplus.wallet:vck-openid-jvm:jar:5.0.0:compile
[INFO] |  \- at.asitplus.wallet:openid-data-classes-jvm:jar:5.0.0:compile
[INFO] |     +- io.matthewnelson.encoding:core:jar:null:compile
[INFO] |     +- io.matthewnelson.encoding:base16:jar:null:compile
[INFO] |     \- io.matthewnelson.encoding:base64:jar:null:compil
...

My guess is that the version of the encoding artifacts is absent in gradle-conventions-plugin:

https://github.com/a-sit-plus/vck/blob/release/5.0.0/openid-data-classes/build.gradle.kts:

api("io.matthewnelson.encoding:core:${AspVersions.versions["encoding"]}")
api("io.matthewnelson.encoding:base16:${AspVersions.versions["encoding"]}")
api("io.matthewnelson.encoding:base64:${AspVersions.versions["encoding"]}")

https://github.com/a-sit-plus/gradle-conventions-plugin/blob/3f1fe1b97a8fda7e1877379148755b42b4c8b0f6/legacy/src/main/resources/versions.properties

Current Workarround: Exclude dependencies and include them directly with a specified version.

<dependency>
      <groupId>at.asitplus.wallet</groupId>
      <artifactId>vck-jvm</artifactId>
      <exclusions>
        <exclusion>
          <groupId>io.matthewnelson.encoding</groupId>
          <artifactId>core</artifactId>
        </exclusion>
        <exclusion>
          <groupId>io.matthewnelson.encoding</groupId>
          <artifactId>base64</artifactId>
        </exclusion>
        <exclusion>
          <groupId>io.matthewnelson.encoding</groupId>
          <artifactId>base16</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
@JesusMcCloud
Copy link
Collaborator

It's a bug with the publishing plugin and there's nothing we can do to fix it, but report it upstream.
@n0900, please post your maven workaround here (it works with gradle).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants