build.gradle 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. checkAntoraVersion {
  26. id = "org.springframework.antora.check-version"
  27. implementationClass = "org.springframework.gradle.antora.CheckAntoraVersionPlugin"
  28. }
  29. trang {
  30. id = "trang"
  31. implementationClass = "trang.TrangPlugin"
  32. }
  33. locks {
  34. id = "locks"
  35. implementationClass = "lock.GlobalLockPlugin"
  36. }
  37. managementConfiguration {
  38. id = "io.spring.convention.management-configuration"
  39. implementationClass = "io.spring.gradle.convention.ManagementConfigurationPlugin"
  40. }
  41. updateDependencies {
  42. id = "org.springframework.security.update-dependencies"
  43. implementationClass = "org.springframework.security.convention.versions.UpdateDependenciesPlugin"
  44. }
  45. sagan {
  46. id = "org.springframework.security.sagan"
  47. implementationClass = "org.springframework.gradle.sagan.SaganPlugin"
  48. }
  49. githubMilestone {
  50. id = "org.springframework.github.milestone"
  51. implementationClass = "org.springframework.gradle.github.milestones.GitHubMilestonePlugin"
  52. }
  53. githubChangelog {
  54. id = "org.springframework.github.changelog"
  55. implementationClass = "org.springframework.gradle.github.changelog.GitHubChangelogPlugin"
  56. }
  57. s101 {
  58. id = "s101"
  59. implementationClass = "s101.S101Plugin"
  60. }
  61. }
  62. }
  63. configurations {
  64. implementation {
  65. exclude module: 'groovy-all'
  66. }
  67. }
  68. dependencies {
  69. implementation 'com.google.code.gson:gson:2.8.6'
  70. implementation 'com.thaiopensource:trang:20091111'
  71. implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
  72. implementation 'org.yaml:snakeyaml:1.30'
  73. implementation localGroovy()
  74. implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'
  75. implementation 'io.projectreactor:reactor-core:3.4.19'
  76. implementation 'gradle.plugin.org.gretty:gretty:3.0.1'
  77. implementation 'com.apollographql.apollo:apollo-runtime:2.4.5'
  78. implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
  79. implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
  80. implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
  81. implementation 'io.spring.nohttp:nohttp-gradle:0.0.10'
  82. implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
  83. implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
  84. implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.24.20'
  85. implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
  86. testImplementation platform('org.junit:junit-bom:5.8.2')
  87. testImplementation "org.junit.jupiter:junit-jupiter-api"
  88. testImplementation "org.junit.jupiter:junit-jupiter-params"
  89. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  90. testImplementation 'org.apache.commons:commons-io:1.3.2'
  91. testImplementation 'org.assertj:assertj-core:3.13.2'
  92. testImplementation 'org.mockito:mockito-core:3.12.4'
  93. testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
  94. testImplementation "com.squareup.okhttp3:mockwebserver:3.14.9"
  95. }
  96. tasks.named('test', Test).configure {
  97. onlyIf { !project.hasProperty("buildSrc.skipTests") }
  98. useJUnitPlatform()
  99. jvmArgs(
  100. '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
  101. '--add-opens', 'java.base/java.util=ALL-UNNAMED'
  102. )
  103. }