build.gradle.kts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. mavenLocal()
  16. maven (url="https://maven.aliyun.com/repository/public")
  17. mavenCentral()
  18. }
  19. dependencies {
  20. implementation("org.springframework.boot:spring-boot-starter")
  21. implementation("org.springframework.boot:spring-boot-starter-web")
  22. compileOnly("org.projectlombok:lombok")
  23. annotationProcessor("org.projectlombok:lombok")
  24. testImplementation("org.springframework.boot:spring-boot-starter-test")
  25. implementation("org.springframework.boot:spring-boot-starter-websocket")
  26. implementation("com.baomidou:mybatis-plus-boot-starter:3.5.3.1")
  27. implementation("com.baomidou:dynamic-datasource-spring-boot-starter:3.3.2")
  28. implementation("com.alibaba:druid-spring-boot-starter:1.2.15")
  29. //implementation("mysql:mysql-connector-java:8.0.31")
  30. implementation("com.alibaba:fastjson:2.0.23")
  31. implementation("org.apache.commons:commons-lang3:3.12.0")
  32. implementation("org.postgresql:postgresql:42.4.0")
  33. implementation("org.springframework.boot:spring-boot-starter-data-jpa")
  34. implementation("cn.hutool:hutool-all:5.8.15")
  35. implementation("com.github.pagehelper:pagehelper-spring-boot-starter:1.4.1")
  36. implementation("com.auth0:java-jwt:3.4.0")
  37. }
  38. tasks.withType<Test> {
  39. useJUnitPlatform()
  40. }