1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- plugins {
- id 'java'
- }
- group 'org.example'
- version '1.0-SNAPSHOT'
- sourceCompatibility = 17
- targetCompatibility = 17
- tasks.withType(JavaCompile) {
- options.encoding = "UTF-8"
- }
- repositories {
- maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
- }
- dependencies {
- implementation 'commons-io:commons-io:2.11.0'
- implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4'
- implementation 'org.apache.httpcomponents.client5:httpclient5:5.2.1'
- implementation 'com.aliyun.openservices:aliyun-log-producer:0.3.11'
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
- compileOnly 'org.projectlombok:lombok:1.18.24'
- annotationProcessor 'org.projectlombok:lombok:1.18.24'
- implementation 'com.beust:jcommander:1.82'
- }
- jar {
- manifest {
- attributes(
- "Manifest-Version": 1.0,
- "Main-Class": "org.example.Daka")
- }
- archiveFileName = 'app.jar'
- from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
- into('assets') {
- from 'assets'
- }
- duplicatesStrategy = 'include'
- }
- test {
- useJUnitPlatform()
- }
|