Skip to content

Commit

Permalink
Added support for Java 21.
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Jan 8, 2024
1 parent 79c6541 commit c6b64b7
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 37 deletions.
20 changes: 10 additions & 10 deletions Jenkinsfile
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy
/*
* ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
* Copyright (C) 2021, 2022, 2023 AO Industries, Inc.
* Copyright (C) 2021, 2022, 2023, 2024 AO Industries, Inc.
* support@aoindustries.com
* 7262 Bull Pen Cir
* Mobile, AL 36695
Expand Down Expand Up @@ -62,14 +62,14 @@ def upstreamProjects = [
* Variables that may be defined above this block: *
* *
* deployJdk The version of JDK that will be used for the deploy stage. *
* Defaults to '20' *
* Defaults to '21' *
* *
* buildJdks The array of JDK versions that will build. *
* Defaults to ['11', '17', '20'] *
* Defaults to ['11', '17', '21'] *
* Changes must be copied to matrix axes! *
* *
* testJdks The array of JDK versions that will test against every build JDK. *
* Defaults to ['11', '17', '20'] *
* Defaults to ['11', '17', '21'] *
* Changes must be copied to matrix axes! *
* *
* upstreamProjects The array of relative paths to upstream projects. *
Expand Down Expand Up @@ -155,18 +155,18 @@ def upstreamProjects = [

// JDK versions
if (!binding.hasVariable('deployJdk')) {
binding.setVariable('deployJdk', '20')
binding.setVariable('deployJdk', '21')
}
if (!binding.hasVariable('buildJdks')) {
binding.setVariable(
'buildJdks',
['11', '17', '20'] // Changes must be copied to matrix axes!
['11', '17', '21'] // Changes must be copied to matrix axes!
)
}
if (!binding.hasVariable('testJdks')) {
binding.setVariable(
'testJdks',
['11', '17', '20'] // Changes must be copied to matrix axes!
['11', '17', '21'] // Changes must be copied to matrix axes!
)
}
if (!binding.hasVariable('upstreamProjects')) {
Expand Down Expand Up @@ -796,7 +796,7 @@ or any build that adds or removes build artifacts."""
axes {
axis {
name 'jdk'
values '11', '17', '20' // buildJdks
values '11', '17', '21' // buildJdks
}
}
stages {
Expand Down Expand Up @@ -842,11 +842,11 @@ or any build that adds or removes build artifacts."""
axes {
axis {
name 'jdk'
values '11', '17', '20' // buildJdks
values '11', '17', '21' // buildJdks
}
axis {
name 'testJdk'
values '11', '17', '20' // testJdks
values '11', '17', '21' // testJdks
}
}
stages {
Expand Down
20 changes: 10 additions & 10 deletions book/Jenkinsfile
@@ -1,7 +1,7 @@
#!/usr/bin/env groovy
/*
* ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
* Copyright (C) 2021, 2022, 2023 AO Industries, Inc.
* Copyright (C) 2021, 2022, 2023, 2024 AO Industries, Inc.
* support@aoindustries.com
* 7262 Bull Pen Cir
* Mobile, AL 36695
Expand Down Expand Up @@ -61,14 +61,14 @@ def upstreamProjects = [
* Variables that may be defined above this block: *
* *
* deployJdk The version of JDK that will be used for the deploy stage. *
* Defaults to '20' *
* Defaults to '21' *
* *
* buildJdks The array of JDK versions that will build. *
* Defaults to ['11', '17', '20'] *
* Defaults to ['11', '17', '21'] *
* Changes must be copied to matrix axes! *
* *
* testJdks The array of JDK versions that will test against every build JDK. *
* Defaults to ['11', '17', '20'] *
* Defaults to ['11', '17', '21'] *
* Changes must be copied to matrix axes! *
* *
* upstreamProjects The array of relative paths to upstream projects. *
Expand Down Expand Up @@ -154,18 +154,18 @@ def upstreamProjects = [

// JDK versions
if (!binding.hasVariable('deployJdk')) {
binding.setVariable('deployJdk', '20')
binding.setVariable('deployJdk', '21')
}
if (!binding.hasVariable('buildJdks')) {
binding.setVariable(
'buildJdks',
['11', '17', '20'] // Changes must be copied to matrix axes!
['11', '17', '21'] // Changes must be copied to matrix axes!
)
}
if (!binding.hasVariable('testJdks')) {
binding.setVariable(
'testJdks',
['11', '17', '20'] // Changes must be copied to matrix axes!
['11', '17', '21'] // Changes must be copied to matrix axes!
)
}
if (!binding.hasVariable('upstreamProjects')) {
Expand Down Expand Up @@ -795,7 +795,7 @@ or any build that adds or removes build artifacts."""
axes {
axis {
name 'jdk'
values '11', '17', '20' // buildJdks
values '11', '17', '21' // buildJdks
}
}
stages {
Expand Down Expand Up @@ -841,11 +841,11 @@ or any build that adds or removes build artifacts."""
axes {
axis {
name 'jdk'
values '11', '17', '20' // buildJdks
values '11', '17', '21' // buildJdks
}
axis {
name 'testJdk'
values '11', '17', '20' // testJdks
values '11', '17', '21' // testJdks
}
}
stages {
Expand Down
6 changes: 3 additions & 3 deletions book/pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 AO Industries, Inc.
support@aoindustries.com
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -29,7 +29,7 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<groupId>com.aoapps</groupId><artifactId>ao-badges-book</artifactId><version>1.10.1-POST-SNAPSHOT</version>
<groupId>com.aoapps</groupId><artifactId>ao-badges-book</artifactId><version>1.11.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down Expand Up @@ -169,7 +169,7 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
<dependencies>
<!-- Direct -->
<dependency>
<groupId>com.aoapps</groupId><artifactId>ao-badges</artifactId><version>1.10.1${POST-SNAPSHOT}</version>
<groupId>com.aoapps</groupId><artifactId>ao-badges</artifactId><version>1.11.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.aoapps</groupId><artifactId>ao-taglib</artifactId><version>8.0.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023, 2024 AO Industries, Inc.
support@aoindustries.com
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -33,7 +33,7 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
<core:page
title="Badge Reference"
datePublished="2017-07-17T17:00:17-05:00"
dateModified="2023-09-24T19:14:00Z"
dateModified="2024-01-08T00:08:41Z"
>
<!-- TODO: Links in section labels to /life-cycle.jspx -->
<section:section label="Project Management">
Expand Down Expand Up @@ -348,12 +348,20 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
</tr>
<tr>
<td>
<ao:a rel="nofollow" href="https://openjdk.org/projects/jdk/21/">
<ao:img src="/ao-badges/java-21.svg" width="78" height="20" alt="java: >= 21" />
<ao:a rel="nofollow" href="https://docs.oracle.com/en/java/javase/21/">
<ao:img src="/ao-badges/java-20.svg" width="78" height="20" alt="java: >= 21" />
</ao:a>
</td>
<td><code>arg.javaseVersion="21"</code></td>
</tr>
<tr>
<td>
<ao:a rel="nofollow" href="https://openjdk.org/projects/jdk/22/">
<ao:img src="/ao-badges/java-22.svg" width="78" height="20" alt="java: >= 22" />
</ao:a>
</td>
<td><code>arg.javaseVersion="22"</code></td>
</tr>
<tr>
<td>
<ao:a rel="nofollow" href="https://docs.oracle.com/en/java/javase/">
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023, 2024 AO Industries, Inc.
support@aoindustries.com
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -37,7 +37,7 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
shortTitle="Changelog"
tocLevels="1"
datePublished="2017-07-15T16:36:26-05:00"
dateModified="2023-08-02T17:32:59Z"
dateModified="2024-01-08T00:08:41Z"
>
<c:set var="latestRelease" value="1.10.1" />
<c:if test="${
Expand All @@ -52,7 +52,17 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
artifactId="@{documented.artifactId}"
repository="@{nexusUrl}content/repositories/snapshots/"
scmUrl="@{project.scm.url}"
/>
>
<ul>
<li>Java updates:
<ol>
<li>Java 20 is now end-of-life</li>
<li>Java 21 is now current stable</li>
<li>Java 22 is new beta</li>
</ol>
</li>
</ul>
</changelog:release>
</c:if>

<changelog:release
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 AO Industries, Inc.
support@aoindustries.com
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -29,7 +29,7 @@ along with ao-badges. If not, see <https://www.gnu.org/licenses/>.
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>com.aoapps</groupId><artifactId>ao-badges</artifactId><version>1.10.1-POST-SNAPSHOT</version>
<groupId>com.aoapps</groupId><artifactId>ao-badges</artifactId><version>1.11.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
ao-badges - Badges from shields.io bundled into a reusable JSP-based web component.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
Copyright (C) 2017, 2019, 2020, 2021, 2022, 2023, 2024 AO Industries, Inc.
support@aoindustries.com
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -37,7 +37,7 @@ Arguments:
Must be one of "developmental", "active", "unsupported"
arg.javaseVersion (Optional) The minimum Java™ SE version.
Must be one of "1.5", "5", "1.6", "6", "1.7", "7", "1.8", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21"
Must be one of "1.5", "5", "1.6", "6", "1.7", "7", "1.8", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22"
arg.javaeeVersion (Optional) The minimum Java™ EE version.
Must be one of "5", "6", "7"
Expand Down Expand Up @@ -306,10 +306,15 @@ Arguments:
</ao:a>
</ao:when>
<ao:when test="#{arg.javaseVersion == '21'}">
<ao:a rel="nofollow" href="https://openjdk.org/projects/jdk/21/">
<ao:a rel="nofollow" href="https://docs.oracle.com/en/java/javase/21/">
<ao:img src="/ao-badges/java-21.svg" width="78" height="20" alt="java: >= 21" />
</ao:a>
</ao:when>
<ao:when test="#{arg.javaseVersion == '22'}">
<ao:a rel="nofollow" href="https://openjdk.org/projects/jdk/22/">
<ao:img src="/ao-badges/java-22.svg" width="78" height="20" alt="java: >= 22" />
</ao:a>
</ao:when>
<ao:otherwise>
<ao:a rel="nofollow" href="https://docs.oracle.com/en/java/javase/">
<ao:img src="/ao-badges/java-unknown.svg" width="94" height="20" alt="java: unknown" />
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c6b64b7

Please sign in to comment.