Skip to content

Commit

Permalink
Update for Scalatra 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Jun 8, 2024
1 parent 378156f commit 2c816b8
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 6 deletions.
10 changes: 5 additions & 5 deletions content/guides/3.0/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Scalatra 3.0 Guides
title: Scalatra 3.0 / 3.1 Guides
---

## Outlook
Expand All @@ -8,18 +8,18 @@ title: Scalatra 3.0 Guides
## Supported Versions


Scalatra 3.0 supports Scala 2.12, 2.13 and 3.
Scalatra 3.0 / 3.1 supports Scala 2.12, 2.13 and 3.

Also, Scalatra 3.0 supports both Servlet 4.0.1 (javax) and 5.0.0 (jakarta). Note that the artifact names have suffix depending on Servlet version as follows:
Also, Scalatra 3.0/3.1 supports Servlet 4.0.1 but Scalatra 3.0 supports 5.0.0 while Scalatra 3.1 supports 6.0.0. Note that the artifact names have suffix depending on Servlet version as follows:

```scala
// for javax
// for javax (Servlet 4.0.1)
"org.scalatra" %% "scalatra-javax" % "{{< 3-0-scalatra_version >}}",
"org.scalatra" %% "scalatra-json-javax" % "{{< 3-0-scalatra_version >}}",
"org.scalatra" %% "scalatra-forms-javax" % "{{< 3-0-scalatra_version >}}",
...

// for jakarta
// for jakarta (Servlet 5.0.0/6.0.0)
"org.scalatra" %% "scalatra-jakarta" % "{{< 3-0-scalatra_version >}}",
"org.scalatra" %% "scalatra-json-jakarta" % "{{< 3-0-scalatra_version >}}",
"org.scalatra" %% "scalatra-forms-jakarta" % "{{< 3-0-scalatra_version >}}",
Expand Down
2 changes: 1 addition & 1 deletion content/guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Documentation
---

### Scalatra 3.0.x
### Scalatra 3.0.x / 3.1.x

- [Guides](/guides/3.0/)
- [Scaladoc](http://javadoc.io/doc/org.scalatra/scalatra-unidoc_2.13/3.0.0)
Expand Down
36 changes: 36 additions & 0 deletions content/news/2024-06-08-scalatra-3-1-0-released.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
title: "Scalatra 3.1.0 is out"
layout: news
author: Naoki Takezoe
twitter: takezoen
date: 2024-06-08
---

The Scalatra team is pleased to announce the release of version 3.1.0 of the framework.

<!--more-->

## Scala 3 and Jakarta support

Scalatra 3.1 is compatible with Scalatra 3.0 but supports Servlet 6.0.0 and Jetty 12.0.x.

You need to specify the suffix of artifacts depending on which version you use ervlet 4.0.1 (javax) or 6.0.0 (jakarta):

```scala
// for javax
"org.scalatra" %% "scalatra-javax" % "3.1.0",
"org.scalatra" %% "scalatra-json-javax" % "3.1.0",
"org.scalatra" %% "scalatra-forms-javax" % "3.1.0",
...

// for jakarta
"org.scalatra" %% "scalatra-jakarta" % "3.1.0",
"org.scalatra" %% "scalatra-json-jakarta" % "3.1.0",
"org.scalatra" %% "scalatra-forms-jakarta" % "3.1.0",
...
```

Also, many libraries are upgraded in Scalatra 3.1.0 but there are no code level imcompatibility, so you can still refer to Scalatra 3.0 documentation and examples for Scalatra 3.1.

- [Scalatra 3.0 / 3.1 Guides](https://scalatra.org/guides/3.0/) explain features of Scalatra 3.0 / 3.1 comprehensively
- [Scalatra examples repository](https://github.com/scalatra/scalatra-website-examples) contains many examples for Scalatra 3.0 compatible with Scalatra 3.1
13 changes: 13 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@ <h3>Versions</h3>
</tr>
</thead>
<tbody>
<tr>
<td>3.1.0</td>
<td>Stable</td>
<td><a href="http://github.com/scalatra/scalatra/tree/v3.1.0">3.1.0</td>
<td>
<ul class="scala-versions">
<li>2.12.x</li>
<li>2.13.x</li>
<li>3.3.x</li>
</ul>
</td>
<td>4.0.1 / 6.0.0</td>
</tr>
<tr>
<td>3.0.0</td>
<td>Stable</td>
Expand Down

0 comments on commit 2c816b8

Please sign in to comment.