plugins { id 'java' id 'application' } group 'ley.anvil' version '1.1-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenCentral() maven { url 'https://jitpack.io' } } dependencies { compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6' compile "com.github.TheRandomLabs:CurseAPI:master-SNAPSHOT" compile 'org.apache.commons:commons-csv:1.8' testCompile group: 'junit', name: 'junit', version: '4.12' compile 'org.slf4j:slf4j-simple:2.0.0-alpha1' } sourceSets { main { resources { srcDirs "src/main/resources" } } } mainClassName = 'ley.anvil.modpacktools.Main' //create a single Jar with all dependencies task fatJar(type: Jar) { clean manifest { attributes 'Main-Class': mainClassName } archiveBaseName = 'ModPackTools' from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } with jar }