build.gradle 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. plugins {
  2. id 'groovy'
  3. id 'org.springframework.boot' version '2.6.0'
  4. id 'io.spring.dependency-management' version '1.0.15.RELEASE'
  5. }
  6. group = 'com.jd.brume'
  7. version = '0.0.1-SNAPSHOT'
  8. sourceCompatibility = '1.8'
  9. repositories {
  10. // mavenCentral()
  11. maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }
  12. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  13. maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter'}
  14. maven { url 'https://plugins.gradle.org/m2/' }
  15. mavenCentral()
  16. }
  17. jar{
  18. manifest {
  19. attributes 'Main-Class': 'com.jd.brume.BrumeApplication'
  20. }
  21. }
  22. dependencies {
  23. implementation 'org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE'
  24. implementation 'org.springframework.boot:spring-boot-starter-web'
  25. implementation 'org.springframework.boot:spring-boot-starter-aop'
  26. implementation 'org.codehaus.groovy:groovy'
  27. implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.3'
  28. implementation 'mysql:mysql-connector-java'
  29. implementation 'cn.hutool:hutool-all:5.8.12'
  30. implementation 'org.springframework.boot:spring-boot-starter-validation'
  31. implementation 'org.bouncycastle:bcprov-jdk15to18:1.72'
  32. implementation 'org.springframework.boot:spring-boot-starter-data-redis'
  33. implementation 'com.alibaba:fastjson:2.0.26'
  34. implementation 'org.apache.poi:poi-ooxml:5.2.2'
  35. implementation 'org.apache.commons:commons-compress:1.21'
  36. implementation fileTree(dir:'lib',includes:['*jar'])
  37. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  38. }
  39. tasks.named('test') {
  40. useJUnitPlatform()
  41. }
  42. //编译groovy代码时采用 UTF-8
  43. tasks.withType(GroovyCompile) {
  44. groovyOptions.encoding = "UTF-8"
  45. }
  46. //编译JAVA文件时采用UTF-8
  47. tasks.withType(JavaCompile) {
  48. options.encoding = "UTF-8"
  49. }