From cf1abee575636ec65e73bbc56321abc8741ecb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Thu, 9 Jan 2025 16:48:35 +0100 Subject: [PATCH] build: Scaladoc JDK links handling breaking build --- project/Common.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Common.scala b/project/Common.scala index 076111417..b90efcef8 100644 --- a/project/Common.scala +++ b/project/Common.scala @@ -100,7 +100,7 @@ object Common extends AutoPlugin { (if (scalaBinaryVersion.value.startsWith("3")) { Seq( s"-external-mappings:https://docs.oracle.com/en/java/javase/${Dependencies.JavaDocLinkVersion}/docs/api/java.base/") - } else if (isJdk17orHigher) { + } else if (isJdk17orHigher && scalaBinaryVersion.value.startsWith("2.13")) { Seq( "-jdk-api-doc-base", s"https://docs.oracle.com/en/java/javase/${Dependencies.JavaDocLinkVersion}/docs/api/java.base/",