Skip to content

Commit 00bf9c0

Browse files
committed
preparing for maven central deployment
1 parent 775830c commit 00bf9c0

3 files changed

Lines changed: 51 additions & 12 deletions

File tree

pom.groovy

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
11
project {
22
modelVersion '4.0.0'
3-
groupId 'io.ipdata.client'
3+
groupId 'co.ipdata.client'
44
artifactId 'ipdata-java-client'
55
version '0.1.0-SNAPSHOT'
6+
licenses {
7+
license {
8+
name 'The Apache Licence, Version 2.0'
9+
url 'http://www.apache.org/licenses/LICENCE-2.0.txt'
10+
}
11+
}
12+
scm {
13+
connection 'git@github.com:yassine/ipdata-java-client.git'
14+
developerConnection 'git@github.com:yassine/ipdata-java-client.git'
15+
url 'https://github.com/yassine/ipdata-java-client'
16+
}
17+
developers {
18+
developer {
19+
name 'ipdata.co'
20+
email 'support@ipdata.co'
21+
}
22+
}
623
properties {
724
'project.build.sourceEncoding' 'UTF-8'
825
'maven.compiler.source' '6'
@@ -19,7 +36,6 @@ project {
1936
'sonar.projectName' 'ipdata-java-client'
2037
'sonar.projectVersion' '${project.version}'
2138
'sonar.host.url' 'https://sonarcloud.io'
22-
2339
}
2440
dependencies {
2541
dependency('io.github.openfeign:feign-core:${version.client.feign}')
@@ -34,17 +50,31 @@ project {
3450
dependency('junit:junit:4.13:test')
3551
dependency('org.skyscreamer:jsonassert:1.5.0:test')
3652
}
53+
profiles {
54+
profile {
55+
id 'release'
56+
build {
57+
plugins {
58+
plugin('org.apache.maven.plugins:maven-gpg-plugin:1.6') {
59+
executions {
60+
execution {
61+
phase 'verify'
62+
goals 'sign'
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
3770
build {
3871
plugins {
3972
plugin('org.apache.maven.plugins:maven-resources-plugin:2.6') {
4073
configuration {
4174
encoding '${project.build.sourceEncoding}'
4275
}
4376
}
44-
plugin {
45-
groupId 'org.jacoco'
46-
artifactId 'jacoco-maven-plugin'
47-
version '${version.build.jacoco}'
77+
plugin('org.jacoco:jacoco-maven-plugin:${version.build.jacoco}') {
4878
executions {
4979
execution {
5080
id 'prepare-agent'
@@ -79,10 +109,20 @@ project {
79109
argLine '${surefireArgLine}'
80110
}
81111
}
82-
plugin {
83-
groupId 'org.codehaus.mojo'
84-
artifactId 'sonar-maven-plugin'
85-
version '3.6.0.1398'
112+
plugin('org.codehaus.mojo:sonar-maven-plugin:3.6.0.1398')
113+
plugin('org.apache.maven.plugins:maven-source-plugin:3.2.1') {
114+
executions {
115+
execution('attach-sources') {
116+
goals('jar')
117+
}
118+
}
119+
}
120+
plugin('org.apache.maven.plugins:maven-javadoc-plugin:3.1.1') {
121+
executions {
122+
execution('attach-javadocs') {
123+
goals('jar')
124+
}
125+
}
86126
}
87127
}
88128
resources {

src/main/java/io/ipdata/client/CacheConfigBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public CacheConfigBuilder maxSize(long maxSize) {
3232
* The maximum duration before invalidating a cache entry.
3333
* @param timeout The duration
3434
* @param unit The duration unit
35-
* @return
35+
* @return this builder
3636
*/
3737
public CacheConfigBuilder timeout(int timeout, TimeUnit unit) {
3838
if (timeout <= 0) {

src/test/java/io/ipdata/client/IpdataFunctionalTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.google.common.collect.ImmutableMap;
1414
import feign.httpclient.ApacheHttpClient;
1515
import io.ipdata.client.error.IpdataException;
16-
import io.ipdata.client.error.RateLimitException;
1716
import io.ipdata.client.model.AsnModel;
1817
import io.ipdata.client.model.Currency;
1918
import io.ipdata.client.model.IpdataModel;

0 commit comments

Comments
 (0)