Embed Dependenices without any plugin in Gradle
gradle/embed-dependencies
The simplest way to embed dependencies in Gradle without any plugin
1jar {
2    // Copy from compileClasspath
3    from {
4        // handling duplicate file strategy
5        duplicatesStrategy = DuplicatesStrategy.WARN
6        
7        // copy all files from compileClasspath
8        configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
9    }
10}
Unauthorized reproduction of original content on this website is prohibited.