plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' repositories { mavenCentral() } dependencies { compile group: 'cn.hutool', name: 'hutool-all', version: '5.4.2' compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.66' testCompile group: 'junit', name: 'junit', version: '4.12' } jar { archivesBaseName = 'password-generator' archiveVersion = '0.0.1' manifest { attributes 'Main-Class': 'com.fr.password.tool.Runner' } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } }