Should you provide dependent libraries in client jar?

前端 未结 5 686
眼角桃花
眼角桃花 2021-02-02 14:25

We\'re providing a client jar for other internal apps to connect to our app\'s REST API. Our API depends on a few standard Jakarta libraries. Is it a best practice to include

5条回答
  •  Happy的楠姐
    2021-02-02 15:14

    You should include any jars you depend on. If you allow a client to provide standard jars, you rely on them to supply the correct version. It's a lot more painless for you both if you include the versions that you know your app works with.

提交回复
热议问题