build.gradle 1.0 KB

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