Skip to content

Commit b543b72

Browse files
Josias MontagJosias Montag
authored andcommitted
Maven release
1 parent 501bfe4 commit b543b72

3 files changed

Lines changed: 114 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,13 @@
55
This is the official Java SDK v2 for the [CloudConvert](https://cloudconvert.com/api/v2) _API v2_.
66

77
## Installation
8+
Add the following dependency to your pom.xml:
89
```
9-
$ mvn clean install -U
10+
<dependency>
11+
<groupId>com.cloudconvert</groupId>
12+
<artifactId>cloudconvert-java</artifactId>
13+
<version>1.0</version>
14+
</dependency>
1015
```
1116

1217
## Creating API Client

pom.xml

Lines changed: 107 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,49 @@
77

88
<groupId>com.cloudconvert</groupId>
99
<artifactId>cloudconvert-java</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>1.0.0</version>
1111

1212
<name>cloudconvert-java</name>
13+
<description>CloudConvert is an online file converter API - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.</description>
1314
<url>https://cloudconvert.com/api/v2</url>
1415

16+
<licenses>
17+
<license>
18+
<name>The MIT License</name>
19+
<url>https://raw.githubusercontent.com/ConvertAPI/convertapi-java/master/LICENSE.txt</url>
20+
<distribution>repo</distribution>
21+
</license>
22+
</licenses>
23+
24+
<developers>
25+
<developer>
26+
<name>Josias Montag</name>
27+
<email>montag@lunaweb.de</email>
28+
<organization>Lunaweb GmbH</organization>
29+
<organizationUrl>https://www.lunaweb.de</organizationUrl>
30+
</developer>
31+
</developers>
32+
33+
<scm>
34+
<connection>scm:git:git://github.com/cloudconvert/cloudconvert-java.git</connection>
35+
<developerConnection>scm:git:git@github.com:cloudconvert/cloudconvert-java.git</developerConnection>
36+
<url>https://github.com/cloudconvert/cloudconvert-java</url>
37+
<tag>HEAD</tag>
38+
</scm>
39+
40+
<distributionManagement>
41+
<snapshotRepository>
42+
<id>ossrh</id>
43+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
44+
</snapshotRepository>
45+
<repository>
46+
<id>ossrh</id>
47+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
48+
</repository>
49+
</distributionManagement>
50+
51+
52+
1553
<properties>
1654
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1755
<maven.compiler.source>1.8</maven.compiler.source>
@@ -37,6 +75,10 @@
3775
<system-rules.version>1.19.0</system-rules.version>
3876

3977
<maven-surefire-plugin.version>3.0.0-M3</maven-surefire-plugin.version>
78+
<nexus-staging-plugin.version>1.6.7</nexus-staging-plugin.version>
79+
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
80+
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
81+
<maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
4082
</properties>
4183

4284
<dependencies>
@@ -163,6 +205,70 @@
163205
<groups>${test.groups}</groups>
164206
</configuration>
165207
</plugin>
208+
<plugin>
209+
<groupId>org.sonatype.plugins</groupId>
210+
<artifactId>nexus-staging-maven-plugin</artifactId>
211+
<version>${nexus-staging-plugin.version}</version>
212+
<extensions>true</extensions>
213+
<configuration>
214+
<serverId>ossrh</serverId>
215+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
216+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
217+
</configuration>
218+
</plugin>
219+
220+
<plugin>
221+
<groupId>org.apache.maven.plugins</groupId>
222+
<artifactId>maven-source-plugin</artifactId>
223+
<version>${maven-source-plugin.version}</version>
224+
<executions>
225+
<execution>
226+
<id>attach-sources</id>
227+
<goals>
228+
<goal>jar-no-fork</goal>
229+
</goals>
230+
</execution>
231+
</executions>
232+
</plugin>
233+
234+
235+
<plugin>
236+
<groupId>org.apache.maven.plugins</groupId>
237+
<artifactId>maven-javadoc-plugin</artifactId>
238+
<version>${maven-javadoc-plugin.version}</version>
239+
<configuration>
240+
<javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
241+
</configuration>
242+
<executions>
243+
<execution>
244+
<id>attach-javadocs</id>
245+
<goals>
246+
<goal>jar</goal>
247+
</goals>
248+
</execution>
249+
</executions>
250+
</plugin>
251+
252+
<plugin>
253+
<groupId>org.apache.maven.plugins</groupId>
254+
<artifactId>maven-gpg-plugin</artifactId>
255+
<version>${maven-gpg-plugin.version}</version>
256+
<executions>
257+
<execution>
258+
<id>sign-artifacts</id>
259+
<phase>verify</phase>
260+
<goals>
261+
<goal>sign</goal>
262+
</goals>
263+
</execution>
264+
</executions>
265+
<configuration>
266+
<gpgArguments>
267+
<arg>--pinentry-mode</arg>
268+
<arg>loopback</arg>
269+
</gpgArguments>
270+
</configuration>
271+
</plugin>
166272
</plugins>
167273
</build>
168274
</project>

src/main/java/com/cloudconvert/dto/request/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public Object getProperty(@NotNull final String key) {
6060
}
6161

6262
/**
63-
* Get specific option. Shortcut for {@link #getProperties()}
63+
* Get specific option. Shortcut for {@link #getProperty(String)}
6464
*
6565
* @param key key
6666
* @return specific option value

0 commit comments

Comments
 (0)