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