Advertisement
Guest User

root main

a guest
Apr 29th, 2018
651
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 2.55 KB | None | 0 0
  1. buildscript {
  2.     repositories {
  3.         jcenter()
  4.         maven {
  5.             url "http://repo.spring.io/milestone"
  6.         }
  7.         maven {
  8.             url "https://repo.spring.io/libs-snapshot"
  9.         }
  10.     }
  11.     dependencies {
  12.         classpath("org.springframework.boot:spring-boot-gradle-plugin:${spring_boot_version}")
  13.     }
  14. }
  15.  
  16. def javaProjects = subprojects.findAll {
  17.     it.name in ["common", "core", "web", "app"]
  18. }
  19.  
  20. allprojects {
  21.     apply plugin: 'idea'
  22.     apply plugin: 'eclipse'
  23.  
  24.     repositories {
  25.         jcenter()
  26.         maven {
  27.             url "https://repo.spring.io/libs-milestone"
  28.         }
  29.         maven {
  30.             url "https://repo.spring.io/libs-snapshot"
  31.         }
  32.     }
  33. }
  34.  
  35. idea {
  36.     project {
  37.         jdkName = "1.8"
  38.         languageLevel = "1.8"
  39.         vcs = "Git"
  40.     }
  41. }
  42.  
  43. configure(javaProjects) {
  44.     apply plugin: 'java'
  45.     apply plugin: 'checkstyle'
  46.     apply plugin: 'io.spring.dependency-management'
  47.  
  48.     sourceCompatibility = 1.8
  49.     targetCompatibility = 1.8
  50.  
  51.     dependencyManagement {
  52.         dependencies {
  53.             dependency("com.google.code.findbugs:annotations:3.0.1")
  54.             dependency("org.projectlombok:lombok:1.16.20")
  55.             dependencySet(group: "io.springfox", version: "2.8.0") {
  56.                 entry "springfox-swagger2"
  57.                 entry "springfox-swagger-ui"
  58.                 entry "springfox-bean-validators"
  59.             }
  60.             dependencySet(group: "org.eclipse.persistence", version: "2.7.1") {
  61.                 entry "org.eclipse.persistence.jpa"
  62.                 entry "org.eclipse.persistence.jpa.modelgen.processor"
  63.             }
  64.             dependency("commons-validator:commons-validator:1.6")
  65.             dependency("org.apache.commons:commons-lang3:3.6")
  66.             dependency("com.google.api-client:google-api-client:1.23.0")
  67.             dependency("com.google.oauth-client:google-oauth-client-jetty:1.23.0")
  68.             dependency("com.google.apis:google-api-services-drive:v2-rev289-1.23.0")
  69.         }
  70.     }
  71.  
  72.     dependencies {
  73.         /*******************************
  74.          * Compile Dependencies
  75.          *******************************/
  76.  
  77.         compile("io.springfox:springfox-swagger2")
  78.         compile("io.springfox:springfox-swagger-ui")
  79.         compile("io.springfox:springfox-bean-validators")
  80.  
  81.         /*******************************
  82.          * Provided Dependencies
  83.          *******************************/
  84.  
  85.         compileOnly("org.projectlombok:lombok")
  86.         compileOnly("com.google.code.findbugs:annotations")
  87.  
  88.         /*******************************
  89.          * Runtime Dependencies
  90.          *******************************/
  91.  
  92.         /*******************************
  93.          * Test Dependencies
  94.          *******************************/
  95.  
  96.         testCompile("org.springframework.boot:spring-boot-starter-test")
  97.     }
  98.  
  99.  
  100.  
  101.     checkstyle {
  102.         configFile = new File(project.parent.projectDir, "codequality/checkstyle/checkstyle.xml")
  103.     }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement