build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. buildscript {
  2. configurations.all {
  3. resolutionStrategy.dependencySubstitution {
  4. substitute module('org.apache.xerces:xercesImpl') with module('xerces:xercesImpl:2.9.1')
  5. substitute module('org.apache.xerces:resolver') with module('xerces:resolver:2.9.1')
  6. }
  7. }
  8. dependencies {
  9. classpath 'io.spring.gradle:spring-build-conventions:0.0.38'
  10. classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
  11. classpath 'io.spring.nohttp:nohttp-gradle:0.0.10'
  12. classpath "io.freefair.gradle:aspectj-plugin:4.1.6"
  13. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
  14. }
  15. repositories {
  16. maven {
  17. url = 'https://repo.spring.io/plugins-snapshot'
  18. if (project.hasProperty('artifactoryUsername')) {
  19. credentials {
  20. username "$artifactoryUsername"
  21. password "$artifactoryPassword"
  22. }
  23. }
  24. }
  25. maven { url 'https://plugins.gradle.org/m2/' }
  26. }
  27. }
  28. apply plugin: 'io.spring.nohttp'
  29. apply plugin: 'locks'
  30. apply plugin: 'io.spring.convention.root'
  31. apply plugin: 'org.jetbrains.kotlin.jvm'
  32. group = 'org.springframework.security'
  33. description = 'Spring Security'
  34. ext.snapshotBuild = version.contains("SNAPSHOT")
  35. ext.releaseBuild = version.contains("SNAPSHOT")
  36. ext.milestoneBuild = !(snapshotBuild || releaseBuild)
  37. dependencyManagementExport.projects = subprojects.findAll { !it.name.contains('-boot') }
  38. repositories {
  39. mavenCentral()
  40. }
  41. subprojects {
  42. plugins.withType(JavaPlugin) {
  43. project.sourceCompatibility='1.8'
  44. }
  45. tasks.withType(JavaCompile) {
  46. options.encoding = "UTF-8"
  47. }
  48. }