Skip to content

Commit fa16dd6

Browse files
committed
Fix InvocationTargetException in ScalaDoc gen
This sbt command was failing with an `InvocationTargetException`: ``` +aws-s3-sdk-v2 / Compile / doc ``` ...the 'doc' command is invoked during release, so we need it to work! This is a known issue: scala/scala3#15288 See also scanamo/scanamo#1643, which looks like it fixed the issue by downgrading to Scala 3.2.0. Weirdly, this fix did not seem to work for me when I tried it here.
1 parent 6066477 commit fa16dd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ def awsS3WithSdkVersion(version: Int)=
2626
libraryDependencies ++= Seq(
2727
awsSdkForVersion(version),
2828
"com.adobe.testing" % "s3mock-testcontainers" % "3.0.1" % Test
29-
)
29+
),
30+
Compile / doc / sources := // https://github.com/lampepfl/dotty/issues/15288, see also https://github.com/scanamo/scanamo/pull/1643
31+
{ if (scalaVersion.value.startsWith("3.")) Nil else (Compile / doc / sources).value }
3032
)
3133

3234
val awsSdkForVersion = Map(

0 commit comments

Comments
 (0)