|
2 | 2 | val `example-project` = ExampleProject.`example-project` |
3 | 3 |
|
4 | 4 | val dottyVersion = "0.27.0-RC1" |
5 | | -val dokkaVersion = "1.4.0" |
6 | | -val kotlinxVersion = "0.7.2" // upgrade when upgrading dokka |
| 5 | +val dokkaVersion = "1.4.10.2" |
7 | 6 | val flexmarkVersion = "0.42.12" |
8 | 7 | val jacksonVersion = "2.9.8" |
9 | 8 | val scalaTagsVersion = "0.9.1" |
10 | | -val dokkaSiteVersion = "0.1.7" |
| 9 | +val dokkaSiteVersion = "0.1.9" |
11 | 10 |
|
12 | 11 | libraryDependencies ++= Seq( |
13 | | - "org.jetbrains.dokka" % "dokka-base" % dokkaVersion, |
14 | | - "org.jetbrains.dokka" % "dokka-core" % dokkaVersion, |
15 | | - "org.jetbrains.dokka" % "dokka-test-api" % dokkaVersion, |
16 | | - "org.jetbrains.kotlinx" % "kotlinx-html-jvm" % kotlinxVersion, |
| 12 | + "org.jetbrains.dokka" % "dokka-test-api" % dokkaVersion % "test", // TODO move testing utils to dokka-site |
17 | 13 | "com.virtuslab.dokka" % "dokka-site" % dokkaSiteVersion, |
18 | 14 |
|
19 | 15 | "ch.epfl.lamp" %% "dotty-tasty-inspector" % dottyVersion, |
@@ -41,30 +37,11 @@ lazy val root = project |
41 | 37 | scalaVersion := dottyVersion |
42 | 38 | ) |
43 | 39 |
|
44 | | - |
45 | | -val dokkaJavaApiJar = file("libs") / "dokkaJavaApi-0.1.1-SNAPSHOT.jar" |
46 | | -val gradleRootDir = file("dokkaJavaApi") |
47 | | - |
48 | | -val buildDokkaApi = taskKey[File]("Compile dokka wrapper and put jar in lib") |
49 | | -buildDokkaApi := { |
50 | | - streams.value.log.info("Building Dokka API with Gradle...") |
51 | | - sys.process.Process(Seq("./gradlew", "build"), gradleRootDir).! |
52 | | - |
53 | | - if (dokkaJavaApiJar.exists()) IO.delete(dokkaJavaApiJar) |
54 | | - IO.move(gradleRootDir / "build" / "libs" / "dokkaJavaApi-0.1.1-SNAPSHOT.jar", dokkaJavaApiJar) |
55 | | - streams.value.log.success(s"Dokka API copied to $dokkaJavaApiJar") |
56 | | - dokkaJavaApiJar |
57 | | -} |
58 | | - |
59 | | -compile.in(Compile) := (compile.in(Compile).dependsOn(buildDokkaApi)).value |
60 | | - |
61 | 40 | val generateSelfDocumentation = inputKey[Unit]("Generate example documentation") |
62 | 41 | generateSelfDocumentation := { |
63 | 42 | run.in(Compile).fullInput(" -o output/self -t target/scala-0.27/classes -d documentation -n scala3doc -s src/main/scala=https://github.com/lampepfl/scala3doc/tree/master/src/main/scala#L").evaluated // TODO #35 proper sbt integration |
64 | 43 | } |
65 | 44 |
|
66 | | -unmanagedJars in Compile += dokkaJavaApiJar |
67 | | - |
68 | 45 | // Uncomment to debug dokka processing (require to run debug in listen mode on 5005 port) |
69 | 46 | // javaOptions.in(run) += "-agentlib:jdwp=transport=dt_socket,server=n,address=localhost:5005,suspend=y" |
70 | 47 |
|
|
0 commit comments