Skip to content

change in dependencency scope from compile to runtime causing compilation errors in maven #762

@ColinShorts

Description

@ColinShorts

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

We noticed compilation errors in one of our work projects after v2.22.0 that seem to resolve around a change in the scope for org.jetbrains:annotations from compile to runtime. The dependency version numbers haven't changed at all, just the scope.

v2.22.0;

[INFO] +- com.auth0:auth0:jar:2.22.0:compile
[INFO] |  +- com.squareup.okhttp3:okhttp:jar:4.12.0:compile
[INFO] |  +- com.squareup.okio:okio:jar:3.5.0:compile
[INFO] |  |  \- com.squareup.okio:okio-jvm:jar:3.5.0:compile
[INFO] |  |     \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.25:compile
[INFO] |  +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.9.25:compile
[INFO] |  |  \- org.jetbrains:annotations:jar:13.0:compile
[INFO] |  +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.9.25:compile
[INFO] |  |  \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.9.25:compile
[INFO] |  +- com.squareup.okhttp3:logging-interceptor:jar:4.12.0:compile
[INFO] |  \- net.jodah:failsafe:jar:2.4.4:compile

and v2.24.0 (v.2.23.0 is identical);

[INFO] +- com.auth0:auth0:jar:2.24.0:compile
[INFO] |  +- com.squareup.okhttp3:okhttp:jar:4.12.0:runtime
[INFO] |  +- com.squareup.okio:okio:jar:3.5.0:runtime
[INFO] |  |  \- com.squareup.okio:okio-jvm:jar:3.5.0:runtime
[INFO] |  |     \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.9.25:runtime
[INFO] |  +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.9.25:runtime
[INFO] |  |  \- org.jetbrains:annotations:jar:13.0:runtime
[INFO] |  +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.9.25:runtime
[INFO] |  |  \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.9.25:runtime
[INFO] |  +- com.squareup.okhttp3:logging-interceptor:jar:4.12.0:runtime
[INFO] |  \- net.jodah:failsafe:jar:2.4.4:runtime

Reproduction

I can't share the project that's causing the problem, but I can reproduce it on our CI/CD pipelines or locally.

v2.22.0 works, updating to v2.23.0 or v2.24.0 introduces the scope change and compilation fails due to org.jetbrains:annotations.

Additional context

Adding org.jetbrains:annotations as a maven dependency in our project resolves the issue, but I'm not sure that this is the best approach.

auth0-java version

=v2.23.0

Java version

openjdk version "21.0.9-ea" 2025-10-21

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions