Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.fabianterhorst:fast-serialization:3.1.1'
}
dependencies {
implementation("com.github.fabianterhorst:fast-serialization:3.1.1")
}
<dependency>
<groupId>com.github.fabianterhorst</groupId>
<artifactId>fast-serialization</artifactId>
<version>3.1.1</version>
</dependency>
libraryDependencies += "com.github.fabianterhorst" % "fast-serialization" % "3.1.1"
:dependencies [[com.github.fabianterhorst/fast-serialization "3.1.1"]]
FSTConfiguration.createAndroidConfiguration()
both on server and client side. The configuration object has to be passed into FSTObjectIn/Output constructors)###Docs:
Fast JDK-compatible Serialization
MinBin cross platform binary format
Struct Emulation (currently not covered by tests)
###mvn
note: maven.org might lag 1 day behind after releasing.
2.0 version
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>2.47</version>
</dependency>
Older version (different package name, 1.6 compatible ..). Fixes are not backported anymore, unsupported.
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>1.63</version>
</dependency>
###Who uses FST ?
I am not actively tracking use, maven.org reports more than 12000 downloads from 5000 distinct IP accesses triggered by maven builds world wide per month.
Notable also:
###how to build
<b>Note</b> that instrumentation done for fst-structs works only if debug info is turned on during compile. Reason is that generating methods at runtime with javassist fails (probably a javassist bug ..). <b>This does not affect the serialization implementation. </b>
<b>JDK 1.6 Build</b> 1.x build since v1.62 are still jdk 6 compatible