build.gradle 1.3 KB

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