Okta SDK 10 needs Spring?

Hi,

I’m trying to move an old project to the okta-sdk-java 10.x but it has Spring 5 compile dependencies (see below).
This is not reported in the release notes (Release 10.0.0 · okta/okta-sdk-java · GitHub) nir in the migration guide (okta-sdk-java/MIGRATING.md at master · okta/okta-sdk-java · GitHub).

Can I use the SDK without Spring?

Thanks,

Gualtiero

OKTA-SDK-API 10.2.2 dependency tree

± com.okta.sdk:okta-sdk-api:jar:10.2.2:compile
[INFO] | ± com.okta.commons:okta-config-check:jar:1.3.3:compile
[INFO] | ± com.okta.commons:okta-http-api:jar:1.3.3:compile
[INFO] | ± com.okta.commons:okta-commons-lang:jar:1.3.3:compile
[INFO] | ± org.slf4j:slf4j-api:jar:2.0.6:compile
[INFO] | ± io.swagger:swagger-annotations:jar:1.6.8:compile
[INFO] | ± com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | ± org.springframework:spring-web:jar:5.3.23:compile
[INFO] | | ± org.springframework:spring-beans:jar:5.3.23:compile
[INFO] | | - org.springframework:spring-core:jar:5.3.23:compile
[INFO] | | - org.springframework:spring-jcl:jar:5.3.23:compile
[INFO] | ± org.springframework:spring-context:jar:5.3.23:compile
[INFO] | | ± org.springframework:spring-aop:jar:5.3.23:compile
[INFO] | | - org.springframework:spring-expression:jar:5.3.23:compile
[INFO] | ± org.springframework.retry:spring-retry:jar:1.3.3:compile…
…interrupted…

OKTA-SDK-API 8.2.3 dependency tree

± com.okta.sdk:okta-sdk-api:jar:8.2.3:compile
[INFO] | ± com.okta.commons:okta-config-check:jar:1.3.3:compile
[INFO] | ± com.okta.commons:okta-http-api:jar:1.3.3:compile
[INFO] | ± com.okta.commons:okta-commons-lang:jar:1.3.3:compile
[INFO] | - org.slf4j:slf4j-api:jar:2.0.6:compile
[INFO] - com.okta.sdk:okta-sdk-impl:jar:8.2.3:runtime
[INFO] ± com.fasterxml.jackson.core:jackson-databind:jar:2.14.2:runtime
[INFO] | ± com.fasterxml.jackson.core:jackson-annotations:jar:2.14.2:runtime
[INFO] | - com.fasterxml.jackson.core:jackson-core:jar:2.14.2:runtime
[INFO] ± org.yaml:snakeyaml:jar:1.33:runtime
[INFO] ± org.bouncycastle:bcprov-jdk15on:jar:1.70:runtime
[INFO] ± org.bouncycastle:bcpkix-jdk15on:jar:1.70:runtime
[INFO] | - org.bouncycastle:bcutil-jdk15on:jar:1.70:runtime
[INFO] ± io.jsonwebtoken:jjwt-api:jar:0.11.5:runtime
[INFO] ± io.jsonwebtoken:jjwt-impl:jar:0.11.5:runtime
[INFO] - io.jsonwebtoken:jjwt-jackson:jar:0.11.5:runtime

Hi @gualtiero,

Those dependencies have been removed in the latest release.

1 Like

Many thanks, Regis. I’ve just changed my pom.xml file :smiley: