@@ -26,16 +26,6 @@ project['signing.secretKeyRingFile'] = '/home/travis/.gnupg/secring.gpg'
2626project[' gradle.publish.key' ] = System . getenv(' gradlePublishKey' )
2727project[' gradle.publish.secret' ] = System . getenv(' gradlePublishSecret' )
2828
29-
30- println " Parent" :
31- fileTree(" ../" ). visit { FileVisitDetails details ->
32- println details. file. path
33- }
34- println " Dir" :
35- fileTree(" ./" ). visit { FileVisitDetails details ->
36- println details. file. path
37- }
38-
3929repositories {
4030 mavenCentral()
4131 maven {
@@ -96,7 +86,35 @@ nexusPublishing {
9686 }
9787
9888}
89+ def withPom = {pomObj ->
90+ configure(pomObj,{
91+ name = ' grpc-spring-boot-starter-gradle-plugin'
92+ description = ' Configures project with grpc-spring-boot-starter'
93+ url = ' https://github.com/LogNet/grpc-spring-boot-starter'
9994
95+ scm {
96+ url = ' https://github.com/LogNet/grpc-spring-boot-starter'
97+ connection
= ' scm:https://[email protected] /LogNet/grpc-spring-boot-starter.git' 98+ developerConnection = ' scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
99+ }
100+
101+ licenses {
102+ license {
103+ name = ' The Apache Software License, Version 2.0'
104+ url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
105+ distribution = ' repo'
106+ }
107+ }
108+
109+ developers {
110+ developer {
111+ id = ' jvmlet'
112+ name = ' Furer Alexander'
113+ 114+ }
115+ }
116+ })
117+ }
100118publishing {
101119 publishing {
102120 repositories {
@@ -110,66 +128,13 @@ publishing {
110128 publications {
111129 grpcBootPluginPluginMarkerMaven {
112130 // customize marker publications here
113- pom {
114- name = ' grpc-spring-boot-starter-gradle-plugin'
115- description = ' Configures project with grpc-spring-boot-starter marker'
116- url = ' https://github.com/LogNet/grpc-spring-boot-starter'
117-
118- scm {
119- url = ' https://github.com/LogNet/grpc-spring-boot-starter'
120- connection
= ' scm:https://[email protected] /LogNet/grpc-spring-boot-starter.git' 121- developerConnection = ' scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
122- }
123-
124- licenses {
125- license {
126- name = ' The Apache Software License, Version 2.0'
127- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
128- distribution = ' repo'
129- }
130- }
131-
132- developers {
133- developer {
134- id = ' jvmlet'
135- name = ' Furer Alexander'
136- 137- }
138- }
139- }
131+ pom = withPom << {it. name + = " marker" }
140132 }
141133 pluginMaven {
142134 // customize main publications here
143135 artifact sourceJar
144136 artifact javadocJar
145- pom {
146- name = ' grpc-spring-boot-starter-gradle-plugin'
147- description = ' Configures project with grpc-spring-boot-starter'
148- url = ' https://github.com/LogNet/grpc-spring-boot-starter'
149-
150- scm {
151- url = ' https://github.com/LogNet/grpc-spring-boot-starter'
152- connection
= ' scm:https://[email protected] /LogNet/grpc-spring-boot-starter.git' 153- developerConnection = ' scm:git://github.com/LogNet/grpc-spring-boot-starter.git'
154- }
155-
156- licenses {
157- license {
158- name = ' The Apache Software License, Version 2.0'
159- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
160- distribution = ' repo'
161- }
162- }
163-
164- developers {
165- developer {
166- id = ' jvmlet'
167- name = ' Furer Alexander'
168- 169- }
170- }
171-
172- }
137+ pom = withPom
173138 }
174139 }
175140 }
0 commit comments