Advertisement
ArturCzopek

build.gradle

Mar 29th, 2017
1,293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 2.08 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         mavenCentral()
  4.         maven { url "https://plugins.gradle.org/m2/" }
  5.     }
  6.     dependencies {
  7.         classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: spring_boot_version
  8.         classpath group: 'org.sonarsource.scanner.gradle', name: 'sonarqube-gradle-plugin', version: sonar_version
  9.     }
  10. }
  11.  
  12. apply plugin: 'java'
  13. apply plugin: 'idea'
  14. apply plugin: 'spring-boot'
  15. apply plugin: 'org.sonarqube'
  16.  
  17. jar {
  18.     group 'build'
  19.     baseName = 'My-coach'
  20.     version = '1.0.0-SNAPSHOT'
  21. }
  22.  
  23. sourceCompatibility = 1.8
  24. targetCompatibility = 1.8
  25.  
  26. repositories {
  27.     jcenter()
  28.     mavenCentral()
  29.     maven { url "http://repo.spring.io/libs-snapshot" }
  30.     maven { url "https://repo.spring.io/snapshot" }
  31.     maven { url "https://repo.spring.io/milestone" }
  32. }
  33.  
  34. sonarqube {
  35.     properties {
  36.         property "sonar.projectName", "My coach"
  37.         property "sonar.projectKey", "pl.arturczopek.mycoach:My-coach"
  38.     }
  39. }
  40.  
  41. dependencies {
  42.     compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa'
  43.     compile group: 'org.springframework.boot', name: 'spring-boot-devtools'
  44.     compile group: 'org.springframework.boot', name: 'spring-boot-starter-jdbc'
  45.     compile group: 'org.springframework.boot', name: 'spring-boot-starter-mail'
  46.     compile group: 'org.springframework.boot', name: 'spring-boot-starter-web'
  47.     compile group: 'org.springframework.boot', name: 'spring-boot-starter-security'
  48.  
  49.     compile group: 'io.springfox', name: 'springfox-swagger2', version: swagger_version
  50.     compile group: 'io.springfox', name: 'springfox-swagger-ui', version: swagger_version
  51.  
  52.     compile group: 'org.liquibase', name: 'liquibase-core', version: liquibase_version
  53.     compile group: 'com.h2database', name: 'h2', version: h2_version
  54.     compile group: 'org.postgresql', name: 'postgresql', version: postgres_version
  55.  
  56.     compile group: 'org.projectlombok', name: 'lombok', version: lombok_version
  57.  
  58.     testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test'
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement