H2 Database Engine

com.h2database : h2

H2 Database Engine

[Website] ·
4,980 usages
· 3,092 stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>com.h2database</groupId>
    <artifactId>h2</artifactId>
    <version>2.1.210</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 com.h2database:h2 library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>com.h2database</groupId>
  <artifactId>h2</artifactId>
  <version>2.1.210</version>
</dependency>
</dependencies>

To install com.h2database:h2 library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the com.h2database:h2 library to the dependencies section of your build.gradle file:

dependencies {
implementation 'com.h2database:h2:2.1.210'
}

Gradle Kotlin DSL: Add the com.h2database:h2 library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("com.h2database:h2:2.1.210")
}

3. Add dependency to a SBT Scala project

Scala: Add the com.h2database:h2 library to your build.sbt file:

libraryDependencies += "com.h2database" % "h2" % "2.1.210"

4. Add dependency to a Grape project

Grape: Add an annotation com.h2database:h2 library to your groovy script file:

@Grapes(
    @Grab('com.h2database:h2:2.1.210')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (0)

Group / Artifact Usage