build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  23. }
  24. test {
  25. useJUnitPlatform()
  26. }
  27. // Konfiguration für ausführbare JAR
  28. bootJar {
  29. enabled = true
  30. archiveFileName = 'inwo-vgl-service.jar'
  31. mainClass = 'com.tsystems.inwo.vgl.InwoVglServiceApplication'
  32. }
  33. // Deaktiviere die normale JAR Task, da wir nur die Boot JAR benötigen
  34. jar {
  35. enabled = false
  36. }
  37. // Task zum Erstellen der ausführbaren JAR
  38. task buildExecutableJar {
  39. dependsOn bootJar
  40. description = 'Erstellt eine ausführbare JAR-Datei'
  41. group = 'build'
  42. }