build.gradle 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. plugins {
  2. id "java-gradle-plugin"
  3. id "java"
  4. id "groovy"
  5. id 'com.apollographql.apollo' version '2.4.5'
  6. }
  7. sourceCompatibility = 1.8
  8. repositories {
  9. gradlePluginPortal()
  10. mavenCentral()
  11. maven { url 'https://repo.spring.io/plugins-release/' }
  12. }
  13. sourceSets {
  14. main {
  15. java {
  16. srcDirs = []
  17. }
  18. groovy {
  19. srcDirs += ["src/main/java"]
  20. }
  21. }
  22. }
  23. gradlePlugin {
  24. plugins {
  25. trang {
  26. id = "trang"
  27. implementationClass = "trang.TrangPlugin"
  28. }
  29. locks {
  30. id = "locks"
  31. implementationClass = "lock.GlobalLockPlugin"
  32. }
  33. managementConfiguration {
  34. id = "io.spring.convention.management-configuration"
  35. implementationClass = "io.spring.gradle.convention.ManagementConfigurationPlugin"
  36. }
  37. updateDependencies {
  38. id = "org.springframework.security.update-dependencies"
  39. implementationClass = "org.springframework.security.convention.versions.UpdateDependenciesPlugin"
  40. }
  41. sagan {
  42. id = "org.springframework.security.sagan"
  43. implementationClass = "org.springframework.gradle.sagan.SaganPlugin"
  44. }
  45. githubMilestone {
  46. id = "org.springframework.github.milestone"
  47. implementationClass = "org.springframework.gradle.github.milestones.GitHubMilestonePlugin"
  48. }
  49. githubChangelog {
  50. id = "org.springframework.github.changelog"
  51. implementationClass = "org.springframework.gradle.github.changelog.GitHubChangelogPlugin"
  52. }
  53. s101 {
  54. id = "s101"
  55. implementationClass = "s101.S101Plugin"
  56. }
  57. }
  58. }
  59. configurations {
  60. implementation {
  61. exclude module: 'groovy-all'
  62. }
  63. }
  64. dependencies {
  65. implementation 'com.google.code.gson:gson:2.8.6'
  66. implementation 'com.thaiopensource:trang:20091111'
  67. implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
  68. implementation localGroovy()
  69. implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'
  70. implementation 'io.projectreactor:reactor-core:3.4.13'
  71. implementation 'gradle.plugin.org.gretty:gretty:3.0.1'
  72. implementation 'com.apollographql.apollo:apollo-runtime:2.4.5'
  73. implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
  74. implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
  75. implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
  76. implementation 'io.spring.nohttp:nohttp-gradle:0.0.10'
  77. implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
  78. implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
  79. implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.24.20'
  80. implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
  81. testImplementation platform('org.junit:junit-bom:5.8.2')
  82. testImplementation "org.junit.jupiter:junit-jupiter-api"
  83. testImplementation "org.junit.jupiter:junit-jupiter-params"
  84. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  85. testImplementation 'org.apache.commons:commons-io:1.3.2'
  86. testImplementation 'org.assertj:assertj-core:3.13.2'
  87. testImplementation 'org.mockito:mockito-core:3.12.4'
  88. testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
  89. testImplementation "com.squareup.okhttp3:mockwebserver:3.14.9"
  90. }
  91. test {
  92. onlyIf { !project.hasProperty("buildSrc.skipTests") }
  93. useJUnitPlatform()
  94. }