Skip to content

Commit

Permalink
Fix ref doc - ignore setting project version to avoid error during re…
Browse files Browse the repository at this point in the history
…leases
  • Loading branch information
lwronski committed Aug 8, 2023
1 parent 13861e3 commit 64ae707
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import java.nio.charset.StandardCharsets
import java.util

import scala.build.info.{ArtifactId, BuildInfo, ExportDependencyFormat, ScopedBuildInfo}
import scala.build.internal.Constants
import scala.build.options.{BuildOptions, BuildRequirements, WithBuildRequirements}
import scala.build.preprocessing.directives.DirectiveHandler
import scala.build.preprocessing.directives.DirectivesPreprocessingUtils.*
import scala.cli.commands.{ScalaCommand, SpecificationLevel, tags}
import scala.cli.doc.ReferenceDocUtils.*
import scala.cli.util.ArgHelpers.*
import scala.cli.{ScalaCli, ScalaCliCommands}

object GenerateReferenceDoc extends CaseApp[InternalDocOptions] {

implicit class PBUtils(sb: StringBuilder) {
Expand Down Expand Up @@ -562,7 +562,8 @@ object GenerateReferenceDoc extends CaseApp[InternalDocOptions] {
scalaJsVersion = None,
jsEsVersion = None,
scalaNativeVersion = None,
mainClass = Some("Main")
mainClass = Some("Main"),
projectVersion = None
)
.withScope("main", mainScopedBuildInfo)
.withScope("test", testScopedBuildInfo)
Expand Down
2 changes: 1 addition & 1 deletion website/docs/reference/build-info.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ object BuildInfo {
/** Main class specified for the project */
val mainClass = Some("Main")
/** Project version */
val projectVersion = Some("1.0.3-SNAPSHOT")
val projectVersion = None

/** Information about the Main scope */
object Main {
Expand Down

0 comments on commit 64ae707

Please sign in to comment.