build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins {
  2. id 'java'
  3. }
  4. group 'org.example'
  5. version '1.0-SNAPSHOT'
  6. repositories {
  7. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  8. // mavenCentral()
  9. }
  10. dependencies {
  11. implementation 'commons-io:commons-io:2.11.0'
  12. implementation 'org.apache.commons:commons-lang3:3.12.0'
  13. implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
  14. implementation 'cn.hutool:hutool-all:5.8.11'
  15. implementation 'ch.qos.logback:logback-classic:1.2.11'
  16. implementation 'org.slf4j:slf4j-api:1.7.36'
  17. implementation 'org.slf4j:log4j-over-slf4j:1.7.36'
  18. implementation 'org.apache.kafka:kafka-clients:2.4.0'
  19. implementation 'com.mysql:mysql-connector-j:8.0.31'
  20. implementation('com.alibaba.otter:canal.client:1.1.6') {
  21. exclude group: 'org.slf4j', module: 'slf4j-log4j12'
  22. }
  23. implementation('com.alibaba.otter:canal.protocol:1.1.6') {
  24. exclude group: 'org.slf4j', module: 'slf4j-log4j12'
  25. }
  26. implementation 'com.aliyun.openservices:aliyun-log:0.6.77:jar-with-dependencies'
  27. implementation 'com.aliyun.openservices:aliyun-log-producer:0.3.10'
  28. implementation 'cn.hutool:hutool-http:5.8.21'
  29. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
  30. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
  31. compileOnly 'org.projectlombok:lombok:1.18.24'
  32. annotationProcessor 'org.projectlombok:lombok:1.18.24'
  33. }
  34. jar {
  35. manifest {
  36. attributes(
  37. "Manifest-Version": 1.0,
  38. "Main-Class": "com.cxzx.Main")
  39. }
  40. archiveFileName = 'app.jar'
  41. from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
  42. into('assets') {
  43. from 'assets'
  44. }
  45. duplicatesStrategy = 'include'
  46. }
  47. test {
  48. useJUnitPlatform()
  49. }