Apache Fory™ releases are available both as source artifacts and language-specific packages.
For source downloads, see the Apache Fory™ download page.
Use Maven to add Apache Fory™:
<dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-core</artifactId> <version>1.3.0</version> </dependency> <!-- Optional row format support --> <!-- <dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-format</artifactId> <version>1.3.0</version> </dependency> --> <!-- SIMD acceleration for array compression (Java 16+) --> <!-- <dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-simd</artifactId> <version>1.3.0</version> </dependency> -->
Scala 2.13 with Maven:
<dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-scala_2.13</artifactId> <version>1.3.0</version> </dependency>
Scala 3 with Maven:
<dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-scala_3</artifactId> <version>1.3.0</version> </dependency>
Scala 2.13 with sbt:
libraryDependencies += "org.apache.fory" % "fory-scala_2.13" % "1.3.0"
Scala 3 with sbt:
libraryDependencies += "org.apache.fory" % "fory-scala_3" % "1.3.0"
Add Apache Fory™ Kotlin with Maven:
<dependency> <groupId>org.apache.fory</groupId> <artifactId>fory-kotlin</artifactId> <version>1.3.0</version> </dependency>
python -m pip install --upgrade pip pip install pyfory==1.3.0
Use the full Go module path github.com/apache/fory/go/fory:
go get github.com/apache/fory/go/fory@v1.3.0
If your Go proxy has not picked up the new submodule tag yet, retry later or use GOPROXY=direct temporarily.
[dependencies] fory = "1.3.0"
Or use cargo add:
cargo add fory@1.3.0
Install the published JavaScript package from npm:
npm install @apache-fory/core
Optional native acceleration requires Node.js 20+:
npm install @apache-fory/hps
Add Apache Fory™ Dart to pubspec.yaml:
dependencies: fory: ^1.3.0 dev_dependencies: build_runner: ^2.4.13
Generate serializers after defining annotated types:
dart run build_runner build --delete-conflicting-outputs
Install the Apache.Fory NuGet package. It includes both the runtime and the source generator for [ForyObject] types.
dotnet add package Apache.Fory --version 1.3.0
<ItemGroup> <PackageReference Include="Apache.Fory" Version="1.3.0" /> </ItemGroup>
Add Apache Fory™ from the GitHub repository with Swift Package Manager:
dependencies: [ .package(url: "https://github.com/apache/fory.git", exact: "1.3.0") ], targets: [ .target( name: "MyApp", dependencies: [ .product(name: "Fory", package: "fory") ] ) ]