Java 11 Support?

The Quickstart claims that the Java SDK supports Java version 8 or later but unfortunately the io.apimatic dependencies require 1.8 - at least as far as I can tell because I get unresolved dependency errors when trying to use Java 11. Is this a typo in the documentation or is there a way around this? Thxs.

Hmm, the team just went through the Quickstart with java version 17 and it worked. What dependency error are you getting? :slightly_smiling_face:

I assumed as much but can’t get past these errors when building with sbt 1.5.8 and java 11:

[error] sbt.librarymanagement.ResolveException: Error downloading org.apache.maven.reporting:maven-reporting-api:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven.reporting/maven-reporting-api/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api/${project.prerequisites.maven}/maven-reporting-api-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/reporting/maven-reporting-api/${project.prerequisites.maven}/maven-reporting-api-${project.prerequisites.maven}.pom
[error] Error downloading org.apache.maven:maven-core:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven/maven-core/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/maven-core/${project.prerequisites.maven}/maven-core-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/maven-core/${project.prerequisites.maven}/maven-core-${project.prerequisites.maven}.pom
[error] Error downloading org.apache.maven:maven-plugin-api:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven/maven-plugin-api/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/${project.prerequisites.maven}/maven-plugin-api-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/maven-plugin-api/${project.prerequisites.maven}/maven-plugin-api-${project.prerequisites.maven}.pom
[error] 	at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:258)
[error] 	at lmcoursier.CoursierDependencyResolution.$anonfun$update$38(CoursierDependencyResolution.scala:227)
[error] 	at scala.util.Either$LeftProjection.map(Either.scala:573)
[error] 	at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:227)
[error] 	at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error] 	at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:59)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:133)
[error] 	at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:73)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:146)
[error] 	at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:146)
[error] 	at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:127)
[error] 	at sbt.util.Tracked$.$anonfun$inputChangedW$1(Tracked.scala:219)
[error] 	at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:160)
[error] 	at sbt.Classpaths$.$anonfun$updateTask0$1(Defaults.scala:3678)
[error] 	at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error] 	at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error] 	at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error] 	at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error] 	at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error] 	at sbt.Execute.work(Execute.scala:291)
[error] 	at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error] 	at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error] 	at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
[error] 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[error] 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[error] 	at java.base/java.lang.Thread.run(Thread.java:834)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.apache.maven.reporting:maven-reporting-api:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven.reporting/maven-reporting-api/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/reporting/maven-reporting-api/${project.prerequisites.maven}/maven-reporting-api-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/reporting/maven-reporting-api/${project.prerequisites.maven}/maven-reporting-api-${project.prerequisites.maven}.pom
[error] Error downloading org.apache.maven:maven-core:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven/maven-core/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/maven-core/${project.prerequisites.maven}/maven-core-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/maven-core/${project.prerequisites.maven}/maven-core-${project.prerequisites.maven}.pom
[error] Error downloading org.apache.maven:maven-plugin-api:${project.prerequisites.maven}
[error]   Not found
[error]   Not found
[error]   not found: /Users/mike/.ivy2/localorg.apache.maven/maven-plugin-api/${project.prerequisites.maven}/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/${project.prerequisites.maven}/maven-plugin-api-${project.prerequisites.maven}.pom
[error]   not found: https://oss.sonatype.org/content/repositories/snapshots/org/apache/maven/maven-plugin-api/${project.prerequisites.maven}/maven-plugin-api-${project.prerequisites.maven}.pom

It actually looks like I misread and its maven dependencies rather than the apimatic dependencies. I should note I am using the newest release:
“com.squareup” % “square” % “26.0.0.20221116”,

Hey Bryan - forgive my ignorance as it appears that the root of the issue is that sbt is not able to expand the prerequisite maven version for the maven plugins - rather than a Java version issue. I misunderstood <required> in the pom file. However, still at a loss as to why.

Is the maven version your using the supported version? :slightly_smiling_face:

I am not actually setting a maven version. I just get the dependency resolution error as soon as I add the square java sdk as a dependency to my project. It is possible that adding the project.prerequisites.maven variable to the square-java-sdk pom.xml would resolve the issue. I am trying to figure out how to set it in my project - as a workaround. What is the minimum maven version required for the square-java-sdk?

Looks like this issue logged on Github is somewhat related. Is anyone able to use the Java SDK with something other than Maven?