Commons Lang

commons-lang : commons-lang

Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang.

[Website] ·
4.6k usages

Add dependency in Maven / Gradle

<dependency>
    <groupId>commons-lang</groupId>
    <artifactId>commons-lang</artifactId>
    <version>2.6</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-lang:commons-lang library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>commons-lang</groupId>
  <artifactId>commons-lang</artifactId>
  <version>2.6</version>
</dependency>
</dependencies>

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

mvn install

2. Add dependency to a Gradle project

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

dependencies {
implementation 'commons-lang:commons-lang:2.6'
}

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

dependencies {
implementation("commons-lang:commons-lang:2.6")
}

3. Add dependency to a SBT Scala project

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

libraryDependencies += "commons-lang" % "commons-lang" % "2.6"

4. Add dependency to a Grape project

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

@Grapes(
    @Grab('commons-lang:commons-lang:2.6')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (1)

Group / Artifact Usage
junit » junit 63,836