Skip to content

fmjsjx/libcommon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibCommon Project

A set of some common useful libraries.

Since 3.0, members of libraries always based on JDK 17.

Add Dependencies

Add Maven Dependencies

<pom>
  <dependencyManagement>
    <dependencies>
      <!-- BOM -->
      <dependency>
        <groupId>com.github.fmjsjx</groupId>
        <artifactId>libcommon-bom</artifactId>
        <version>3.8.0-RC1</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>

Add Gradle Dependencies

Groovy DSL

repositories {
    mavenCentral
}

dependencies {
    // BOM
    implementation platform('com.github.fmjsjx:libcommon-bom:3.8.0-RC1')
    // 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'
}

Kotlin DSL

repositories {
    mavenCentral()
}

dependencies {
    // BOM
    implementation(platform("com.github.fmjsjx:libcommon-bom:3.8.0-RC1"))
    // 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")
}

Modules

There are a number of modules in LibCommon, here is a quick overview:

libcommon-util

The libcommon-util module provides some common utility classes.

libcommon-collection

The libcommon-collection module provides additional collection/map.

libcommon-function

The libcommon-function module provides additional functional interfaces.

libcommon-json

The libcommon-json module provides a library interface to encode/decode JSON.

libcommon-json-dsljson

The libcommon-json-dsljson module provides an implementation of libcommon-json based on DSL-JSON.

libcommon-json-fastjson2

The libcommon-json-fastjson2 module provides an implementation of libcommon-json based on Fastjson2.

libcommon-json-fastjson2-kotlin

The libcommon-json-fastjson2-kotlin module provides the kotlin extensions of libcommon-json-fastjson2.

libcommon-json-jackson2

The libcommon-json-jackson2 module provides an implementation of libcommon-json based on Jackson2.

libcommon-json-jackson2-kotlin

The libcommon-json-jackson2-kotlin module provides the kotlin extensions of libcommon-json-jackson2.

libcommon-json-jsoniter

The libcommon-json-jsoniter module provides an implementation of libcommon-json based on json-iterator.

libcommon-json-jsoniter-kotlin

The libcommon-json-jsoniter-kotlin module provides the kotlin extensions of libcommon-json-jsoniter.

libcommon-kotlin

The libcommon-kotlin module provides some utilitiy class for Kotlin.

libcommon-prometheus (legacy)

The libcommon-prometheus module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus simple client.

libcommon-prometheus-client

The libcommon-prometheus-client module provides Hotspot JVM metrics exports, that allow users set custom labels, based on prometheus client java.

libcommon-yaml

The libcommon-yaml module provides a library interface to encode/decode YAML, with the default implementation based on Jackson2.

libcommon-redis

The libcommon-redis module provides additional utility functions for Lettuce.

libcommon-redis-kotlin

The libcommon-redis-kotlin module provides the kotlin extensions of Lettuce.

libcommon-jdbc

The libcommon-util module provides additional utility functions for JDBC.

libcommon-aliyunons

The libcommon-aliyunons module provides additional utility functions for ALIYUN Open Services/RocketMQ.

libcommon-rocketmq

The libcommon-rocketmq module provides additional utility functions for RocketMQ.

libcommon-bson

The libcommon-bson module provides some additional utility functions for BSON.

libcommon-bson-kotlin

The libcommon-bson-kotlin module provides some additional kotlin extensions for BSON.

libcommon-uuid

The libcommon-uuid module provides additional implementations of UUID.