Skip to content

Commit

Permalink
use scala binary version. (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
khajavi authored Jan 6, 2023
1 parent 15b82bc commit 341a317
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions zio-sbt-website/src/main/scala/zio/sbt/WebsitePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ object WebsitePlugin extends sbt.AutoPlugin {

override def requires: Plugins = MdocPlugin && UnifiedScaladocPlugin

private def artifactVersion(version: String): String = {
val array = version.split('.')
if (array.head != "3") {
array.dropRight(1).mkString(".")
} else "3"
}

override lazy val projectSettings: Seq[Setting[_ <: Object]] =
Seq(
compileDocs := compileDocsTask.evaluated,
Expand Down Expand Up @@ -115,7 +108,7 @@ object WebsitePlugin extends sbt.AutoPlugin {
projectStage = badge.projectStage,
groupId = organization.value,
artifactId = badge.artifact,
docsArtifactId = moduleName.value + '_' + artifactVersion(scalaVersion.value),
docsArtifactId = moduleName.value + '_' + scalaBinaryVersion.value,
githubUser = "zio",
githubRepo =
scmInfo.value.map(_.browseUrl.getPath.split('/').last).getOrElse("github repo not provided"),
Expand Down

0 comments on commit 341a317

Please sign in to comment.