/** * Copyright (C) 2015 Perforce Software. All rights reserved. * * Please see README-LICENSE.txt in top-level folder of this distribution. */ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'idea' 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 'com.sparkjava:spark-core:2.2' compile 'com.sparkjava:spark-template-freemarker:2.0.0' compile 'com.sparkjava:spark-template-mustache:1.0.0' compile 'com.perforce:p4java:2014.1.965322' compile 'commons-fileupload:commons-fileupload:1.3.1' compile 'org.slf4j:slf4j-api:1.7.12' compile 'org.slf4j:slf4j-log4j12:1.7.12' compile 'com.google.code.gson:gson:2.3.1' compile 'org.apache.httpcomponents:httpclient:4.5' compile 'org.apache.commons:commons-exec:1.3' compile 'commons-pool:commons-pool:1.6' } jar { archiveName = baseName + '.jar' manifest { attributes 'Main-Class': 'com.perforce.spark.Main', 'Class-Path': '.', 'Specification-Title': 'P4M', 'Specification-Version': version, 'Specification-Vendor': 'Perforce Software', 'Implementation-Title': archiveName, 'Implementation-Version': version, 'Implementation-Vendor': 'Perforce Software' } from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' }