plugins { id 'java' } group 'org.example' version '1.0-SNAPSHOT' sourceCompatibility = 17 repositories { maven { url 'https://maven.aliyun.com/nexus/content/groups/public' } } dependencies { implementation 'commons-io:commons-io:2.11.0' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' } jar { manifest { attributes( "Manifest-Version": 1.0, "Main-Class": "org.example.Main") } archiveName = 'app.jar' from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } } into('assets') { from 'assets' } } test { useJUnitPlatform() }