Swagger Annotations

io.swagger : swagger-annotations

[Website] ·
1.3k usages
· 6.9k stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>io.swagger</groupId>
    <artifactId>swagger-annotations</artifactId>
    <version>2.0.0-rc2</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 io.swagger:swagger-annotations library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-annotations</artifactId>
  <version>2.0.0-rc2</version>
</dependency>
</dependencies>

To install io.swagger:swagger-annotations library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the io.swagger:swagger-annotations library to the dependencies section of your build.gradle file:

dependencies {
implementation 'io.swagger:swagger-annotations:2.0.0-rc2'
}

Gradle Kotlin DSL: Add the io.swagger:swagger-annotations library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("io.swagger:swagger-annotations:2.0.0-rc2")
}

3. Add dependency to a SBT Scala project

Scala: Add the io.swagger:swagger-annotations library to your build.sbt file:

libraryDependencies += "io.swagger" % "swagger-annotations" % "2.0.0-rc2"

4. Add dependency to a Grape project

Grape: Add an annotation io.swagger:swagger-annotations library to your groovy script file:

@Grapes(
    @Grab('io.swagger:swagger-annotations:2.0.0-rc2')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (2)

Group / Artifact Usage
javax.ws.rs » javax.ws.rs-api 1,730
org.testng » testng 6,700