Advertisement
Haifisch7734

Untitled

Aug 28th, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 3.29 KB | None | 0 0
  1. buildscript {
  2.     ext {
  3.         springBootVersion = "1.2.5.RELEASE"
  4.     }
  5.     repositories {
  6.         mavenCentral()
  7.         maven {
  8.             url "https://plugins.gradle.org/m2/"
  9.     }
  10.      
  11.     }
  12.     dependencies {
  13.         classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
  14.         classpath "com.moowork.gradle:gradle-node-plugin:0.10"
  15.         classpath 'org.springframework:springloaded:1.2.3.RELEASE'
  16.         classpath 'com.sun.mail:javax.mail:1.5.4'
  17.         classpath "net.saliman:gradle-cobertura-plugin:2.2.7"
  18.     }
  19. }
  20.  
  21. plugins {
  22.   id "com.moowork.node" version "0.10"
  23.   id 'net.saliman.cobertura' version '2.2.7'
  24. }
  25.  
  26. apply plugin: 'java'
  27. apply plugin: 'spring-boot'
  28. apply plugin: 'com.moowork.node'
  29. apply plugin: 'net.saliman.cobertura'
  30. apply plugin: "sonar-runner"
  31.  
  32. sourceCompatibility = '1.8'
  33.  
  34. repositories {
  35.     mavenCentral()
  36.     maven {
  37.         url 'https://oss.sonatype.org/content/repositories/snapshots/'
  38.        
  39.     }
  40.     maven { url 'https://jitpack.io' }
  41. }
  42.  
  43. dependencies {
  44.     compile "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
  45.     compile "org.springframework.boot:spring-boot-starter-data-rest:${springBootVersion}"
  46.     compile "org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}"
  47. //    compile 'org.springframework.security.oauth:spring-security-oauth2:2.0.7.RELEASE'
  48. //    compile 'org.springframework.security:spring-security-jwt:1.0.3.RELEASE'
  49. //    compile 'org.springframework.cloud:spring-cloud-starter-security:1.0.0.RELEASE'
  50.    
  51.     compile 'org.springframework.ldap:spring-ldap-core:2.0.3.RELEASE'
  52.     compile 'org.postgresql:postgresql:9.4-1201-jdbc41'
  53.     compile 'com.sun.mail:javax.mail:1.5.4'
  54.     compile 'org.springframework:spring-support:2.0.8'
  55.     compile 'org.apache.logging.log4j:log4j-core:2.3'
  56.     compile 'com.microsoft.ews-java-api:ews-java-api:2.0-SNAPSHOT'
  57.     compile 'org.springframework.boot:spring-boot-starter-websocket'
  58.     compile 'org.springframework:spring-messaging'
  59.    
  60.  
  61.    
  62.  
  63.  
  64.     testCompile "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
  65.     testCompile 'org.easytesting:fest-assert:1.4'
  66.     testCompile 'org.mockito:mockito-all:1.10.19'
  67.     testCompile 'org.testng:testng:6.9.4'
  68.     testCompile 'org.glassfish:javax.json:1.0.4'
  69.     testCompile 'com.h2database:h2:1.4.187'
  70.     testCompile 'com.github.springtestdbunit:spring-test-dbunit:1.2.1'
  71.     testCompile 'com.jolbox:bonecp-spring:0.8.0.RELEASE'
  72.     testCompile 'org.powermock:powermock-mockito-release-full:1.6.2'
  73. }
  74.  
  75. test{
  76.     useTestNG()
  77.     testLogging {
  78.         events "passed"
  79.     }
  80.     testLogging.showStandardStreams = false
  81. }
  82.  
  83. task wrapper(type: Wrapper) {
  84.     gradleVersion = '2.5'
  85. }
  86. node {
  87.     version = '0.12.2'
  88.     npmVersion = '2.7.5'
  89.     download = true
  90. }
  91.  
  92. sonarRunner {
  93.     sonarProperties {
  94.         property "sonar.sourceEncoding", "UTF-8"
  95.  
  96.         property "sonar.host.url", "http://localhost:9000"
  97.         property "sonar.jdbc.url", "jdbc:postgresql://localhost/sonarqube"
  98.         property "sonar.jdbc.driverClassName", "org.postgresql.Driver"
  99.         property "sonar.jdbc.username", "sonarqube"
  100.         property "sonar.jdbc.password", "sonarqube"
  101.     }
  102. }
  103.  
  104. cobertura {
  105.     coverageFormats = [ 'html', 'xml' ]
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement