build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. group 'meeting-cms'
  2. version '1.0-SNAPSHOT'
  3. //apply plugin: 'war'
  4. apply plugin: 'java'
  5. apply plugin: 'idea'
  6. apply plugin: 'org.springframework.boot'
  7. def env = System.getProperty("env") ?: "dev"
  8. ext["thymeleaf.version"] = "3.0.9.RELEASE"
  9. ext["thymeleaf-layout-dialect.version"] = "2.3.0"
  10. sourceSets {
  11. main {
  12. resources {
  13. srcDirs = ["src/main/resources", "src/main/profile/$env"]
  14. }
  15. }
  16. }
  17. buildscript {
  18. repositories {
  19. mavenLocal()
  20. mavenCentral()
  21. }
  22. dependencies {
  23. classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: '1.5.10.RELEASE'
  24. }
  25. }
  26. repositories {
  27. mavenLocal()
  28. mavenCentral()
  29. }
  30. dependencies {
  31. compile ('org.springframework.boot:spring-boot-starter-web'){
  32. //打war包需要把内置tomcat排除
  33. //exclude module:"spring-boot-starter-tomcat"
  34. } //web
  35. compile 'org.springframework.boot:spring-boot-starter-data-redis' //redis
  36. compile 'org.springframework.boot:spring-boot-starter-data-jpa' //orm
  37. //前端解析
  38. compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
  39. compile 'net.sourceforge.nekohtml:nekohtml:1.9.22'
  40. compile 'com.alibaba:druid:1.1.6'
  41. compile 'mysql:mysql-connector-java:5.1.45'
  42. //网络请求
  43. compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.10.0'
  44. //compile 'org.springframework.boot:spring-boot-devtools'
  45. compile group: 'org.jodconverter', name: 'jodconverter-core', version: '4.2.0'
  46. compile group: 'org.jodconverter', name: 'jodconverter-local', version: '4.2.0'
  47. compile group: 'org.apache.commons', name: 'commons-pool2', version: '2.5.0'
  48. compile group: 'org.projectlombok', name: 'lombok', version: '1.16.20'
  49. }