Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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)

}

 

Labels (2)
0 Replies