apply plugin: 'findbugs' apply plugin: 'checkstyle' dependencies { compile project(':p4base') compile project(':git_fusion') compile fileTree(dir: 'vendor', include: '*.jar', exclude: '*-sources.jar') runtime files('../doc/build/libs/helix-web-services-2016.1.0-doc.jar') runtime files('../swagger/build/libs/helix-web-services-swagger-2016.1.0.jar') } // Note: Vendor dependencies are downloaded locally dependencies { vendor 'com.esotericsoftware.yamlbeans:yamlbeans:1.09' vendor 'com.esotericsoftware.yamlbeans:yamlbeans:1.09:sources' vendor 'com.google.http-client:google-http-client:1.21.0' vendor 'com.google.http-client:google-http-client:1.21.0:sources' vendor 'com.google.http-client:google-http-client-gson:1.21.0' vendor 'com.google.http-client:google-http-client-gson:1.21.0:sources' vendor 'com.google.http-client:google-http-client-jackson2:1.21.0' vendor 'com.google.http-client:google-http-client-jackson2:1.21.0:sources' vendor 'com.sparkjava:spark-core:2.5' vendor 'com.sparkjava:spark-core:2.5:sources' vendor 'io.jsonwebtoken:jjwt:0.6.0' vendor 'io.jsonwebtoken:jjwt:0.6.0:sources' vendor 'net.java.dev.jna:jna:4.2.1' vendor 'net.java.dev.jna:jna:4.2.1:sources' vendor 'org.apache.logging.log4j:log4j-core:2.5' vendor 'org.apache.logging.log4j:log4j-core:2.5:sources' vendor 'org.apache.logging.log4j:log4j-slf4j-impl:2.5' vendor 'org.apache.logging.log4j:log4j-slf4j-impl:2.5:sources' vendor 'org.apache.commons:commons-lang3:3.4' testCompile 'org.testng:testng:6.9.9' testCompile 'org.testng:testng:6.9.9:sources' testCompile 'org.testng:testng:6.9.9' testCompile 'org.easymock:easymock:3.4' testCompile 'org.easymock:easymock:3.4:sources' } configurations { // Pulled in via p4base vendor.exclude group: 'org.slf4j', module: 'slf4j-api' vendor.exclude group: 'org.slf4j', module: 'slf4j-simple' } findbugs { ignoreFailures = true } tasks.withType(FindBugs) { reports { xml.enabled false html.enabled true } } tasks.withType(Checkstyle) { reports { xml.enabled false html.enabled true } } // This will create a "fat jar" jar { archiveName "hws.jar" dependsOn ':doc:docJar', configurations.runtime, ":swagger:swaggerJar" from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } manifest { attributes("Main-Class": "com.perforce.hws.server.HelixWebServices" ) } }