IBM / JTOpen

IBM Toolbox for Java, an IBM i communications library
https://ibm.github.io/JTOpen/
Other
56 stars 26 forks source link

How to specify in maven dependency tag - to access jt400 compiled with Java 11 #167

Closed vikramsjn closed 3 months ago

vikramsjn commented 4 months ago

Hello,

I noticed that the artifact in the Maven repository contains jars compiled with Java 11. I am unsure how to access these jars in my project when specifying jt400 as a dependency. The documentation at https://github.com/IBM/JTOpen?tab=readme-ov-file#download-information mentions in the Maven Coordinate (v20) column that the value java11 should be used to access jtopen-x.y.z-java11.jar. However, I am uncertain about how to specify this java11 when adding the dependency to my project.

Please help me understand. Thanks

NicolaIsotta commented 4 months ago

You should use the classifier tag:

<dependency>
    <groupId>net.sf.jt400</groupId>
    <artifactId>jt400</artifactId>
    <version>20.0.7</version>
    <classifier>java11</classifier>
</dependency>
vikramsjn commented 3 months ago

Oh... Thanks