Skip to content

Commit

Permalink
Use versionless features (#422)
Browse files Browse the repository at this point in the history
* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* use versionless feature

Signed-off-by: Gilbert Kwan <[email protected]>

* Update mpData.js

---------

Signed-off-by: Gilbert Kwan <[email protected]>
  • Loading branch information
gkwan-ibm authored Jan 31, 2025
1 parent 383fc73 commit 39f7283
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 34 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
canSkip: ${{ steps.Checker.outputs.canSkip }}
steps:
- name: Get files
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Get tools
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: tools/
repository: openliberty/guides-common
Expand Down Expand Up @@ -46,10 +46,11 @@ jobs:
run:
working-directory: finish
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'semeru'
java-version: 11
- run: unset _JAVA_OPTIONS
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion finish/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>6.1</version>
<version>7.0</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand Down
18 changes: 10 additions & 8 deletions finish/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<server description="Sample Liberty server">
<!-- tag::features[] -->
<featureManager>
<feature>restfulWS-3.1</feature>
<feature>jsonp-2.1</feature>
<feature>jsonb-3.0</feature>
<feature>cdi-4.0</feature>
<feature>mpMetrics-5.1</feature>
<platform>jakartaee-10.0</platform>
<platform>microprofile-7.0</platform>
<feature>restfulWS</feature>
<feature>jsonp</feature>
<feature>jsonb</feature>
<feature>cdi</feature>
<!-- tag::mpHealth[] -->
<feature>mpHealth-4.0</feature>
<feature>mpHealth</feature>
<!-- end::mpHealth[] -->
<feature>mpConfig-3.1</feature>
<feature>mpConfig</feature>
<feature>mpMetrics</feature>
</featureManager>
<!-- end::features[] -->

Expand All @@ -25,7 +27,7 @@
<logging traceSpecification="com.ibm.ws.microprofile.health.*=all" />
<!-- end::logging[] -->

<httpEndpoint host="*" httpPort="${http.port}"
<httpEndpoint host="*" httpPort="${http.port}"
httpsPort="${https.port}" id="defaultHttpEndpoint"/>

<variable name="io_openliberty_guides_system_inMaintenance" value="false"/>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
18 changes: 10 additions & 8 deletions staging/server.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<server description="Sample Liberty server">
<!-- tag::features[] -->
<featureManager>
<feature>restfulWS-3.1</feature>
<feature>jsonp-2.1</feature>
<feature>jsonb-3.0</feature>
<feature>cdi-4.0</feature>
<feature>mpMetrics-5.1</feature>
<platform>jakartaee-10.0</platform>
<platform>microprofile-7.0</platform>
<feature>restfulWS</feature>
<feature>jsonp</feature>
<feature>jsonb</feature>
<feature>cdi</feature>
<!-- tag::mpHealth[] -->
<feature>mpHealth-4.0</feature>
<feature>mpHealth</feature>
<!-- end::mpHealth[] -->
<feature>mpConfig-3.1</feature>
<feature>mpConfig</feature>
<feature>mpMetrics</feature>
</featureManager>
<!-- end::features[] -->

Expand All @@ -24,7 +26,7 @@
<logging traceSpecification="com.ibm.ws.microprofile.health.*=all" />
<!-- end::logging[] -->

<httpEndpoint host="*" httpPort="${http.port}"
<httpEndpoint host="*" httpPort="${http.port}"
httpsPort="${https.port}" id="defaultHttpEndpoint"/>

<variable name="io_openliberty_guides_system_inMaintenance" value="false"/>
Expand Down
2 changes: 1 addition & 1 deletion start/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>org.eclipse.microprofile</groupId>
<artifactId>microprofile</artifactId>
<version>6.1</version>
<version>7.0</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
Expand Down
14 changes: 8 additions & 6 deletions start/src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<server description="Sample Liberty server">
<featureManager>
<feature>restfulWS-3.1</feature>
<feature>jsonp-2.1</feature>
<feature>jsonb-3.0</feature>
<feature>cdi-4.0</feature>
<feature>mpMetrics-5.1</feature>
<feature>mpConfig-3.1</feature>
<platform>jakartaee-10.0</platform>
<platform>microprofile-7.0</platform>
<feature>restfulWS</feature>
<feature>jsonp</feature>
<feature>jsonb</feature>
<feature>cdi</feature>
<feature>mpConfig</feature>
<feature>mpMetrics</feature>
</featureManager>

<variable name="http.port" defaultValue="9080"/>
Expand Down
12 changes: 6 additions & 6 deletions start/src/main/webapp/js/mpData.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*******************************************************************************
* Copyright (c) 2018, 2019 IBM Corporation and others.
* Copyright (c) 2018, 2025 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
* http://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
function displayMetrics() {
Expand Down Expand Up @@ -85,7 +84,8 @@ function displaySystemProperties() {
}

function getSystemPropertiesRequest() {
var propToDisplay = ["java.vendor", "java.version", "user.name", "os.name", "wlp.install.dir", "wlp.server.name" ];
var propToDisplay = ["java.vendor", "java.version", "user.name",
"os.name", "wlp.install.dir", "wlp.server.name" ];
var url = "http://localhost:9080/system/properties";
var req = new XMLHttpRequest();
var table = document.getElementById("systemPropertiesTable");
Expand Down Expand Up @@ -240,4 +240,4 @@ function addSourceRow(table, url) {
sourceText.innerHTML = "API Source\: <a href='"+url+"'>"+url+"</a>";
sourceRow.appendChild(sourceText);
table.appendChild(sourceRow);
}
}

0 comments on commit 39f7283

Please sign in to comment.