MVN

com.google.code.gson : gson

Maven & Gradle

Jan 06, 2023
12.1k usages
22.2k stars

Gson

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.10.1</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.google.code.gson : gson to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 2.10.1

All Versions

Choose a version of com.google.code.gson : gson to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
2.10.x
gson-2.10.1
2.10
gson-2.10
2.9.x
gson-2.9.1
gson-2.9.0
2.8.x
gson-2.8.9
gson-2.8.8
CVE-2022-25647
gson-2.8.7
CVE-2022-25647
gson-2.8.6
CVE-2022-25647
gson-2.8.5
CVE-2022-25647
gson-2.8.4
CVE-2022-25647
gson-2.8.3
CVE-2022-25647
gson-2.8.2
CVE-2022-25647
gson-2.8.1
CVE-2022-25647
gson-2.8.0
CVE-2022-25647
2.7
gson-2.7
CVE-2022-25647
2.6.x
gson-2.6.2
CVE-2022-25647
gson-2.6.1
CVE-2022-25647
2.6
gson-2.6
CVE-2022-25647
2.5
gson-2.5
CVE-2022-25647
2.4
gson-2.4
CVE-2022-25647
2.3.x
gson-2.3.1
CVE-2022-25647
2.3
gson-2.3
CVE-2022-25647
2.2.x
gson-2.2.4
CVE-2022-25647
gson-2.2.3
CVE-2022-25647
gson-2.2.2
CVE-2022-25647
gson-2.2.1
CVE-2022-25647
2.2
gson-2.2
CVE-2022-25647
2.1
gson-2.1
CVE-2022-25647
2.0
gson-2.0
CVE-2022-25647
1.7.x
gson-1.7.2
CVE-2022-25647
gson-1.7.1
CVE-2022-25647
1.7
gson-1.7
CVE-2022-25647
1.6
gson-1.6
CVE-2022-25647
1.5
gson-1.5
CVE-2022-25647
1.4
gson-1.4
CVE-2022-25647
1.1
gson-1.1
CVE-2022-25647

How to add a dependency to Maven

Add the following com.google.code.gson : gson maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.google.code.gson</groupId>
    <artifactId>gson</artifactId>
    <version>2.10.1</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.google.code.gson : gson gradle dependency to your build.gradle file:

implementation 'com.google.code.gson:gson:2.10.1'

Gradle Kotlin DSL: Add the following com.google.code.gson : gson gradle kotlin dependency to your build.gradle.kts file:

implementation("com.google.code.gson:gson:2.10.1")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.google.code.gson : gson sbt scala dependency to your build.sbt file:

libraryDependencies += "com.google.code.gson" % "gson" % "2.10.1"

Advertisement

Dependencies from Group

Jan 06, 2023
12.1k usages
22.2k stars
Jan 06, 2023
22.3k stars

Discover Dependencies

May 18, 2023
9.3k usages
1.8k stars
poi
Sep 09, 2022
1.9k usages
Aug 07, 2023
3.4k usages
5.9k stars
Jun 18, 2023
3.7k usages
4.5k stars
Jun 03, 2023
20.8k usages
May 30, 2023
10.7k usages
2.2k stars
Apr 17, 2008
8.5k usages
May 30, 2023
20.7k usages
3.5k stars
Jul 13, 2023
4.4k usages
56.5k stars
Aug 24, 2023
7.8k usages
75k stars