Unable to create uberjar - looking for example

First, I am a Gradle novice.

I have had convert a working Maven project to Gradle. Everything now compiles under Gradle, but the final jar file does not contain the same information.

What I need is an uberjar. This is for a Java plugin, where the application I am a plugin to requires all dependencies to be included within my released jar file. Under Maven, there was a lib directory within the jar file containing all of the dependencies.

All of the examples I can find are prior to 2018 and some part of the examples are depreciated or the examples just do not work.

Does anyone have a straight forward example of how to include dependency jar files within my Gradle created jar?

Any help would be much appreciated.

TIA.