Skip to content

Commit a357dd6

Browse files
author
Cristi
committed
updated pom file
1 parent a25e370 commit a357dd6

File tree

5 files changed

+103
-13
lines changed

5 files changed

+103
-13
lines changed

pom.xml

Lines changed: 95 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@
1111
<description>Java SDK for integrating apps with CoScale Web Performance Monitoring platform.</description>
1212
<url>http://www.coscale.com</url>
1313

14+
<distributionManagement>
15+
<snapshotRepository>
16+
<id>ossrh</id>
17+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
18+
</snapshotRepository>
19+
<repository>
20+
<id>ossrh</id>
21+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
22+
</repository>
23+
</distributionManagement>
24+
1425
<properties>
1526
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1627
</properties>
@@ -23,7 +34,7 @@
2334
<developers>
2435
<developer>
2536
<name>Cristian Ciutea</name>
26-
<email>suppport@coscale.com</email>
37+
<email>support@coscale.com</email>
2738
<organization>CoScale</organization>
2839
<organizationUrl>http://www.coscale.com</organizationUrl>
2940
</developer>
@@ -35,6 +46,7 @@
3546
<url>[email protected]:CoScale/coscale-sdk-java.git</url>
3647
</scm>
3748

49+
3850
<build>
3951
<plugins>
4052
<plugin>
@@ -46,19 +58,97 @@
4658
<target>1.7</target>
4759
</configuration>
4860
</plugin>
61+
<plugin>
62+
<groupId>org.sonatype.plugins</groupId>
63+
<artifactId>nexus-staging-maven-plugin</artifactId>
64+
<version>1.6.3</version>
65+
<extensions>true</extensions>
66+
<configuration>
67+
<serverId>ossrh</serverId>
68+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
69+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
70+
</configuration>
71+
</plugin>
4972
<plugin>
5073
<groupId>org.apache.maven.plugins</groupId>
51-
<artifactId>maven-gpg-plugin</artifactId>
52-
<version>1.5</version>
74+
<artifactId>maven-source-plugin</artifactId>
75+
<version>2.2.1</version>
76+
<executions>
77+
<execution>
78+
<id>attach-sources</id>
79+
<goals>
80+
<goal>jar-no-fork</goal>
81+
</goals>
82+
</execution>
83+
</executions>
5384
</plugin>
5485
<plugin>
5586
<groupId>org.apache.maven.plugins</groupId>
56-
<artifactId>maven-release-plugin</artifactId>
57-
<version>2.4.2</version>
87+
<artifactId>maven-javadoc-plugin</artifactId>
88+
<version>2.9.1</version>
89+
<executions>
90+
<execution>
91+
<id>attach-javadocs</id>
92+
<goals>
93+
<goal>jar</goal>
94+
</goals>
95+
</execution>
96+
</executions>
5897
</plugin>
5998
</plugins>
99+
100+
<pluginManagement>
101+
<plugins>
102+
<!-- remove M2E warning complaining about usage of maven-enforcer-plugin
103+
in parent -->
104+
<plugin>
105+
<groupId>org.eclipse.m2e</groupId>
106+
<artifactId>lifecycle-mapping</artifactId>
107+
<version>1.0.0</version>
108+
<configuration>
109+
<lifecycleMappingMetadata>
110+
<pluginExecutions>
111+
<pluginExecution>
112+
<pluginExecutionFilter>
113+
<groupId>org.apache.maven.plugins</groupId>
114+
<artifactId>maven-enforcer-plugin</artifactId>
115+
<versionRange>[1.0.0,)</versionRange>
116+
<goals>
117+
<goal>enforce</goal>
118+
</goals>
119+
</pluginExecutionFilter>
120+
<action>
121+
<ignore />
122+
</action>
123+
</pluginExecution>
124+
</pluginExecutions>
125+
</lifecycleMappingMetadata>
126+
</configuration>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-release-plugin</artifactId>
131+
<version>2.4.2</version>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-gpg-plugin</artifactId>
136+
<version>1.5</version>
137+
<executions>
138+
<execution>
139+
<id>sign-artifacts</id>
140+
<phase>verify</phase>
141+
<goals>
142+
<goal>sign</goal>
143+
</goals>
144+
</execution>
145+
</executions>
146+
</plugin>
147+
</plugins>
148+
</pluginManagement>
60149
</build>
61150

151+
62152
<dependencies>
63153
<dependency>
64154
<groupId>com.fasterxml.jackson.core</groupId>

src/main/java/com/coscale/sdk/client/ApiClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void setBaseURL(String url) {
129129
/**
130130
* return the default connection timeout in ms.
131131
*
132-
* @return
132+
* @return int connection timeout value.
133133
*/
134134
public int getConnectionTimeout() {
135135
return API_CONN_TIMEOUT_MS;
@@ -148,7 +148,7 @@ public void setConnectionTimeout(int timeout) {
148148
/**
149149
* return the default read timeout in ms.
150150
*
151-
* @return
151+
* @return int read timeout value.
152152
*/
153153
public int getReadTimeout() {
154154
return API_READ_TIMEOUT_MS;
@@ -167,7 +167,7 @@ public void setReadTimeout(int timeout) {
167167
/**
168168
* Get the SOURCE String which mark the created resources.
169169
*
170-
* @return
170+
* @return String source value.
171171
*/
172172
public static String getSource() {
173173
return SOURCE;
@@ -201,7 +201,7 @@ public int getDeserializationExceptions() {
201201
* of the API call.
202202
* @param data
203203
* in string format to pass to the request.
204-
* @return
204+
* @return String response for the request.
205205
* @throws IOException
206206
*/
207207
private String doHttpRequest(String method, String uri, String payload, boolean authenticate)
@@ -405,7 +405,7 @@ public String getGlobalRequestURL(String endpoint) {
405405
* Optional query parameters
406406
* @param globalApi
407407
* if is set true, application Id will not be include into URL.
408-
* @return
408+
* @return String generated request url.
409409
*/
410410
public String getRequesUrl(String endpoint, Options options, boolean globalApi) {
411411

src/main/java/com/coscale/sdk/client/data/DataApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public DataApi(ApiClient api) {
3131
* Insert data into the data-store
3232
*
3333
* @param data
34-
* @return
34+
* @return Msg containing the api response.
3535
* @throws IOException
3636
*/
3737
public Msg insert(String subjectId, DataInsert data) throws IOException {

src/main/java/com/coscale/sdk/client/data/DataInsertBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public void addDoubleData(long metricId, long timestamp, double data) {
5252
*
5353
* @param tClass
5454
* @param metricId
55-
* @return
55+
* @return MetricData<T>.
5656
*/
5757
@SuppressWarnings("unchecked")
5858
private <T extends MetricData.DataType> MetricData<T> getData(Class<T> tClass, long metricId) {

src/main/java/com/coscale/sdk/client/servers/ServersApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public Server getServer(long serverId) throws IOException {
7676
* the id of the server.
7777
* @param options
7878
* which contain query parameters
79-
* @return
79+
* @return Server.
8080
* @throws IOException
8181
*/
8282
public Server getServer(long serverId, Options options) throws IOException {

0 commit comments

Comments
 (0)