/* Run this script as follows: ./gradlew -b owasp_build.gradle shadowJar It creates dependency-check-gradle-6.2.2.jar which will contain all necessary 'batteries'. It worked with gradle 5.6.4 */ buildscript { repositories { jcenter() }. dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.2' } } apply plugin: 'java' apply plugin: 'com.github.johnrengelman.shadow' repositories { mavenCentral() } dependencies { compile 'org.owasp:dependency-check-gradle:6.2.2' } shadowJar { destinationDir = file('.') archiveBaseName.set('dependency-check-gradle') archiveVersion.set('6.2.2') mergeServiceFiles() }