Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deployment configuration cleanup
  • Loading branch information
ddworak committed Aug 26, 2021
commit 03b18206f9df4b371608f3beaa0a82b749f21eac
31 changes: 17 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name := "udash-jquery"

inThisBuild(Seq(
version := sys.env.get("TRAVIS_TAG").filter(_.startsWith("v")).map(_.drop(1)).getOrElse("3.0.0-SNAPSHOT"),
version := "3.1.0-SNAPSHOT",
organization := "io.udash",
cancelable := true,
))

val commonSettings = Seq(
Expand All @@ -25,8 +24,22 @@ val commonSettings = Seq(
"-Ycache-plugin-class-loader:last-modified",
"-Ycache-macro-class-loader:last-modified",
),
autoAPIMappings := true,
)

val commonJSSettings = Seq(
Test / scalaJSStage := FastOptStage,
Test / requireJsDomEnv := true,
npmExtraArgs += "--silent",
scalacOptions += {
val localDir = (ThisBuild / baseDirectory).value.toURI.toString
val githubDir = "https://raw.githubusercontent.com/UdashFramework/scala-js-jquery"
s"-P:scalajs:mapSourceURI:$localDir->$githubDir/v${version.value}/"
},
)

val deploymentConfiguration = Seq(
publishMavenStyle := true,
Test / publishArtifact := false,
pomIncludeRepository := { _ => false },

publishTo := sonatypePublishToBundle.value,
Expand Down Expand Up @@ -61,22 +74,12 @@ val commonSettings = Seq(
}
)

val commonJSSettings = Seq(
Test / scalaJSStage := FastOptStage,
Test / requireJsDomEnv := true,
npmExtraArgs += "--silent",
scalacOptions += {
val localDir = (ThisBuild / baseDirectory).value.toURI.toString
val githubDir = "https://raw.githubusercontent.com/UdashFramework/scala-js-jquery"
s"-P:scalajs:mapSourceURI:$localDir->$githubDir/v${version.value}/"
},
)

lazy val root = project.in(file("."))
.enablePlugins(ScalaJSBundlerPlugin, JSDependenciesPlugin)
.settings(
commonSettings,
commonJSSettings,
deploymentConfiguration,

libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % "1.2.0",
Expand Down
Binary file removed travis/travis.gpg.enc
Binary file not shown.