build.gradle 591 B

1234567891011121314151617181920212223242526272829
  1. plugins {
  2. id 'java'
  3. }
  4. group 'org.example'
  5. version '1.0-SNAPSHOT'
  6. sourceCompatibility = 17
  7. repositories {
  8. maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
  9. }
  10. dependencies {
  11. implementation 'commons-io:commons-io:2.11.0'
  12. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
  13. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
  14. }
  15. jar {
  16. archiveName = 'app.jar'
  17. from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
  18. into('assets') {
  19. from 'assets'
  20. }
  21. }
  22. test {
  23. useJUnitPlatform()
  24. }