build.gradle 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * This is a kingdee cosmic template project that is automatically generated by the Kingdee cosmic development assistant plugin.
  3. * If there are any issues during the use process, you can provide feedback to the kingdee developer community website.
  4. * Website: https://developer.kingdee.com/developer?productLineId=29
  5. * Author: liebin.zheng
  6. * Generate Date: 2025-03-01 12:08:14
  7. */
  8. apply from: '../../../config.gradle'
  9. def bos = ext.path.bos
  10. def trd = ext.path.trd
  11. def cus = ext.path.cus
  12. def biz = ext.path.biz
  13. def lib = ext.path.lib
  14. dependencies {
  15. //如果出现本地启动出现log4j相关依赖包版本冲突的问题,则可以参考以下方式手工解决
  16. //api fileTree(trd) {
  17. // include '*.jar'
  18. // exclude 'log4j-api-*.jar','logback-*.jar','slf4j-*.jar','qing-arthas-*.jar'
  19. //}
  20. //api 'cn.hutool:hutool-all:5.8.20'
  21. //api 'ch.qos.logback:logback-classic:1.2.12'
  22. //api 'org.slf4j:log4j-over-slf4j:1.7.36'
  23. //api 'org.apache.logging.log4j:log4j-to-slf4j:2.20.0'
  24. //如存在编译阶段需要依赖的jar包,则可参考一下配置,按需引入对应的jar包
  25. //api fileTree(dir: biz, include: '*sdk*.jar')
  26. //编译阶段不需要依赖的jar包,则统一配置为运行时依赖
  27. //runtimeOnly fileTree(biz) { include '*.jar' exclude '*sdk*.jar' }
  28. api fileTree(dir: bos, include: '*.jar')
  29. api fileTree(trd) { include '*.jar' exclude 'qing-arthas-*.jar' }
  30. api fileTree(dir: lib, include: '*.jar')
  31. api fileTree(dir: biz, include: '*.jar')
  32. api fileTree(dir: cus, include: '*.jar')
  33. //默认情况下,biz目录下的依赖均为运行时依赖
  34. // runtimeOnly fileTree(dir: biz, include: '*.jar')
  35. // runtimeOnly fileTree(dir: cus, include: '*.jar')
  36. }