diff --git a/build.sbt b/build.sbt index c17fd3c00bc..941ad38d997 100644 --- a/build.sbt +++ b/build.sbt @@ -6,7 +6,7 @@ 2. You've checked "Make project before run" */ -import sbt.Def +import sbt.{Compile, Def} import sbt.Keys.{concurrentRestrictions, _} Global / onChangedBuildSource := ReloadOnSourceChanges @@ -20,6 +20,7 @@ lazy val lang = libraryDependencies ++= Dependencies.lang.value ++ Dependencies.test, inConfig(Compile)( Seq( + sourceGenerators += Tasks.docSource, PB.targets += scalapb.gen(flatPackage = true) -> sourceManaged.value, PB.protoSources += PB.externalIncludePath.value, PB.generate / includeFilter := { (f: File) => @@ -40,9 +41,6 @@ lazy val `lang-jvm` = lang.jvm lazy val `lang-js` = lang.js .enablePlugins(VersionObject) - .settings( - Compile / sourceGenerators += Tasks.docSource - ) lazy val `lang-testkit` = project .dependsOn(`lang-jvm`) @@ -54,17 +52,6 @@ lazy val `lang-testkit` = project lazy val `lang-tests` = project .in(file("lang/tests")) .dependsOn(`lang-testkit`) - .settings( - Compile / sourceGenerators += Tasks.docSource - ) - -lazy val `lang-doc` = project - .in(file("lang/doc")) - .dependsOn(`lang-jvm`) - .settings( - Compile / sourceGenerators += Tasks.docSource, - libraryDependencies ++= Seq("com.github.spullara.mustache.java" % "compiler" % "0.9.10") ++ Dependencies.test - ) lazy val node = project.dependsOn(`lang-jvm`, `lang-testkit` % "test") diff --git a/lang/doc/src/main/scala/com/wavesplatform/utils/DocExport.scala b/lang/doc/src/main/scala/com/wavesplatform/utils/DocExport.scala deleted file mode 100644 index 011050cfd0b..00000000000 --- a/lang/doc/src/main/scala/com/wavesplatform/utils/DocExport.scala +++ /dev/null @@ -1,186 +0,0 @@ -package com.wavesplatform.utils - -import com.github.mustachejava._ -import com.wavesplatform.DocSource -import com.wavesplatform.common.utils.EitherExt2 -import com.wavesplatform.lang.directives.values._ -import com.wavesplatform.lang.directives.{DirectiveDictionary, DirectiveSet} -import com.wavesplatform.lang.v1.CTX -import com.wavesplatform.lang.v1.compiler.Types._ -import com.wavesplatform.lang.v1.traits.Environment -import com.wavesplatform.utils.doc.RideFullContext - -import scala.jdk.CollectionConverters._ - -object DocExport { - def main(args: Array[String]): Unit = { - if (args.size != 4 || args(0) != "--gen-doc") { - System.err.println("Expected args: --gen-doc