Skip to content

Commit 565b957

Browse files
authored
MINOR: [Java] Fix dependencies scope in flight-sql module (#36132)
### Rationale for this change flight-sql module advertises dependencies which are not actually used by the published code, causing those dependencies to show up in downstream projects. ### What changes are included in this PR? Fix dependencies scope in flight-sql module: * move hamcrest to test scope as it is only used during unit tests * add optional flag for commons-cli as it is only used in the example class ### Are these changes tested? No new test. Confirming that there's no build issue ### Are there any user-facing changes? No Authored-by: Laurent Goujon <laurent@apache.org> Signed-off-by: David Li <li.davidm96@gmail.com>
1 parent 9923a8b commit 565b957

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

java/flight/flight-sql/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@
102102
<dependency>
103103
<groupId>org.hamcrest</groupId>
104104
<artifactId>hamcrest</artifactId>
105+
<scope>test</scope>
105106
</dependency>
106107
<dependency>
107108
<groupId>commons-cli</groupId>
108109
<artifactId>commons-cli</artifactId>
109110
<version>1.4</version>
111+
<optional>true</optional>
110112
</dependency>
111113
</dependencies>
112114

0 commit comments

Comments
 (0)