Skip to content

Commit 9f4647e

Browse files
xinlian12Copilot
andcommitted
fix: skip Scala compilation on JDK < 17 for fabric-cosmos-spark-auth_4-0_2-13
Set cosmos.spark.skip=true for JDK < 17, matching the pattern used by azure-cosmos-spark_4-0_2-13 and azure-cosmos-spark_4-1_2-13. This flows through maven.main.skip to skip both the Java compiler (maven-compiler-plugin) and the Scala compiler (scala-maven-plugin), which supports maven.main.skip. Without this, the scala-maven-plugin attempts to compile with -release 17 on JDK 8/11, causing build failures. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 57ba2de commit 9f4647e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13

sdk/cosmos/fabric-cosmos-spark-auth_4-0_2-13/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,16 @@
533533
</build>
534534
</profile>
535535

536-
<!-- Library cannot build for Java 16 and below -->
536+
<!-- Skip build and tests for Java < 17 - Spark 4.0 dependencies require Java 17+ -->
537537
<profile>
538538
<id>java8</id>
539539
<activation>
540540
<jdk>[,17)</jdk>
541541
</activation>
542+
<properties>
543+
<cosmos.spark.skip>true</cosmos.spark.skip>
544+
<skipTests>true</skipTests>
545+
</properties>
542546
<build>
543547
<plugins>
544548
<plugin>

0 commit comments

Comments
 (0)