build.gradle 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. buildscript {
  2. ext {
  3. springBootVersion = '2.0.0.M7'
  4. }
  5. repositories {
  6. mavenCentral()
  7. maven { url "https://repo.spring.io/snapshot" }
  8. maven { url "https://repo.spring.io/milestone" }
  9. }
  10. dependencies {
  11. classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  12. }
  13. }
  14. apply plugin: 'java'
  15. apply plugin: 'eclipse'
  16. apply plugin: 'org.springframework.boot'
  17. apply plugin: 'io.spring.dependency-management'
  18. version = '0.0.1-SNAPSHOT'
  19. sourceCompatibility = 1.8
  20. repositories {
  21. mavenCentral()
  22. maven { url "https://repo.spring.io/snapshot" }
  23. maven { url "https://repo.spring.io/milestone" }
  24. }
  25. dependencies {
  26. compile('org.springframework.boot:spring-boot-starter-actuator')
  27. compile('org.springframework.boot:spring-boot-starter-data-jpa')
  28. compile('org.springframework.boot:spring-boot-starter-data-rest')
  29. compile('org.springframework.boot:spring-boot-starter-groovy-templates')
  30. compile('org.springframework.boot:spring-boot-starter-hateoas')
  31. compile('org.springframework.boot:spring-boot-starter-security')
  32. compile('org.springframework.boot:spring-boot-starter-web')
  33. compile('org.springframework.security.oauth:spring-security-oauth2')
  34. compile('org.webjars:jquery:2.2.4')
  35. compile('org.webjars:bootstrap:3.3.6')
  36. compile('org.webjars:angularjs:1.5.7')
  37. compileOnly('org.springframework.boot:spring-boot-configuration-processor')
  38. runtime('org.springframework.boot:spring-boot-devtools')
  39. runtime('com.h2database:h2')
  40. runtime('mysql:mysql-connector-java')
  41. testCompile('org.springframework.boot:spring-boot-starter-test')
  42. testCompile('org.springframework.security:spring-security-test')
  43. }