build.gradle 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apply plugin: "java-gradle-plugin"
  2. apply plugin: 'java'
  3. apply plugin: 'groovy'
  4. sourceCompatibility = 1.8
  5. repositories {
  6. jcenter()
  7. gradlePluginPortal()
  8. mavenCentral()
  9. maven { url 'https://repo.spring.io/plugins-release/' }
  10. }
  11. gradlePlugin {
  12. plugins {
  13. trang {
  14. id = "trang"
  15. implementationClass = "trang.TrangPlugin"
  16. }
  17. locks {
  18. id = "locks"
  19. implementationClass = "lock.GlobalLockPlugin"
  20. }
  21. }
  22. }
  23. configurations {
  24. implementation {
  25. exclude module: 'groovy-all'
  26. }
  27. }
  28. dependencies {
  29. implementation 'com.thaiopensource:trang:20091111'
  30. implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
  31. implementation localGroovy()
  32. implementation 'com.github.ben-manes:gradle-versions-plugin:0.25.0'
  33. implementation 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.1'
  34. implementation 'io.spring.gradle:dependency-management-plugin:1.0.9.RELEASE'
  35. implementation 'io.spring.gradle:docbook-reference-plugin:0.3.1'
  36. implementation 'io.spring.gradle:propdeps-plugin:0.0.10.RELEASE'
  37. implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
  38. implementation 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
  39. implementation 'org.asciidoctor:asciidoctor-gradle-jvm:3.1.0'
  40. implementation 'org.asciidoctor:asciidoctor-gradle-jvm-pdf:3.1.0'
  41. implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
  42. implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.9.10'
  43. implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
  44. testImplementation 'junit:junit:4.12'
  45. testImplementation 'org.apache.commons:commons-io:1.3.2'
  46. testImplementation 'org.assertj:assertj-core:3.13.2'
  47. testImplementation 'org.mockito:mockito-core:3.0.0'
  48. testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
  49. }
  50. test.onlyIf { !project.hasProperty("buildSrc.skipTests") }