forked from grpc-ecosystem/grpc-spring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
95 lines (82 loc) · 2.65 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/" }
}
ext {
projectVersion = '1.4.1.SNAPSHOT'
grpcVersion = '1.10.0'
protobufVersion = '3.5.1'
protobufGradlePluginVersion = '0.8.4'
springBootVersion = '1.5.10.RELEASE'
springSleuthVersion = '1.3.2.RELEASE'
springCloudVersion = 'Edgware.SR2'
springCloudConsulVersion = '1.3.2.RELEASE'
springCloudEurekaVersion = '1.4.3.RELEASE'
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE"
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
allprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: "io.spring.dependency-management"
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
options.encoding = 'UTF-8'
}
compileJava.options*.compilerArgs = [
"-Xlint:serial", "-Xlint:varargs", "-Xlint:classfile", "-Xlint:dep-ann",
"-Xlint:divzero", "-Xlint:empty", "-Xlint:finally", "-Xlint:overrides",
"-Xlint:path", "-Xlint:static", "-Xlint:try", "-Xlint:fallthrough",
"-Xlint:deprecation", "-Xlint:unchecked", "-Xlint:-options"
]
// Enable Checkstyle
if (null != System.getenv('ENABLE_CHECKSTYLE')) {
apply plugin: 'checkstyle'
dependencies {
checkstyle 'com.puppycrawl.tools:checkstyle:6.15'
}
}
tasks.withType(Checkstyle) {
outputs.upToDateWhen { false }
configFile = new File(rootDir, "checkstyle-google.xml")
include 'net/devh/**/*'
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies{
compileOnly('org.projectlombok:lombok:1.16.20')
}
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'http://repo.spring.io/plugins-release' }
maven { url "https://plugins.gradle.org/m2/" }
}
}
}
apply from: './deploy.gradle'
group = "net.devh"
version = "${projectVersion}"
dependencies {
compile project(':grpc-server-spring-boot-starter')
compile project(':grpc-client-spring-boot-starter')
}