Skip to content

Commit

Permalink
Update mill-main to 0.11.0 (#335)
Browse files Browse the repository at this point in the history
- mill
- scalafmt
- improve sttp network request handling
- prepare release 5.7.0
  • Loading branch information
ex0ns authored Jun 9, 2023
1 parent 795a0e4 commit d55fc8d
Show file tree
Hide file tree
Showing 17 changed files with 153 additions and 153 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Check code format
uses: jrouly/scalafmt-native-action@v1
with:
version: "3.7.1"
version: "3.7.4"
arguments: "-c .scalafmt.conf --test core akka examples"
- uses: jodersky/[email protected]
with:
mill-version: 0.10.12
mill-version: 0.11.0
- name: Compile
run: mill '_._[_].compile'
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v2
- uses: jodersky/[email protected]
with:
mill-version: 0.10.12
mill-version: 0.11.0
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: actions/checkout@v2
- uses: jodersky/[email protected]
with:
mill-version: 0.10.12
mill-version: 0.11.0
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
Expand Down
2 changes: 1 addition & 1 deletion .mill-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.12
0.11.0
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.7.1"
version = "3.7.4"
maxColumn = 120

runner.dialect = scala213
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<p align="center">
<a href="https://core.telegram.org/bots/api#recent-changes" title="Telegram Bot API">
<img src="https://img.shields.io/badge/Bot%20API-6.1%20(June%2020%2C%202022)-00aced.svg"/>
<img src="https://img.shields.io/badge/Bot%20API-6.6%20(March%209,%202023)-00aced.svg"/>
</a>
<a href="https://t.me/bot4s_updates" title="Bot4s Telegram Channel">
<img src="https://img.shields.io/badge/💬%20Channel-Bot4s-00aced.svg"/>
Expand All @@ -34,7 +34,6 @@

</p>
<p align="center">
<span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/bot4s.telegram" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-orange.svg" alt="Buy Me A Coffee donate button" /></a></span>
<a href="http://www.apache.org/licenses/LICENSE-2.0.html" title="License">
<img src="https://img.shields.io/badge/license-Apache%202-blue.svg"/>
</a>
Expand Down Expand Up @@ -68,17 +67,17 @@ Add to your `build.sbt` file:

```scala
// Core with minimal dependencies, enough to spawn your first bot.
libraryDependencies += "com.bot4s" %% "telegram-core" % "5.6.4"
libraryDependencies += "com.bot4s" %% "telegram-core" % "5.7.0"

// Extra goodies: Webhooks, support for games, bindings for actors.
libraryDependencies += "com.bot4s" %% "telegram-akka" % "5.6.4"
libraryDependencies += "com.bot4s" %% "telegram-akka" % "5.7.0"
```

For [mill](https://com-lihaoyi.github.io/mill) add to your `build.sc` project deps:

```scala
ivy"com.bot4s::telegram-core:5.6.4", // core
ivy"com.bot4s::telegram-akka:5.6.4" // extra goodies
ivy"com.bot4s::telegram-core:5.7.0", // core
ivy"com.bot4s::telegram-akka:5.7.0" // extra goodies
```

## Leaking bot tokens
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import concurrent.duration._

class AkkaHttpMarshallingSuite extends AnyFunSuite with ScalatestRouteTest with Matchers with TestUtils {

implicit def defaultTimeout = RouteTestTimeout(5.seconds)
implicit def defaultTimeout: RouteTestTimeout = RouteTestTimeout(5.seconds)

test("Correctly serialize top-level string members in Akka multipart requests") {
val captionWithLineBreak = "this is a line\nand then\t another line"
Expand Down
Loading

0 comments on commit d55fc8d

Please sign in to comment.