11project {
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 {
0 commit comments