Skip to content

Commit

Permalink
build: TMP: added explicit dependency on opencsv
Browse files Browse the repository at this point in the history
Note:
  - Gradle MOJO2 does not properly expose API dependencie, hence the
    consumer has to explicitly add compile time dependency for OpenCSV.
  - This NEEDS to be removed
  • Loading branch information
mmalohlava committed Apr 19, 2023
1 parent 175dcfc commit 2351d38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/transform/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ dependencies {
implementation project(':common:rest-java-model')
implementation group: 'ai.h2o', name: 'mojo2-runtime-api'
implementation group: 'ai.h2o', name: 'mojo2-runtime-impl'

constraints {
// because https://app.snyk.io/vuln/SNYK-JAVA-COMMONSBEANUTILS-460111
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
}
implementation group: 'com.google.guava', name: 'guava'
implementation group: 'org.slf4j', name: 'slf4j-api'
// FIXME(MM): this should not be required, since the dependency should be provided
// by mojo2-runtime-impl. The problem is that mojo2 does not expose that dependency
// as compile time dependency for consumers.
implementation group: 'com.opencsv', name: 'opencsv', version: '5.7.1'

testImplementation group: 'com.google.truth.extensions', name: 'truth-java8-extension'
testImplementation group: 'org.mockito', name: 'mockito-inline', version: '3.4.0'
Expand Down

0 comments on commit 2351d38

Please sign in to comment.