@@ -174,6 +174,14 @@ subprojects {
174
174
175
175
install {
176
176
repositories. mavenInstaller. pom. project(projectPom)
177
+
178
+ repositories. mavenInstaller. pom. whenConfigured {
179
+ p -> p. dependencies = p. dependencies. findAll {
180
+ dep -> ! (dep. artifactId. contains(" hamcrest" ) ||
181
+ dep. artifactId. contains(" mockito" ) ||
182
+ dep. artifactId. contains(" junit" ))
183
+ }
184
+ }
177
185
}
178
186
}
179
187
@@ -301,19 +309,8 @@ project(':sbe-tool') {
301
309
project(' :sbe-all' ) {
302
310
apply plugin : ' com.github.johnrengelman.shadow'
303
311
304
- configurations {
305
- customCompile
306
- }
307
-
308
312
dependencies {
309
- customCompile project(' :sbe-tool' )
310
- }
311
-
312
- sourceSets {
313
- main {
314
- compileClasspath + = configurations. customCompile
315
- runtimeClasspath + = compileClasspath
316
- }
313
+ implementation project(' :sbe-tool' )
317
314
}
318
315
319
316
task sourcesJar(type : Jar ) {
@@ -322,7 +319,6 @@ project(':sbe-all') {
322
319
}
323
320
324
321
javadoc {
325
- classpath + = configurations. customCompile
326
322
source + = project(' :sbe-tool' ). sourceSets. main. allJava
327
323
}
328
324
@@ -332,7 +328,6 @@ project(':sbe-all') {
332
328
}
333
329
334
330
shadowJar {
335
- configurations = [project. configurations. customCompile]
336
331
archiveClassifier. set ' '
337
332
manifest. attributes(
338
333
' Main-Class' : ' uk.co.real_logic.sbe.SbeTool' ,
@@ -390,6 +385,12 @@ project(':sbe-all') {
390
385
archives javadocJar
391
386
}
392
387
388
+ install {
389
+ repositories. mavenInstaller. pom. whenConfigured {
390
+ p -> p. dependencies = []
391
+ }
392
+ }
393
+
393
394
signing {
394
395
required { isReleaseVersion && gradle. taskGraph. hasTask(" uploadArchives" ) }
395
396
sign configurations. shadow
0 commit comments