plugins { id 'java' id 'application' } group 'xyz.vallat.louis' version '0.1-SNAPSHOT' apply plugin : 'java' ext { javaMainClass = 'xyz.vallat.louis.MovieQuoteBot' } application { mainClassName = javaMainClass } jar { manifest { attributes 'Main-Class': javaMainClass } duplicatesStrategy = DuplicatesStrategy.EXCLUDE from { configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) } } } repositories { mavenCentral() } dependencies { implementation 'ch.qos.logback:logback-classic:1.2.3' }