plugins { id 'java' } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'application' group 'flansupdater' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 targetCompatibility = 1.8 mainClassName = 'ch.m4th1eu.flansupdater.Main' compileJava.options.encoding = 'UTF-8' repositories { mavenCentral() } dependencies { compile group: 'commons-io', name: 'commons-io', version: '2.4' compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6' compile group: 'net.lingala.zip4j', name: 'zip4j', version: '2.2.8' testCompile "junit:junit:4.12" } jar { baseName = 'flans-updater' version = '0.1' from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } manifest { attributes( 'Main-Class': 'ch.m4th1eu.flansupdater.Main' ) } }