4javier

Untitled

Feb 4th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. }
  5. dependencies {
  6. classpath("org.springframework.boot:spring-boot-gradle-plugin:2+")
  7. }
  8. }
  9.  
  10. apply plugin: 'java'
  11. apply plugin: 'eclipse'
  12. apply plugin: 'idea'
  13. apply plugin: 'org.springframework.boot'
  14. apply plugin: 'io.spring.dependency-management'
  15.  
  16. bootJar {
  17. baseName = 'petmenu'
  18. version = '0.1.0'
  19. }
  20.  
  21. repositories {
  22. mavenCentral()
  23. }
  24.  
  25. sourceCompatibility = 11
  26. targetCompatibility = 11
  27.  
  28. dependencies {
  29. compile("org.springframework.boot:spring-boot-starter-web")
  30.  
  31. compile 'org.springframework.boot:spring-boot-starter-data-jpa'
  32.  
  33. implementation 'org.mariadb.jdbc:mariadb-java-client'
  34.  
  35. testCompile('org.springframework.boot:spring-boot-starter-test')
  36.  
  37. compile("org.springframework.boot:spring-boot-starter-thymeleaf")
  38.  
  39. annotationProcessor('org.hibernate:hibernate-jpamodelgen')
  40. }
  41.  
  42. sourceSets.main.java.srcDirs += "${buildDir}/generated"
  43.  
  44. compileJava {
  45. options.annotationProcessorGeneratedSourcesDirectory = file("${buildDir}/generated")
  46. }
Add Comment
Please, Sign In to add comment