Talend Component Kit - Dependency jar files

Highlighted
Four Stars

Talend Component Kit - Dependency jar files

Hi All,

 

I have a component that has some dependencies as seen in  below snippet form my build.gradle. It compiles fine and I am building a car file and then installing it using the car file. However when I run a job with the component it complaints about java.lang.IllegalStateException: java.lang.NoClassDefFoundError: okhttp3/RequestBody , My quick search suggests that this may be because the component is picking up some other older version. of the okhttp library, how do I ensure the correct version is used by my component

dependencies {
provided group: 'org.talend.sdk.component', name: 'component-api', version: '1.1.15'
compile group: 'org.json', name: 'json', version: '20180130'
compile group: 'com.konghq', name:'unirest-java' ,version:'3.3.00'
compile group: 'com.squareup.okhttp3',name:'okhttp', version:'4.2.2'
// compile 'net.java.dev.jna:jna-platform:4.2.2'
// extraLibs fileTree(dir: 'libs', include: '*.jar')
// configurations.compile.extendsFrom(configurations.extraLibs)

}

 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now