/** * Copyright (C) 2015 Perforce Software. All rights reserved. * * Please see README-LICENSE.txt in top-level folder of this distribution. */ apply plugin: 'application' apply plugin: 'java' apply plugin: 'eclipse' eclipse { classpath { downloadSources=true } } project.ext.ver = project.hasProperty('ver') ? project.ext.ver : 'ENGINEERING.BUILD' version = project.ext.ver sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() } dependencies { compile project(':api') compile 'commons-fileupload:commons-fileupload:1.3.1' compile 'com.google.code.gson:gson:2.3.1' compile 'org.apache.commons:commons-exec:1.3' compile 'org.apache.commons:commons-pool2:2.0' testCompile 'org.apache.commons:commons-compress:1.10' testCompile 'junit:junit:4.12' } jar { archiveName = baseName + '.jar' manifest { attributes 'Main-Class': 'com.perforce.hive.Main', 'Class-Path': '.', 'Specification-Title': 'P4M', 'Specification-Version': '0.1.0', 'Specification-Vendor': 'Perforce Software', 'Implementation-Title': archiveName, 'Implementation-Version': '0.1.0', 'Implementation-Vendor': 'Perforce Software' } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' }