.jar
fileI know you asked specifically for this:
Can anyone please provide me the documentation link and possibly an answer on how can I include dependencies inside ".jar"?
And while you can do this, see the answer from Uros, you have a few drawbacks:
Clearly you want to create a distribution? Let me show yo ua few more options.
Instead, please consider the approach taken in the JReleaser plugin, which can create a template-based script (script.cmd for Windows and just 'script' for unix/linux systems):
https://jreleaser.org/guide/latest/reference/assemble/java-archive.html
Using the dependency plugin, you just assemble all dependencies into a lib folder and then run the jreleaser goal. You will have such a directory layout:
myapp-1.0.0
|- bin
| |- myapp.cmd
| `- myapp(.sh)
`- lib
|- logback.jar
`- slf4j.jar
(just a simple example).
Additionally, this plugin creates a .zip or .tar.gz file which can be attached to your project as an artifact.