build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. plugins {
  2. id 'org.springframework.boot' version '3.3.2'
  3. id 'io.spring.dependency-management' version '1.1.5'
  4. id 'java'
  5. }
  6. group = 'com.tsystems.inwo'
  7. version = '1.0.0'
  8. description = 'INWO VGL Service'
  9. java {
  10. toolchain {
  11. languageVersion = JavaLanguageVersion.of(21)
  12. }
  13. }
  14. repositories {
  15. mavenCentral()
  16. }
  17. dependencies {
  18. implementation 'org.springframework.boot:spring-boot-starter-web'
  19. implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
  20. implementation 'com.fasterxml.jackson.core:jackson-databind'
  21. implementation 'com.networknt:json-schema-validator:1.4.2'
  22. implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
  23. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  24. }
  25. test {
  26. useJUnitPlatform()
  27. }
  28. // Konfiguration für ausführbare JAR
  29. bootJar {
  30. enabled = true
  31. archiveFileName = 'inwo-vgl-service.jar'
  32. mainClass = 'com.tsystems.inwo.vgl.InwoVglServiceApplication'
  33. }
  34. // Deaktiviere die normale JAR Task, da wir nur die Boot JAR benötigen
  35. jar {
  36. enabled = false
  37. }
  38. // Task zum Erstellen der ausführbaren JAR
  39. task buildExecutableJar {
  40. dependsOn bootJar
  41. description = 'Erstellt eine ausführbare JAR-Datei'
  42. group = 'build'
  43. }