Javax.ws.rs Api

javax.ws.rs : javax.ws.rs-api

Java API for RESTful Web Services

[Website] ·
1.7k usages
· 236 stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>javax.ws.rs</groupId>
    <artifactId>javax.ws.rs-api</artifactId>
    <version>2.1.1</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 javax.ws.rs:javax.ws.rs-api library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>javax.ws.rs</groupId>
  <artifactId>javax.ws.rs-api</artifactId>
  <version>2.1.1</version>
</dependency>
</dependencies>

To install javax.ws.rs:javax.ws.rs-api library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the javax.ws.rs:javax.ws.rs-api library to the dependencies section of your build.gradle file:

dependencies {
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
}

Gradle Kotlin DSL: Add the javax.ws.rs:javax.ws.rs-api library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("javax.ws.rs:javax.ws.rs-api:2.1.1")
}

3. Add dependency to a SBT Scala project

Scala: Add the javax.ws.rs:javax.ws.rs-api library to your build.sbt file:

libraryDependencies += "javax.ws.rs" % "javax.ws.rs-api" % "2.1.1"

4. Add dependency to a Grape project

Grape: Add an annotation javax.ws.rs:javax.ws.rs-api library to your groovy script file:

@Grapes(
    @Grab('javax.ws.rs:javax.ws.rs-api:2.1.1')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (1)

Group / Artifact Usage
junit » junit 63,836