Skip to content

Commit

Permalink
Github package publishing hooray
Browse files Browse the repository at this point in the history
  • Loading branch information
hntd187 committed Oct 14, 2020
1 parent 4d34a11 commit 91227b7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
23 changes: 12 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ import org.scalajs.jsenv.selenium.SeleniumJSEnv
import sbtcrossproject.CrossPlugin.autoImport.{CrossType, crossProject}

lazy val scalalibraryVersion = "2.13.3"
lazy val scalatestVersion = "3.2.1"
lazy val sttpVersion = "2.2.5"
lazy val scalatestVersion = "3.2.2"
lazy val sttpVersion = "2.2.9"
lazy val circeVersion = "0.13.0"
lazy val scribeVersion = "2.7.12"
lazy val scribeVersion = "2.8.3"

scalaVersion := scalalibraryVersion
releaseIgnoreUntrackedFiles := true
ThisBuild / turbo := true
publish / skip := true
Global / onChangedBuildSource := ReloadOnSourceChanges
ThisBuild / githubOwner := "hntd187"
ThisBuild / githubRepository := "spotify"
ThisBuild / githubTokenSource := TokenSource.GitConfig("github.token")

lazy val browserTestSettings = Seq(
jsEnv in Test := {
Expand All @@ -29,8 +32,7 @@ lazy val common = Seq(
scalafmtOnCompile in ThisBuild := true,
parallelExecution in Test := false,
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://www.github.com/hntd187/spotify")),
bintrayPackageLabels := Seq("spotify", "music"),
homepage := Some(url("https://www.github.com/hntd187/spotify")),
scalacOptions ++= Seq(
"-feature",
"-encoding",
Expand Down Expand Up @@ -74,17 +76,16 @@ lazy val example = project
.in(file("example-scalajs-app"))
.settings(common)
.settings(
name := "example-app",
scalaVersion := scalalibraryVersion,
scalaJSUseMainModuleInitializer := true,
name := "example-app",
scalaVersion := scalalibraryVersion,
scalacOptions += "-P:scalajs:sjsDefinedByDefault",
scalaJSLinkerConfig ~= { _.withESFeatures(_.withUseECMAScript2015(true)) },
mainClass in Compile := Some("io.scarman.spotify.ExampleApp"),
resolvers += Resolver.jcenterRepo,
libraryDependencies ++= Seq(
"com.lihaoyi" %%% "scalatags" % "0.9.1"
),
test in Test := {}
publish / skip := true,
test in Test := {}
// Disabled for now until updated
// localUrl := ("localhost", 8080),
// workbenchDefaultRootObject := Some(("example-scalajs-app/", "example-scalajs-app/")),
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.3.13
sbt.version = 1.4.0
16 changes: 8 additions & 8 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
libraryDependencies += "org.scala-js" %% "scalajs-env-selenium" % "1.0.0"

addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.7")
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.6")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.1")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1")
addSbtPlugin("org.scoverage" % "sbt-coveralls" % "1.2.7")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.2.1")
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.2.0")
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.2")
//addSbtPlugin("com.lihaoyi" % "workbench" % "0.4.1")

0 comments on commit 91227b7

Please sign in to comment.