build.gradle 969 B

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