Skip to content

Commit

Permalink
0.8.2, bump uPickle to 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Apr 29, 2022
1 parent ec3706c commit d6ef66a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CaskMainModule(val crossScalaVersion: String) extends CaskModule {
def ivyDeps = T{
Agg(
ivy"io.undertow:undertow-core:2.2.3.Final",
ivy"com.lihaoyi::upickle:1.3.13"
ivy"com.lihaoyi::upickle:1.6.0"

This comment has been minimized.

Copy link
@AndyRandy

AndyRandy Sep 15, 2022

Hi Li (@lihaoyi),
thank you a lot for your great contribution to the community with scala-cask <3.

I guess this change had caused breaking changes.

On version 0.8.1 I could use @cask.staticResources in order to provide a static webpage with javascript support.
From version 0.8.2 the webpage does not work anymore.
Problem was that on earlier version the "Content-Type" header was not set.
From version 0.8.2 however the "Content-Type" is set to "application/octet-stream" or the like.

I could fix that by setting the "Content-Type" header to "".
E.g.: @cask.staticResources("/my/path/", resourceRoot = getClass.getClassLoader, headers = Seq("Content-Type" -> ""))

PS: maybe this comment may help others with similiar issues

) ++
(if(!isDotty) Agg(ivy"org.scala-lang:scala-reflect:${scalaVersion()}") else Agg())
}
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ courtesy of EJ Technologies

## Changelog


### 0.8.2

- Bump uPickle to 1.6.0

### 0.8.1

- Publish Cask for Scala 2.12 again
Expand Down

0 comments on commit d6ef66a

Please sign in to comment.