build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. buildscript {
  2. dependencies {
  3. classpath 'io.spring.gradle:spring-build-conventions:0.0.38'
  4. classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
  5. classpath 'io.spring.nohttp:nohttp-gradle:0.0.8'
  6. }
  7. repositories {
  8. maven {
  9. url = 'https://repo.spring.io/plugins-snapshot'
  10. if (project.hasProperty('artifactoryUsername')) {
  11. credentials {
  12. username "$artifactoryUsername"
  13. password "$artifactoryPassword"
  14. }
  15. }
  16. }
  17. maven { url 'https://plugins.gradle.org/m2/' }
  18. }
  19. }
  20. apply plugin: 'io.spring.nohttp'
  21. apply plugin: 'locks'
  22. apply plugin: 'io.spring.convention.root'
  23. group = 'org.springframework.security'
  24. description = 'Spring Authorization Server'
  25. ext.snapshotBuild = version.contains("SNAPSHOT")
  26. repositories {
  27. mavenCentral()
  28. }
  29. dependencyManagementExport.projects = subprojects.findAll { !it.name.contains('-boot') }
  30. subprojects {
  31. plugins.withType(JavaPlugin) {
  32. project.sourceCompatibility = "1.8"
  33. }
  34. tasks.withType(JavaCompile) {
  35. options.encoding = "UTF-8"
  36. }
  37. }
  38. nohttp {
  39. allowlistFile = project.file("etc/nohttp/allowlist.lines")
  40. }