A Gradle plugin to embed dependencies (A.K.A. fat
or uber
jar) in the produced jar
.
Apply the plugin:
plugins {
java
id("io.github.gmazzo.dependencies.embedded") version "<latest>"
}
dependencies {
embedded("org.apache.commons:commons-lang3:3.14.0")
}
Then the jar
task will have the classes from org.apache.commons:commons-lang3:3.14.0
(and it won't be a dependency when published)