apply plugin: 'java' apply plugin: 'eclipse' sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() } jar { baseName = 'PerforcePlugin' version = '0.1.0' manifest { attributes 'Plugin-Class': 'com.perforce.hws.plugin.perforce.PerforcePlugin', 'Plugin-Id': 'PerforcePlugin', 'Plugin-Version': '0.1.0', 'Plugin-Provider': 'Perforce Software' } } task plugin(type: Jar) { baseName = 'PerforcePlugin' version = '0.1.0' into('classes') extension('zip') with jar } build.dependsOn(plugin) test.dependsOn(plugin) dependencies { compile project(':core') compile project(':hws') compile project(':plugins:perforce:generated:java-sdk') compile project(':plugins:perforce:generated:spark-stubs') compile 'org.apache.httpcomponents:httpcore:4.4.5' testCompile project(path: ':core', configuration: 'testRuntime') testCompile project(':plugins:perforce:generated:java-sdk') } sourceSets { main { java { srcDir 'src/main/generated' } } } clean.dependsOn(':plugins:perforce:swagger:clean')