build.gradle.kts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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.baomidou:dynamic-datasource-spring-boot-starter:3.3.2")
  26. implementation("com.alibaba:druid-spring-boot-starter:1.2.15")
  27. //implementation("mysql:mysql-connector-java:8.0.31")
  28. implementation("com.alibaba:fastjson:2.0.23")
  29. implementation("org.apache.commons:commons-lang3:3.12.0")
  30. implementation("org.postgresql:postgresql:42.4.0")
  31. implementation("org.springframework.boot:spring-boot-starter-data-jpa")
  32. implementation("cn.hutool:hutool-all:5.8.15")
  33. implementation("com.github.pagehelper:pagehelper-spring-boot-starter:1.4.1")
  34. implementation("com.auth0:java-jwt:3.4.0")
  35. }
  36. tasks.withType<Test> {
  37. useJUnitPlatform()
  38. }