Skip to content

Commit

Permalink
Move to mvn central repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Bravo27 committed Mar 8, 2022
1 parent 566b37f commit 7880cec
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions README.md
Expand Up @@ -6,43 +6,26 @@ The Lightstreamer JMS Extender Hook Java API lets you easily develop any Hook, w

# Using the API

The library jar is deployed on a Maven repository at https://www.lightstreamer.com/repo/maven

To include the library in a custom project, using any maven-compatible build tool (e.g. Maven, Gradle, Ivy, etc.) it is necessary to configure both a pointer to the external repository and the reference to the lib itself.
The library is deployed on a Maven repository.
To include the library in a custom project, using any maven-compatible build tool (e.g. Maven, Gradle, Ivy, etc.) it is necessary to proper configure the dependency to the library.

### Maven

Add the following dependency to the pom.xml file:

```xml
<repositories>
<repository>
<id>lightstreamer</id>
<name>Lightstreamer repository</name>
<url>https://www.lightstreamer.com/repo/maven</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.lightstreamer</groupId>
<artifactId>ls-jms-hook-java-api</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies>
```

### Gradle

Update the dependencies section of the build.gradle file with the following declaration:

```xml
repositories {
maven {
url "https://www.lightstreamer.com/repo/maven"
}
}

dependencies {
compile 'com.lightstreamer:ls-jms-hook-java-api:2.0.0'
}
Expand All @@ -53,13 +36,13 @@ dependencies {
Add the following dependency to the ivy.yml file:

```xml
<ibiblio name="lightstreamer" m2compatible="true" root="https://www.lightstreamer.com/repo/maven/"/>

<dependency org="com.lightstreamer" name="ls-jms-hook-java-api" rev="2.0.0"/>
```

# External Links

- [Maven Repository](https://mvnrepository.com/artifact/com.lightstreamer/ls-jms-hook-java-api)

- [Examples](https://demos.lightstreamer.com/?p=jmsextender&t=hook&a=javahook)

- [API Reference](https://www.lightstreamer.com/api/ls-jms-hook-java-api/2.0.0/index.html)
Expand Down

0 comments on commit 7880cec

Please sign in to comment.