Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,14 @@ There are a few example Java programs in the jar file, that you can run as follo

```java -cp path/to/cleeng-java-sdk-{version}-jar-with-dependencies.jar com/cleeng/api/examples/CleengJavaAPIBatchExampleAsync```

# Import Cleeng SDK library to your Maven project
Cleeng SDK library is available remotely on Central Repository. To use it in your project add following code to your pom.xml file in ```<dependencies>``` section:
```
<dependency>
<groupId>com.cleeng</groupId>
<artifactId>cleeng-java-sdk</artifactId>
<version>2.4.0</version>
</dependency>
```
After adding that part, rebuild or refresh your project to be sure that Cleeng SDK repository has been downloaded.
If your IDE enables auto-import, you can instantly use library in the whole project. Otherwise, it has to be imported into java file manually.
98 changes: 96 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,42 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.cleeng</groupId>
<artifactId>cleeng-java-sdk</artifactId>
<version>1.0</version>
<version>2.4.0</version>
<name>Cleeng Java SDK</name>

<licenses>
<license>
<name>MIT License</name>
<url>https://github.com/Cleeng/cleeng-java-sdk/blob/master/LICENSE</url>
</license>
</licenses>

<developers>
<developer>
<name>Cleeng Team</name>
<email>theteam@cleeng.com</email>
<organization>Cleeng</organization>
<organizationUrl>http://cleeng.com/open/</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/Cleeng/cleeng-java-sdk.git</connection>
<developerConnection>scm:git:ssh://github.com:Cleeng/cleeng-java-sdk.git</developerConnection>
<url>http://github.com/Cleeng/cleeng-java-sdk/tree/master</url>
</scm>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
Expand Down Expand Up @@ -57,6 +90,67 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5</version>
<configuration>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
<goals>deploy</goals>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
Expand All @@ -65,7 +159,7 @@
</resource>
</resources>
</build>

<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
Expand Down