A set of some common useful libraries.
Since 3.0, members of libraries always based on JDK 17.
<pom>
<dependencyManagement>
<dependencies>
<!-- BOM -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-bom</artifactId>
<version>3.9.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- Common Utility -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-util</artifactId>
</dependency>
<!-- JSON library based on Jackson2 -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-json-jackson2</artifactId>
</dependency>
<!-- JSON library based on Json-Iter -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>libcommon-json-jsoniter</artifactId>
</dependency>
</dependencies>
</pom>
repositories {
mavenCentral
}
dependencies {
// BOM
implementation platform('com.github.fmjsjx:libcommon-bom:3.9.1')
// Common Utility
implementation 'com.github.fmjsjx:libcommon-util'
// JSON library based on Fastjson2
implementation 'com.github.fmjsjx:libcommon-json-fastjson2'
// JSON library based on Jackson2
implementation 'com.github.fmjsjx:libcommon-json-jackson2'
// JSON library based on Json-Iter
implementation 'com.github.fmjsjx:libcommon-json-jsoniter'
}
repositories {
mavenCentral()
}
dependencies {
// BOM
implementation(platform("com.github.fmjsjx:libcommon-bom:3.9.1"))
// Common Utility
implementation("com.github.fmjsjx:libcommon-util")
// JSON library based on Fastjson2
implementation("com.github.fmjsjx:libcommon-json-fastjson2")
// JSON library based on Jackson2
implementation("com.github.fmjsjx:libcommon-json-jackson2")
// JSON library based on Json-Iter
implementation("com.github.fmjsjx:libcommon-json-jsoniter")
}
There are a number of modules in LibCommon, here is a quick overview:
The libcommon-util
module provides some common utility classes.
The libcommon-collection
module provides additional collection/map.
The libcommon-function
module provides additional functional interfaces.
The libcommon-json
module provides a library interface to encode/decode JSON.
The libcommon-json-dsljson
module provides an implementation of libcommon-json
based on DSL-JSON
.
The libcommon-json-fastjson2
module provides an implementation of libcommon-json
based on Fastjson2
.
The libcommon-json-fastjson2-kotlin
module provides the kotlin extensions of libcommon-json-fastjson2
.
The libcommon-json-jackson2
module provides an implementation of libcommon-json
based on Jackson2
.
The libcommon-json-jackson2-kotlin
module provides the kotlin extensions of libcommon-json-jackson2
.
The libcommon-json-jsoniter
module provides an implementation of libcommon-json
based on json-iterator
.
The libcommon-json-jsoniter-kotlin
module provides the kotlin extensions of libcommon-json-jsoniter
.
The libcommon-kotlin
module provides some utilitiy class for Kotlin.
The libcommon-prometheus
module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus simple client.
The libcommon-prometheus-client
module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus client java.
The libcommon-yaml
module provides a library interface to encode/decode YAML, with the default implementation based on Jackson2
.
The libcommon-redis
module provides additional utility functions for Lettuce
.
The libcommon-redis-kotlin
module provides the kotlin extensions of Lettuce
.
The libcommon-util
module provides additional utility functions for JDBC.
The libcommon-aliyunons
module provides additional utility functions for ALIYUN Open Services/RocketMQ
.
The libcommon-rocketmq
module provides additional utility functions for RocketMQ
.
The libcommon-bson
module provides some additional utility functions for BSON
.
The libcommon-bson-kotlin
module provides some additional kotlin extensions for BSON
.
The libcommon-uuid
module provides additional implementations of UUID
.