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.

98 lines
3.6 KiB

  1. buildscript {
  2. ext {
  3. springBootVersion = '2.3.0.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.projectlombok:lombok:1.18.18'
  32. // https://mvnrepository.com/artifact/org.aspectj/aspectjweaver
  33. implementation group: 'org.aspectj', name: 'aspectjweaver', version: '1.9.5'
  34. //implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
  35. //developmentOnly 'org.springframework.boot:spring-boot-devtools'
  36. testImplementation('org.springframework.boot:spring-boot-starter-test') {
  37. exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
  38. }
  39. testImplementation 'org.springframework.security:spring-security-test'
  40. //阿里druid
  41. compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version: '1.1.10'
  42. compile("com.alibaba:fastjson:1.2.30")
  43. compile('org.apache.commons:commons-lang3:3.7')
  44. //poi处理excel表格
  45. compile group: 'org.apache.poi', name: 'poi', version: '4.1.2';
  46. compile group: 'org.apache.poi', name: 'poi-excelant', version: '4.1.2';
  47. compile group: 'org.apache.poi', name: 'poi-scratchpad', version: '4.1.2';
  48. //本地缓存
  49. compile group: 'com.google.guava', name: 'guava', version: '29.0-jre'
  50. //数据库驱动
  51. compile fileTree(dir: 'lib', include: ["*.jar"]);
  52. //邮件的包
  53. compile('org.springframework.boot:spring-boot-starter-mail:2.0.4.RELEASE')
  54. //mybatis-genertor
  55. compile group: 'org.mybatis.generator', name: 'mybatis-generator-core', version: '1.4.0'
  56. compile('com.lowagie:itext:4.2.2')
  57. compile('com.itextpdf:itext-asian:5.2.0')
  58. //cad转pdf
  59. //compile('com.aspose:cad-java-examples')
  60. //cad转pdf
  61. //compile files("lib/aspose-cad-18.3-jdk16.jar")
  62. compile('com.lowagie:itext:4.2.2')
  63. compile('com.itextpdf:itext-asian:5.2.0')
  64. //cad转pdf
  65. //compile('com.aspose:cad-java-examples')
  66. //cad转pdf
  67. compile('commons-net:commons-net:3.6')
  68. // StringUtils
  69. compile 'org.apache.commons:commons-lang3:3.4'
  70. compile('io.springfox:springfox-swagger2:2.8.0')
  71. compile('io.springfox:springfox-swagger-ui:2.8.0')
  72. compile 'io.swagger:swagger-jersey2-jaxrs:1.5.8'
  73. compile('com.mangofactory:swagger-springmvc:1.0.2')
  74. compile('com.mangofactory:swagger-models:1.0.2')
  75. compile('com.wordnik:swagger-annotations:1.3.11')
  76. compile("com.baomidou:mybatis-plus-boot-starter:3.4.0")
  77. }
  78. test {
  79. useJUnitPlatform()
  80. }
  81. sourceSets {
  82. main {
  83. resources {
  84. //可以将java目录下的所有非.java资源打包到classes下
  85. srcDir 'src/main/java'
  86. }
  87. }
  88. }