Skip to content
Permalink
Browse files

Release 0.12.1

  • Loading branch information
darkfrog26 committed Oct 26, 2019
1 parent 76b6375 commit d48f744079d69489cfb0024af17324cba6259ee1
Showing with 25 additions and 15 deletions.
  1. +22 −14 build.sbt
  2. +1 −1 client/jvm/src/test/scala/spec/HttpClientSpec.scala
  3. +2 −0 publish.sh
@@ -4,14 +4,14 @@ import sbtcrossproject.CrossType

name := "youi"
organization in ThisBuild := "io.youi"
version in ThisBuild := "0.12.1-SNAPSHOT"
version in ThisBuild := "0.12.1"
scalaVersion in ThisBuild := "2.13.1"
crossScalaVersions in ThisBuild := List("2.13.1", "2.12.10")
resolvers in ThisBuild ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
)
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation", "-feature", "-P:scalajs:sjsDefinedByDefault")
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation", "-feature")

publishTo in ThisBuild := sonatypePublishToBundle.value
sonatypeProfileName in ThisBuild := "io.youi"
@@ -71,7 +71,8 @@ lazy val macros = crossProject(JSPlatform, JVMPlatform).in(file("macros"))
)
)
.jsSettings(
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)

lazy val macrosJS = macros.js
@@ -92,7 +93,8 @@ lazy val core = crossProject(JSPlatform, JVMPlatform).in(file("core"))
.jsSettings(
libraryDependencies ++= Seq(
"org.scala-js" %%% "scalajs-dom" % scalaJSDOM
)
),
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(macros)

@@ -106,6 +108,9 @@ lazy val client = crossProject(JSPlatform, JVMPlatform).in(file("client"))
"org.scalatest" %%% "scalatest" % scalaTestVersion % "test"
)
)
.jsSettings(
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.jvmSettings(
libraryDependencies ++= Seq(
"com.squareup.okhttp3" % "okhttp" % okHttpVersion
@@ -125,7 +130,8 @@ lazy val spatial = crossProject(JSPlatform, JVMPlatform).in(file("spatial"))
)
)
.jsSettings(
jsEnv := new JSDOMNodeJSEnv
jsEnv := new JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(core)

@@ -146,7 +152,8 @@ lazy val dom = project.in(file("dom"))
"com.outr" %% "profig" % profigVersion,
"org.scalatest" %%% "scalatest" % scalaTestVersion % "test"
),
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(coreJS)
.dependsOn(stream % "compile")
@@ -162,7 +169,8 @@ lazy val communication = crossProject(JSPlatform, JVMPlatform)
)
)
.jsSettings(
test := {}
test := {},
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(core)

@@ -201,7 +209,8 @@ lazy val ui = crossProject(JSPlatform, JVMPlatform).in(file("ui"))
"com.outr" %%% "opentype-scala-js" % openTypeVersion,
"com.outr" %%% "pica-scala-js" % picaVersion
),
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(spatial)

@@ -229,7 +238,8 @@ lazy val app = crossProject(JSPlatform, JVMPlatform).in(file("app"))
)
)
.jsSettings(
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.dependsOn(core, communication, ui)

@@ -239,13 +249,11 @@ lazy val appJVM = app.jvm.dependsOn(server)
lazy val example = crossApplication.in(file("example"))
.settings(
name := "youi-example",
youiVersion := version.value,
publishArtifact in (Compile, packageDoc) := false,
publishArtifact in packageDoc := false,
sources in (Compile,doc) := Seq.empty
youiVersion := version.value
)
.jsSettings(
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv
jsEnv := new org.scalajs.jsenv.jsdomnodejs.JSDOMNodeJSEnv,
scalacOptions += "-P:scalajs:sjsDefinedByDefault"
)
.jvmSettings(
scalaJSUseMainModuleInitializer := true,
@@ -38,7 +38,7 @@ class HttpClientSpec extends AsyncWordSpec with Matchers {
callMultiple(5).flatMap { _ =>
calls should be(6)
val elapsed = System.currentTimeMillis() - start
elapsed should be(5000L +- 1000L)
elapsed should be(5000L +- 2500L)
}
}
"call a URL and get a case class back" in {
@@ -1,4 +1,6 @@
#!/usr/bin/env bash

set -e

sbt +clean +test +publishSigned
sbt sonatypeBundleRelease

0 comments on commit d48f744

Please sign in to comment.
You can’t perform that action at this time.