dev/- Main source code directory for the project- All source code for Open Liberty
- Java runtime
- Unit tests
- Functional tests (AKA functional acceptance tests or FATs)
- Build scripts for building and testing
- All source code for Open Liberty
cla/- Contributor License Agreements (corporate and individual).ci-orchestrator/- CI/CD infrastructure
All of the following commands assume that you have cloned the repository and are in the open-liberty/dev directory.
These steps will build the Open Liberty runtime and all of its features. This is the recommended way to build the product.
Prerequisite: The JAVA_HOME environment variable must point to a Java 17 or Java 21 SDK. If setting JAVA_HOME to Java 17, you will also need to set JAVA_21_HOME to a Java 21 SDK.
$ ./gradlew cnf:initialize
$ ./gradlew assemble$ ./gradlew releaseNeededThis task releases all projects to the local releaseRepo. The final zip can be found in:
open-liberty/dev/cnf/release/dev/openliberty//openliberty-.zip
$ ./gradlew com.ibm.ws.kernel.boot:build$ ./gradlew com.ibm.ws.kernel.boot:test$ ./gradlew build.example_fat:buildandrunAll commits that contain content created by AI must have the git commit message end with the following format:
Co-authored-by-AI: <Agent Name> <Agent Version> (<Model Version>)
- Agent Name: The name of the AI tool
- Agent Version: The version of the AI tool used (e.g., 1.0.0, 1.2.3)
- Model Version: The underlying LLM model and version used by the AI tool (e.g., Claude Sonnet 4.6, GPT-5.4, Llama 3.2 90B). This value is optional but must list all models that were known to be used.
Fix authentication bug in JWT validation
Updated the token expiration check to properly handle timezone offsets.
Added unit tests to verify the fix works across different timezones.
Co-authored-by-AI: IBM Bob 1.0.0 (Claude Sonnet 4.6)
Add support for Jakarta EE 11 features
Implemented new Jakarta EE 11 APIs and updated configuration handling.
Includes backward compatibility for Jakarta EE 10.
Co-authored-by-AI: IBM Bob 1.0.0 (Claude Sonnet 4.6)
Co-authored-by-AI: GitHub Copilot (GPT-5.4)
-
Placement: The co-authorship line must be at the end of the commit message, after all other content including issue references.
-
Blank Line: Include a blank line before the co-authorship attribution if your commit message has a body.
-
Version Accuracy: Always use the actual version numbers of the AI tool and the model at the time of code generation.
All source code and configuration files must have and maintain a copyright header at the top of the file.
- License Type: Eclipse Public License - v 2.0
- Format: Use the appropriate comment block for the file type (e.g.,
/* ... */for Java/Gradle,<!-- ... -->for XML/HTML, or# ... #for bnd/properties). - Copyright dates: Include the year of creation and the current year, if different than the current year, delimited by a comma (,).
- Example:
/*******************************************************************************
* Copyright (c) 2017, 2026 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* 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-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/