build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. buildscript {
  2. dependencies {
  3. classpath 'io.spring.gradle:spring-build-conventions:0.0.29.BUILD-SNAPSHOT'
  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. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
  8. }
  9. repositories {
  10. maven { url 'https://repo.spring.io/plugins-snapshot' }
  11. maven { url 'https://plugins.gradle.org/m2/' }
  12. }
  13. }
  14. apply plugin: 'io.spring.nohttp'
  15. apply plugin: 'locks'
  16. apply plugin: 'io.spring.convention.root'
  17. apply plugin: 'org.jetbrains.kotlin.jvm'
  18. group = 'org.springframework.security'
  19. description = 'Spring Security'
  20. ext.snapshotBuild = version.contains("SNAPSHOT")
  21. ext.releaseBuild = version.contains("SNAPSHOT")
  22. ext.milestoneBuild = !(snapshotBuild || releaseBuild)
  23. dependencyManagementExport.projects = subprojects.findAll { !it.name.contains('-boot') }
  24. repositories {
  25. mavenCentral()
  26. }
  27. subprojects {
  28. plugins.withType(JavaPlugin) {
  29. project.sourceCompatibility='1.8'
  30. }
  31. tasks.withType(JavaCompile) {
  32. options.encoding = "UTF-8"
  33. }
  34. }