-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
106 lines (93 loc) · 2.93 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.5.8.RELEASE'
classpath 'com.bmuschko:gradle-docker-plugin:3.2.0'
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'groovy'
//TODO: investigar porque falla 😩
/*idea {
project {
ipr {
withXml { provider ->
// Get XML as groovy.util.Node to work with.
def projectXml = provider.asNode()
// Find compiler configuration component.
def compilerConfiguration = projectXml.component.find { component ->
component.'@name' == 'CompilerConfiguration'
}
// Replace current annotationProcessing
// that is part of the compiler configuration.
def currentAnnotationProcessing = compilerConfiguration.annotationProcessing
currentAnnotationProcessing.replaceNode {
annotationProcessing {
profile(name: 'Default', default: true, enabled: true) {
processorPath(useClasspath: true)
}
}
}
}
}
}
}*/
}
subprojects {
def grpcDeps = ['contract', 'grpc', 'service', 'rest', 'validation']
apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.github.ben-manes.versions'
ext {
jadiraVersion = '5.0.0.GA'
grpcVersion = '1.7.0'
protobufVersion = '3.4.0'
protoGenDir = file('generated-src/')
springCloudVersion = 'Dalston.SR4'
opentracingVersion= '0.30.0'
}
repositories {
jcenter()
}
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencyManagement {
imports {
mavenBom 'io.spring.platform:platform-bom:Brussels-SR5'
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
if (grpcDeps.contains(project.name)) {
dependencies {
dependencySet(group: 'io.grpc', version: grpcVersion) {
entry 'grpc-all'
entry 'grpc-netty'
entry 'grpc-protobuf'
entry 'grpc-stub'
entry 'grpc-services'
}
dependency "com.google.protobuf:protobuf-java:$protobufVersion"
}
}
}
dependencies {
if (grpcDeps.contains(project.name)) {
compile 'io.grpc:grpc-stub'
compile 'io.grpc:grpc-protobuf'
compile 'io.grpc:grpc-netty'
}
compileOnly 'org.projectlombok:lombok'
testCompile 'org.codehaus.groovy:groovy-all:2.4.12'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
testCompile 'org.spockframework:spock-spring:1.1-groovy-2.4'
}
}