apply plugin: 'maven' apply plugin: 'java' apply plugin: 'application' repositories { maven { url 'http://artifactory.bnr.perforce.com/artifactory/repos-p4oauth' } mavenLocal() } mainClassName = "com.perforce.workshop.tjuricek.p4oauth.test_server.TestServer" dependencies { compile("commons-io:commons-io:2.4") compile('com.github.jknack:handlebars:1.3.1') compile('com.perforce.workshop.tjuricek:p4java_ext:0.1.1') compile('org.apache.httpcomponents:httpclient:4.3.4') compile('org.eclipse.jetty:jetty-server:9.2.0.RC0') compile("com.fasterxml.jackson.core:jackson-databind:2.3.1") } jar { archiveName = "test_server.jar" manifest { attributes 'Main-Class': mainClassName } doFirst { from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } } exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' }