Skip to content

Commit 7e9d81d

Browse files
committed
[Java] Use custom configuration to build shadow jar with correct POM.
1 parent 9bbf7c8 commit 7e9d81d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,16 +302,17 @@ project(':sbe-all') {
302302
apply plugin: 'com.github.johnrengelman.shadow'
303303

304304
configurations {
305-
customApi
305+
customCompile
306306
}
307307

308308
dependencies {
309-
customApi project(':sbe-tool')
309+
customCompile project(':sbe-tool')
310+
customCompile "org.agrona:agrona:${agronaVersion}"
310311
}
311312

312313
sourceSets {
313314
main {
314-
compileClasspath += configurations.customApi
315+
compileClasspath += configurations.customCompile
315316
runtimeClasspath += compileClasspath
316317
}
317318
}
@@ -322,7 +323,7 @@ project(':sbe-all') {
322323
}
323324

324325
javadoc {
325-
classpath += configurations.customApi
326+
classpath += configurations.customCompile
326327
source += project(':sbe-tool').sourceSets.main.allJava
327328
}
328329

@@ -332,7 +333,7 @@ project(':sbe-all') {
332333
}
333334

334335
shadowJar {
335-
configurations = [project.configurations.customApi]
336+
configurations = [project.configurations.customCompile]
336337
archiveClassifier.set ''
337338
manifest.attributes(
338339
'Main-Class': 'uk.co.real_logic.sbe.SbeTool',

0 commit comments

Comments
 (0)