build.gradle.kts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. plugins {
  2. java
  3. id("org.springframework.boot") version "2.7.7"
  4. id("io.spring.dependency-management") version "1.0.15.RELEASE"
  5. }
  6. group = "com.gyee"
  7. version = "0.0.1"
  8. java.sourceCompatibility = JavaVersion.VERSION_1_8
  9. configurations {
  10. compileOnly {
  11. extendsFrom(configurations.annotationProcessor.get())
  12. }
  13. }
  14. repositories {
  15. mavenCentral()
  16. }
  17. dependencies {
  18. implementation("org.springframework.boot:spring-boot-starter")
  19. implementation("org.springframework.boot:spring-boot-starter-web")
  20. compileOnly("org.projectlombok:lombok")
  21. annotationProcessor("org.projectlombok:lombok")
  22. testImplementation("org.springframework.boot:spring-boot-starter-test")
  23. implementation("org.springframework.boot:spring-boot-starter-websocket")
  24. implementation("com.baomidou:mybatis-plus-boot-starter:3.5.3.1")
  25. implementation("com.alibaba:druid-spring-boot-starter:1.2.15")
  26. //implementation("mysql:mysql-connector-java:8.0.31")
  27. implementation("com.alibaba:fastjson:2.0.23")
  28. implementation("org.apache.commons:commons-lang3:3.12.0")
  29. implementation("org.postgresql:postgresql:42.4.0")
  30. implementation("org.springframework.boot:spring-boot-starter-data-jpa")
  31. implementation("cn.hutool:hutool-all:5.8.15")
  32. implementation("com.github.pagehelper:pagehelper-spring-boot-starter:1.4.1")
  33. implementation("com.auth0:java-jwt:3.4.0")
  34. }
  35. tasks.withType<Test> {
  36. useJUnitPlatform()
  37. }