build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. plugins {
  2. id 'java'
  3. id 'org.springframework.boot' version '2.7.17'
  4. id 'io.spring.dependency-management' version '1.0.15.RELEASE'
  5. }
  6. group = 'com.atmob'
  7. version = '1.0.0'
  8. allprojects {
  9. apply plugin: 'java'
  10. apply plugin: 'org.springframework.boot'
  11. apply plugin: 'io.spring.dependency-management'
  12. java {
  13. sourceCompatibility = JavaVersion.VERSION_11
  14. targetCompatibility = JavaVersion.VERSION_11
  15. }
  16. repositories {
  17. maven { url 'https://mirrors.tuna.tsinghua.edu.cn/' }
  18. maven { url 'https://maven.aliyun.com/nexus/content/groups/public/'}
  19. maven {
  20. url "https://plugins.gradle.org/m2/"
  21. }
  22. mavenCentral()
  23. }
  24. dependencies {
  25. implementation 'org.springframework.boot:spring-boot-starter'
  26. annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
  27. annotationProcessor 'org.projectlombok:lombok'
  28. compileOnly 'org.projectlombok:lombok'
  29. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  30. }
  31. tasks.named('test') {
  32. useJUnitPlatform()
  33. }
  34. }