Gradle nested jar dependency

Hi All,
We have a legacy jar which has nested jars inside it , something like
outerJar
class1
class2
innerJar1
class3
class4
and in my build gradle i have given outerJar dependency . So whenever i try to use classes from the inner jar ie class3 and try to compile the project , it fails . Am i missing something, or should i extract innerJar and add it to dependency along with outerJar