/**
* Copyright (C) 2016 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
mainClassName = 'com.perforce.hws.HelixWebServices'
repositories {
mavenCentral()
}
dependencies {
compile project(':core')
compile project(':hws:generated:java-sdk')
compile 'net.java.dev.jna:jna:4.2.1'
testCompile 'org.apache.commons:commons-compress:1.10'
testCompile 'junit:junit:4.12'
}
jar {
archiveName = baseName + '.jar'
manifest {
attributes 'Main-Class': 'com.perforce.hws.HelixWebServices',
'Class-Path': '.',
'Specification-Title': 'HelixWebServices',
'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'
}
sourceSets {
main {
java {
srcDir 'src/main/generated'
}
}
}
clean.dependsOn(':hws:swagger:clean')