12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- plugins {
- id 'java'
- }
- group 'org.example'
- version '1.0-SNAPSHOT'
- sourceCompatibility = 8
- tasks.withType(JavaCompile).configureEach {
- 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'
- }
- 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()
- }
- targetCompatibility = JavaVersion.VERSION_16
|