diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000000..411e879fcb
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,29 @@
+Copyright (c) 2024-present AutoMQ HK Limited.
+
+this software are licensed as follows:
+
+1. Apache Kafka Source and Dependency Licensing:
+ All code in this repository that is forked from Apache Kafka and its
+ dependencies will continue to be licensed under the original Apache Kafka
+ open source license. For detailed licensing information regarding Apache
+ Kafka and its dependencies, please refer to the files under the "/licenses/"
+ folder in this repository.
+
+2. S3Stream Component Licensing:
+ The S3Stream component added to this project (specifically referring to all
+ files under the "/S3Stream/" directory) is licensed under a revised Business
+ Source License (BSL) by AutoMQ HK Limited, with the specific terms available
+ in the /LICENSE.S3Stream file in this repository. Any dependencies used by
+ the S3Stream component are subject to their respective open source licenses.
+
+3. File-Level License Precedence:
+ For each file in this repository, if the license is explicitly specified in
+ the header of the file, the license stated in the file header shall prevail.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/LICENSE.S3Stream b/LICENSE.S3Stream
new file mode 100644
index 0000000000..30f7e98db3
--- /dev/null
+++ b/LICENSE.S3Stream
@@ -0,0 +1,96 @@
+License text copyright © 2023 MariaDB plc, All Rights Reserved.
+"Business Source License" is a trademark of MariaDB plc.
+
+
+Parameters
+
+Licensor: AutoMQ HK Limited.
+Licensed Work: AutoMQ Version 1.1.2 or later. The Licensed Work is (c) 2024
+ AutoMQ HK Limited.
+Additional Use Grant: You may make production use of the Licensed Work, provided
+ Your use does not include offering the Licensed Work to third
+ parties on a hosted or embedded basis in order to compete with
+ AutoMQ's paid version(s) of the Licensed Work. For purposes
+ of this license:
+
+ A "competitive offering" is a Product that is offered to third
+ parties on a paid basis, including through paid support
+ arrangements, that significantly overlaps with the capabilities
+ of AutoMQ's paid version(s) of the Licensed Work. If Your
+ Product is not a competitive offering when You first make it
+ generally available, it will not become a competitive offering
+ later due to AutoMQ releasing a new version of the Licensed
+ Work with additional capabilities. In addition, Products that
+ are not provided on a paid basis are not competitive.
+
+ "Product" means software that is offered to end users to manage
+ in their own environments or offered as a service on a hosted
+ basis.
+
+ "Embedded" means including the source code or executable code
+ from the Licensed Work in a competitive offering. "Embedded"
+ also means packaging the competitive offering in such a way
+ that the Licensed Work must be accessed or downloaded for the
+ competitive offering to operate.
+
+ Hosting or using the Licensed Work(s) for internal purposes
+ within an organization is not considered a competitive
+ offering. AutoMQ considers your organization to include all
+ of your affiliates under common control.
+
+ For binding interpretive guidance on using AutoMQ products
+ under the Business Source License, please visit our FAQ.
+ (https://www.automq.com/license-faq)
+Change Date: Change date is four years from release date.
+ Please see https://github.com/AutoMQ/automq/releases for exact dates
+Change License: Apache License, Version 2.0
+ URL: https://www.apache.org/licenses/LICENSE-2.0
+
+
+For information about alternative licensing arrangements for the Licensed Work,
+please contact licensing@automq.com.
+
+Notice
+
+Business Source License 1.1
+
+Terms
+
+The Licensor hereby grants you the right to copy, modify, create derivative
+works, redistribute, and make non-production use of the Licensed Work. The
+Licensor may make an Additional Use Grant, above, permitting limited production use.
+
+Effective on the Change Date, or the fourth anniversary of the first publicly
+available distribution of a specific version of the Licensed Work under this
+License, whichever comes first, the Licensor hereby grants you rights under
+the terms of the Change License, and the rights granted in the paragraph
+above terminate.
+
+If your use of the Licensed Work does not comply with the requirements
+currently in effect as described in this License, you must purchase a
+commercial license from the Licensor, its affiliated entities, or authorized
+resellers, or you must refrain from using the Licensed Work.
+
+All copies of the original and modified Licensed Work, and derivative works
+of the Licensed Work, are subject to this License. This License applies
+separately for each version of the Licensed Work and the Change Date may vary
+for each version of the Licensed Work released by Licensor.
+
+You must conspicuously display this License on each original or modified copy
+of the Licensed Work. If you receive the Licensed Work in original or
+modified form from a third party, the terms and conditions set forth in this
+License apply to your use of that work.
+
+Any use of the Licensed Work in violation of this License will automatically
+terminate your rights under this License for the current and all other
+versions of the Licensed Work.
+
+This License does not grant you any right in any trademark or logo of
+Licensor or its affiliates (provided that you may use a trademark or logo of
+Licensor as expressly required by this License).
+
+TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
+AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
+EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
+TITLE.
diff --git a/build.gradle b/build.gradle
index d21073cab6..afb4a50595 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1197,7 +1197,6 @@ project(':core') {
from(project.file("$rootDir/licenses")) { into "licenses/" }
from(project.file("$rootDir/docker/docker-compose.yaml")) { into "docker/" }
from(project.file("$rootDir/docker/telemetry")) { into "docker/telemetry/" }
- from(project.file("$rootDir/licenses/BSL.md")) { into "" }
from "$rootDir/LICENSE-binary" rename {String filename -> filename.replace("-binary", "")}
from "$rootDir/NOTICE-binary" rename {String filename -> filename.replace("-binary", "")}
from(configurations.runtimeClasspath) { into("libs/") }
diff --git a/licenses/BSL.md b/licenses/BSL.md
deleted file mode 100644
index 3f276761b2..0000000000
--- a/licenses/BSL.md
+++ /dev/null
@@ -1,94 +0,0 @@
-Business Source License 1.1
-
-Parameters
-
-Licensor: AutoMQ HK Limited.
-
-Licensed Work: AutoMQ The Licensed Work is (c) 2024 AutoMQ HK Limited.
-
-Additional Use Grant: You may make use of the Licensed Work,
-provided that you may not use the Licensed Work for a Streaming or
-Queuing Service. A "Streaming or Queueing Service" is a commercial
-offering that allows third parties (other than your employees and
-individual contractors) to access the functionality of the Licensed Work
-by performing an action directly or indirectly that causes the creation
-of a topic in the Licensed Work.
-
-Change Date: Change date is four years from
-release date. Please see [GitHub releases](https://github.com/AutoMQ/automq-for-kafka/releases)
-for exact dates
-
-Change License: [Apache License, Version
-2.0](https://www.apache.org/licenses/LICENSE-2.0), as published by the
-Apache Foundation.
-
------------------------------------------------------------------------------
-
-Business Source License 1.1
-
-Terms
-
-The Licensor hereby grants you the right to copy, modify, create derivative
-works, redistribute, and make non-production use of the Licensed Work. The
-Licensor may make an Additional Use Grant, above, permitting limited
-production use.
-
-Effective on the Change Date, or the fourth anniversary of the first publicly
-available distribution of a specific version of the Licensed Work under this
-License, whichever comes first, the Licensor hereby grants you rights under
-the terms of the Change License, and the rights granted in the paragraph
-above terminate.
-
-If your use of the Licensed Work does not comply with the requirements
-currently in effect as described in this License, you must purchase a
-commercial license from the Licensor, its affiliated entities, or authorized
-resellers, or you must refrain from using the Licensed Work.
-
-All copies of the original and modified Licensed Work, and derivative works
-of the Licensed Work, are subject to this License. This License applies
-separately for each version of the Licensed Work and the Change Date may vary
-for each version of the Licensed Work released by Licensor.
-
-You must conspicuously display this License on each original or modified copy
-of the Licensed Work. If you receive the Licensed Work in original or
-modified form from a third party, the terms and conditions set forth in this
-License apply to your use of that work.
-
-Any use of the Licensed Work in violation of this License will automatically
-terminate your rights under this License for the current and all other
-versions of the Licensed Work.
-
-This License does not grant you any right in any trademark or logo of
-Licensor or its affiliates (provided that you may use a trademark or logo of
-Licensor as expressly required by this License).
-
-TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
-AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
-EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
-TITLE.
-
-MariaDB hereby grants you permission to use this License’s text to license
-your works, and to refer to it using the trademark “Business Source License”,
-as long as you comply with the Covenants of Licensor below.
-
-Covenants of Licensor
-
-In consideration of the right to use this License’s text and the “Business
-Source License” name and trademark, Licensor covenants to MariaDB, and to all
-other recipients of the licensed work to be provided by Licensor:
-
-1. To specify as the Change License the GPL Version 2.0 or any later version,
- or a license that is compatible with GPL Version 2.0 or a later version,
- where “compatible” means that software provided under the Change License can
- be included in a program with software provided under GPL Version 2.0 or a
- later version. Licensor may specify additional Change Licenses without
- limitation.
-
-2. To either: (a) specify an additional grant of rights to use that does not
- impose any additional restriction on the right granted in this License, as
- the Additional Use Grant; or (b) insert the text “None”.
-
-3. To specify a Change Date.
-
-4. Not to modify this License in any other way.