Advertisement
Guest User

Untitled

a guest
Aug 19th, 2015
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apply plugin: 'java'
  2. apply plugin: 'eclipse'
  3.  
  4. dependencies {
  5.     compile files('src/main/resources/lib/axis.jar')
  6.     // MANY MORE       
  7. }
  8.    
  9. tasks.withType(JavaCompile) {
  10.     options.compilerArgs << "-Xlint:deprecation"
  11.         options.warnings = false
  12. }
  13.    
  14. processResources.doLast( {
  15. copy {
  16.     from( sourceSets.main.java.srcDirs ) {
  17.         include '**/*.properties'
  18.         include '**/*.xml'
  19.         include '**/*.htm'
  20.     }
  21.     into sourceSets.main.output.classesDir
  22. }
  23. })
  24.    
  25. tasks.withType(JavaCompile) {
  26.     options.incremental = true
  27. }
  28.    
  29. task compile
  30. compile.dependsOn compileJava, processResources, compileTestJava, processTestResources
Advertisement
RAW Paste Data Copied
Advertisement