Server HTTP + WebSocket + Serveur TCP pour transmettre la température du thermometre dans ma cuisine
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id 'java'
  3. }
  4. group 'org.example'
  5. version '1.0'
  6. repositories {
  7. mavenCentral()
  8. }
  9. dependencies {
  10. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
  11. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  12. compile 'io.undertow:undertow-core:2.1.0.Final'
  13. }
  14. test {
  15. useJUnitPlatform()
  16. }
  17. //create a single Jar with all dependencies
  18. task fatJar(type: Jar) {
  19. manifest {
  20. attributes 'Implementation-Title': 'Gradle Jar File Example',
  21. 'Implementation-Version': version,
  22. 'Main-Class': 'Application'
  23. }
  24. baseName = project.name
  25. from {
  26. configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  27. }
  28. from('src/main/java'){
  29. include 'resources/*'
  30. }
  31. with jar
  32. }