I published sapjco3.jar v3.0.2 artifact into our Maven repo, and of course it renames it to sapjc03-3.0.2.jar. I then have a compile dependency on that jar in my build.gradle file, like so
However, the particular jar file does NOT allow rename, and I get the following run time error.
java.lang.ExceptionInInitializerError: Illegal JCo archive "sapjco3-3.0.2.jar". It is not allowed to rename or repackage the original archive "sapjco3.jar". 74
The solutions I see deal with a Maven solution by using the stripVersion option in the POM file, but I use Gradle, not Maven.
How can I fix this?