plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' repositories { maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } // mavenCentral() } dependencies { implementation 'commons-io:commons-io:2.11.0' implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0' implementation 'cn.hutool:hutool-all:5.8.11' implementation 'ch.qos.logback:logback-classic:1.2.11' implementation 'org.slf4j:slf4j-api:1.7.36' implementation 'org.slf4j:log4j-over-slf4j:1.7.36' implementation 'org.apache.kafka:kafka-clients:2.4.0' implementation 'com.mysql:mysql-connector-j:8.0.31' implementation('com.alibaba.otter:canal.client:1.1.6') { exclude group: 'org.slf4j', module: 'slf4j-log4j12' } implementation('com.alibaba.otter:canal.protocol:1.1.6') { exclude group: 'org.slf4j', module: 'slf4j-log4j12' } implementation 'com.aliyun.openservices:aliyun-log:0.6.77:jar-with-dependencies' implementation 'com.aliyun.openservices:aliyun-log-producer:0.3.10' implementation 'cn.hutool:hutool-http:5.8.21' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' compileOnly 'org.projectlombok:lombok:1.18.24' annotationProcessor 'org.projectlombok:lombok:1.18.24' } jar { manifest { attributes( "Manifest-Version": 1.0, "Main-Class": "com.cxzx.Main") } archiveFileName = 'app.jar' from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } } into('assets') { from 'assets' } duplicatesStrategy = 'include' } test { useJUnitPlatform() }