@@ -144,7 +144,6 @@ subprojects {
144
144
version = sbeVersion
145
145
146
146
jar. enabled = true
147
-
148
147
checkstyle. toolVersion = " ${ checkstyleVersion} "
149
148
150
149
compileJava {
@@ -174,7 +173,6 @@ subprojects {
174
173
175
174
install {
176
175
repositories. mavenInstaller. pom. project(projectPom)
177
-
178
176
repositories. mavenInstaller. pom. whenConfigured {
179
177
p -> p. dependencies = p. dependencies. findAll {
180
178
dep -> ! (dep. artifactId. contains(" hamcrest" ) ||
@@ -183,6 +181,20 @@ subprojects {
183
181
}
184
182
}
185
183
}
184
+
185
+ uploadArchives {
186
+ repositories {
187
+ mavenDeployer {
188
+ pom. whenConfigured {
189
+ p -> p. dependencies = p. dependencies. findAll {
190
+ dep -> ! (dep. artifactId. contains(" hamcrest" ) ||
191
+ dep. artifactId. contains(" mockito" ) ||
192
+ dep. artifactId. contains(" junit" ))
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
186
198
}
187
199
188
200
def validationXsdPath = project(' :sbe-tool' ). projectDir. toString() + ' /src/main/resources/fpl/sbe.xsd'
@@ -345,7 +357,13 @@ project(':sbe-all') {
345
357
uploadArchives {
346
358
repositories {
347
359
mavenDeployer {
348
- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
360
+ pom. whenConfigured {
361
+ p -> p. dependencies = []
362
+ }
363
+
364
+ beforeDeployment {
365
+ MavenDeployment deployment -> signing. signPom(deployment)
366
+ }
349
367
350
368
repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
351
369
authentication(userName : ossrhUsername, password : ossrhPassword)
@@ -363,7 +381,13 @@ project(':sbe-all') {
363
381
uploadShadow {
364
382
repositories {
365
383
mavenDeployer {
366
- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
384
+ pom. whenConfigured {
385
+ p -> p. dependencies = []
386
+ }
387
+
388
+ beforeDeployment {
389
+ MavenDeployment deployment -> signing. signPom(deployment)
390
+ }
367
391
368
392
repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
369
393
authentication(userName : ossrhUsername, password : ossrhPassword)
0 commit comments