Apache Commons Codec

commons-codec : commons-codec

The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.

[Website] ·
6,559 usages

Add dependency in Maven / Gradle

<dependency>
    <groupId>commons-codec</groupId>
    <artifactId>commons-codec</artifactId>
    <version>1.15</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the commons-codec:commons-codec library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>commons-codec</groupId>
  <artifactId>commons-codec</artifactId>
  <version>1.15</version>
</dependency>
</dependencies>

To install commons-codec:commons-codec library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the commons-codec:commons-codec library to the dependencies section of your build.gradle file:

dependencies {
implementation 'commons-codec:commons-codec:1.15'
}

Gradle Kotlin DSL: Add the commons-codec:commons-codec library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("commons-codec:commons-codec:1.15")
}

3. Add dependency to a SBT Scala project

Scala: Add the commons-codec:commons-codec library to your build.sbt file:

libraryDependencies += "commons-codec" % "commons-codec" % "1.15"

4. Add dependency to a Grape project

Grape: Add an annotation commons-codec:commons-codec library to your groovy script file:

@Grapes(
    @Grab('commons-codec:commons-codec:1.15')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (2)

Group / Artifact Usage
junit » junit 63,836
org.apache.commons » commons-lang3 14,899