build.gradle 700 B

1234567891011121314151617181920212223242526
  1. plugins {
  2. id 'java'
  3. }
  4. group 'org.example'
  5. version '1.0-SNAPSHOT'
  6. repositories {
  7. mavenCentral()
  8. }
  9. dependencies {
  10. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
  11. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
  12. // https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
  13. implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
  14. }
  15. jar {
  16. duplicatesStrategy = DuplicatesStrategy.INCLUDE
  17. manifest {
  18. attributes 'Main-Class': 'server.TCPServer'
  19. }
  20. from {
  21. configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  22. }
  23. }
  24. test {
  25. useJUnitPlatform()
  26. }