Closed gabb1er closed 3 months ago
Hello!
I'm using plugin to make a bundle upload with new Sonatype Central API.
The project is build with Java 8 and then sonatypeCentralUpload command throws following exception:
sonatypeCentralUpload
2024-08-12 14:40:01.733Z error [Sonatype] [GENERIC_ERROR] java.nio.file.Path.of(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path; - (Sonatype.scala:494)
I suppose that origin of this error is here: https://github.com/xerial/sbt-sonatype/blob/c0c099bd32574faeb282359ca00b29f7ff5721ab/src/main/scala/xerial/sbt/sonatype/SonatypeCentralService.scala#L19
In build.sbt the target JVM is set to 8, but method of in java.nio.file.Path interface is only available since Java 11.
build.sbt
of
Here's my PR for this - https://github.com/xerial/sbt-sonatype/pull/508
Thanks. Released https://github.com/xerial/sbt-sonatype/releases/tag/v3.11.3 with this fix
Hello!
I'm using plugin to make a bundle upload with new Sonatype Central API.
The project is build with Java 8 and then
sonatypeCentralUpload
command throws following exception:I suppose that origin of this error is here: https://github.com/xerial/sbt-sonatype/blob/c0c099bd32574faeb282359ca00b29f7ff5721ab/src/main/scala/xerial/sbt/sonatype/SonatypeCentralService.scala#L19
In
build.sbt
the target JVM is set to 8, but methodof
in java.nio.file.Path interface is only available since Java 11.