build.gradle 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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 = JavaVersion.VERSION_17
  8. repositories {
  9. gradlePluginPortal()
  10. mavenCentral()
  11. maven { url 'https://repo.spring.io/milestone' }
  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.AntoraVersionPlugin"
  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. updateProjectVersion {
  46. id = "org.springframework.security.update-version"
  47. implementationClass = "org.springframework.security.convention.versions.UpdateProjectVersionPlugin"
  48. }
  49. sagan {
  50. id = "org.springframework.security.sagan"
  51. implementationClass = "org.springframework.gradle.sagan.SaganPlugin"
  52. }
  53. githubMilestone {
  54. id = "org.springframework.github.milestone"
  55. implementationClass = "org.springframework.gradle.github.milestones.GitHubMilestonePlugin"
  56. }
  57. githubChangelog {
  58. id = "org.springframework.github.changelog"
  59. implementationClass = "org.springframework.gradle.github.changelog.GitHubChangelogPlugin"
  60. }
  61. githubRelease {
  62. id = "org.springframework.github.release"
  63. implementationClass = "org.springframework.gradle.github.release.GitHubReleasePlugin"
  64. }
  65. s101 {
  66. id = "s101"
  67. implementationClass = "s101.S101Plugin"
  68. }
  69. }
  70. }
  71. configurations {
  72. implementation {
  73. exclude module: 'groovy-all'
  74. }
  75. }
  76. dependencies {
  77. implementation 'com.google.code.gson:gson:2.8.6'
  78. implementation 'com.thaiopensource:trang:20091111'
  79. implementation 'net.sourceforge.saxon:saxon:9.1.0.8'
  80. implementation 'org.yaml:snakeyaml:1.30'
  81. implementation localGroovy()
  82. implementation 'io.github.gradle-nexus:publish-plugin:1.1.0'
  83. implementation 'io.projectreactor:reactor-core:3.6.0-M2'
  84. implementation 'org.gretty:gretty:4.0.3'
  85. implementation 'com.apollographql.apollo:apollo-runtime:2.4.5'
  86. implementation 'com.github.ben-manes:gradle-versions-plugin:0.38.0'
  87. implementation 'com.github.spullara.mustache.java:compiler:0.9.4'
  88. implementation 'io.spring.javaformat:spring-javaformat-gradle-plugin:0.0.15'
  89. implementation 'io.spring.nohttp:nohttp-gradle:0.0.11'
  90. implementation 'net.sourceforge.htmlunit:htmlunit:2.37.0'
  91. implementation 'org.hidetake:gradle-ssh-plugin:2.10.1'
  92. implementation 'org.jfrog.buildinfo:build-info-extractor-gradle:4.29.0'
  93. implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.7.1'
  94. testImplementation platform('org.junit:junit-bom:5.10.0-RC1')
  95. testImplementation "org.junit.jupiter:junit-jupiter-api"
  96. testImplementation "org.junit.jupiter:junit-jupiter-params"
  97. testImplementation "org.junit.jupiter:junit-jupiter-engine"
  98. testImplementation 'org.apache.commons:commons-io:1.3.2'
  99. testImplementation 'org.assertj:assertj-core:3.13.2'
  100. testImplementation 'org.mockito:mockito-core:3.12.4'
  101. testImplementation 'org.mockito:mockito-junit-jupiter:3.12.4'
  102. testImplementation "com.squareup.okhttp3:mockwebserver:3.14.9"
  103. }
  104. tasks.named('test', Test).configure {
  105. onlyIf { !project.hasProperty("buildSrc.skipTests") }
  106. useJUnitPlatform()
  107. jvmArgs(
  108. '--add-opens', 'java.base/java.lang=ALL-UNNAMED',
  109. '--add-opens', 'java.base/java.util=ALL-UNNAMED'
  110. )
  111. }