Skip to content

Commit

Permalink
2.0.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
lprimak committed May 31, 2024
1 parent 179a6e1 commit 4cce63f
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 29 deletions.
54 changes: 54 additions & 0 deletions src/site/content/blog/2024/05/apache-shiro-201-released.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
////
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
////

= 2.0.1 available
:jbake-author: Lenny Primak
:jbake-date: 2024-05-30 00:00:00
:jbake-type: post
:jbake-status: published
:jbake-tags: blog, release
:idprefix:
:icons: font

The Apache Shiro team is pleased to announce the release of Apache Shiro version 2.0.1.

This release is available for download now.

== Release Highlights
* Added a supported way to decorate Shiro SecurityManager
* Better compatibility with OSGi for Jakarta EE jakarta namespace
* Fixed exception handling bugs in Jax-Rs integration module
* Fixed a bug in Jakarta Faces integration
* Better compatibility when building with Maven 4.x

== All changes

You can learn more on link:https://github.com/apache/shiro/releases/tag/shiro-root-2.0.1[GitHub, Release 2.0.1].

== Download

Download and verification instructions are available link:/download.html[on our download page].

== Documentation

For more information on link:/documentation.html[Shiro, please read the documentation.]

Enjoy!

The Apache Shiro Team
2 changes: 1 addition & 1 deletion src/site/content/documentation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Apache Shiro ${versions.latestRelease} (link:download.html[Download])

* link:https://javadoc.io/doc/org.apache.shiro[API] (Javadoc - Hosted on javadoc.io)
* link:https://github.com/apache/shiro/tree/shiro-root-${versions.latestRelease}/[Browse Source] (GitHub tag)
* link:static/${versions.latestRelease}/[Maven Static Site]
* link:static/latest/[Maven Static Site]

++++
<@lendahand.lendahand />
Expand Down
6 changes: 4 additions & 2 deletions src/site/data/releases.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
---
# for each release, update this variable with the latest version.
latestRelease: "2.0.0"
latestRelease: "2.0.1"
# for each alpha release, update this variable with the latest alpha version.
# it can be dropped after shiro 2 goes final.
latestAlphaRelease: "2.0.0-alpha-4"

# also add or replace the latest version here.
versionInfo:
'2.0.1':
releaseDate: 2024-05-30
'2.0.0':
releaseDate: 2024-02-28
'1.13.0':
Expand Down Expand Up @@ -305,7 +307,7 @@ releases:
- sha512

shiro20x:
version: 2.0.0
version: 2.0.1
artifacts:
- shiroCore
- shiroWeb
Expand Down
27 changes: 2 additions & 25 deletions src/site/templates/macros/versions.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,7 @@

<#assign artifacts = data.get('artifacts.yaml').artifacts>

<#macro shirov2>
<#assign theDate = .now?date>
<div class="admonitionblock important">
<table>
<tbody>
<tr>
<td class="icon">
<i class="fa icon-important" title="Important"></i>
</td>
<td class="content">
<div class="title">Shiro v2 alpha notice</div>
<div class="paragraph">
<p>As of ${theDate?iso_utc}, this version of Apache Shiro is in Alpha stage.</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</#macro>

<#macro shirov1 sourcepage="" hasv2=false>
<#assign theDate = .now?date>
<div class="admonitionblock tip">
<table>
<tbody>
Expand All @@ -39,11 +17,10 @@
<td class="content">
<div class="title">Shiro v1 version notice</div>
<div class="paragraph">
<p>As of ${theDate?iso_utc}, Shiro v1 will soon be superseded by v2.<p>
<p>As of February 28, 2024, Shiro v1 was superseded by v2.<p>
<#if (sourcepage)?? && (sourcepage)?is_string && (sourcepage) != "" && hasv2 == true>
<#assign target=sourcepage?keep_after_last("/") />
<p>
<a href="./v2/${target}">Read this page in the v2 documentation</a>.
<a href="./v2/${sourcepage}">Read this page in the v2 documentation</a>.
</p>
</#if>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/site/templates/page.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

<#import "macros/versions.ftl" as versions>
<#if (content.uri)?contains("/v2/") || (content.uri)?starts_with("v2/")>
<@versions.shirov2 />
<#else>
<#-- this is a shiro v1 page -->
<#assign hasv2=((content["shiro-hasv2"])?? && (content["shiro-hasv2"]) == "true") />
Expand Down

0 comments on commit 4cce63f

Please sign in to comment.