Skip to content
Chen

Command Palette

Search for a command to run...

Embed Dependenices without any plugin in Gradlegradle/embed-dependenciesThe 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}