/esolang/bf/java/build.gradle

https://github.com/mcandre/mcandre · Gradle · 51 lines · 40 code · 11 blank · 0 comment · 0 complexity · 0cd0a3d00f7851ea6e02223e215257cc MD5 · raw file

  1. plugins {
  2. id 'com.github.johnrengelman.shadow' version '1.2.3'
  3. id 'org.sonarqube' version '1.1'
  4. }
  5. apply plugin: 'java'
  6. apply plugin: 'checkstyle'
  7. apply plugin: 'findbugs'
  8. apply plugin: 'pmd'
  9. apply plugin: 'jacoco'
  10. sourceCompatibility = '1.7'
  11. compileJava {
  12. options.compilerArgs << '-Xlint:all'
  13. }
  14. checkstyle {
  15. configFile = "${rootProject.projectDir}/config/checkstyle/checkstyle.xml" as File
  16. configProperties = [configDir: "${rootProject.projectDir}/config"]
  17. }
  18. findbugs {
  19. sourceSets = [sourceSets.main]
  20. }
  21. tasks.withType(FindBugs) {
  22. reports {
  23. xml.enabled = false
  24. html.enabled = true
  25. }
  26. }
  27. pmd { consoleOutput = true }
  28. jar {
  29. manifest {
  30. attributes 'Main-Class': 'us.yellosoft.bf.Brainfuck'
  31. }
  32. }
  33. repositories {
  34. mavenCentral()
  35. }
  36. dependencies {
  37. compile 'com.offbytwo:docopt:0.6.0.20150202'
  38. testCompile 'junit:junit:4.12'
  39. testCompile 'org.slf4j:slf4j-log4j12:1.7.12'
  40. }