build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. plugins {
  2. id 'java'
  3. id 'war'
  4. id 'org.springframework.boot' version '3.4.2'
  5. id 'io.spring.dependency-management' version '1.1.7'
  6. }
  7. group = 'fr.triplea'
  8. version = '0.0.1-SNAPSHOT'
  9. java { toolchain { languageVersion = JavaLanguageVersion.of(17) } }
  10. repositories { mavenCentral() }
  11. dependencies {
  12. developmentOnly 'org.springframework.boot:spring-boot-devtools'
  13. implementation 'org.springframework.boot:spring-boot-starter-actuator'
  14. implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
  15. implementation 'org.springframework.boot:spring-boot-starter-web'
  16. implementation 'io.hypersistence:hypersistence-utils-hibernate-63:3.9.0'
  17. implementation 'org.hibernate.validator:hibernate-validator:8.0.2.Final'
  18. runtimeOnly 'org.postgresql:postgresql'
  19. providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
  20. testImplementation 'org.springframework.boot:spring-boot-starter-test'
  21. testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
  22. }
  23. tasks.named('test') { useJUnitPlatform() }
  24. tasks.withType(JavaCompile).configureEach { options.compilerArgs.add("-parameters") }