You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.4 KiB

5 years ago
  1. buildscript {
  2. ext {
  3. springBootVersion = '2.2.5.RELEASE'
  4. }
  5. repositories {
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  10. }
  11. }
  12. apply plugin: 'java'
  13. apply plugin: 'eclipse'
  14. apply plugin: 'org.springframework.boot'
  15. apply plugin: 'io.spring.dependency-management'
  16. sourceCompatibility = 1.8
  17. targetCompatibility = 1.8
  18. repositories {
  19. maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public' }
  20. maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' }
  21. maven { name "M2" ; url 'https://plugins.gradle.org/m2/' }
  22. }
  23. dependencies {
  24. implementation 'org.springframework.boot:spring-boot-starter-aop'
  25. implementation 'org.springframework.boot:spring-boot-configuration-processor'
  26. implementation 'org.springframework.boot:spring-boot-devtools'
  27. // implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
  28. implementation 'org.springframework.boot:spring-boot-starter-freemarker'
  29. implementation 'org.springframework.boot:spring-boot-starter-security'
  30. implementation 'org.springframework.boot:spring-boot-starter-web'
  31. implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
  32. //测试
  33. testCompile('org.springframework.boot:spring-boot-starter-test')
  34. testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version:'5.6.2'
  35. testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version:'5.6.2'
  36. testImplementation 'org.springframework.security:spring-security-test'
  37. //阿里duid
  38. compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.10'
  39. compile("com.alibaba:fastjson:1.2.30")
  40. compile('org.apache.commons:commons-lang3:3.7')
  41. //poi处理excel表格
  42. compile('org.apache.poi:poi:3.15')
  43. compile('org.apache.poi:poi-ooxml:3.15')
  44. //本地缓存
  45. compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'
  46. //数据库驱动
  47. compile fileTree(dir: 'lib', include: ["*.jar"]);
  48. //邮件的包
  49. compile('org.springframework.boot:spring-boot-starter-mail:2.0.4.RELEASE')
  50. //mybatis-genertor
  51. compile group: 'org.mybatis.generator', name: 'mybatis-generator-core', version: '1.4.0'
  52. }
  53. test {
  54. useJUnitPlatform()
  55. }
  56. sourceSets {
  57. main {
  58. resources {
  59. //可以将java目录下的所有非.java资源打包到classes下
  60. srcDir 'src/main/java'
  61. }
  62. }
  63. }