-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·104 lines (87 loc) · 2.49 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
// Establish version and status
ext.githubProjectName = 'hellobrh'
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'idea'
repositories {
mavenLocal()
mavenCentral()
}
jacoco {
toolVersion = "0.7.1.201405082137"
}
}
apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/license.gradle')
apply from: file('gradle/release.gradle')
subprojects {
group = "com.netflix.${githubProjectName}"
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(Compile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
javadoc {
options {
links = ['http://docs.oracle.com/javase/7/docs/api/']
}
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.7'
testCompile 'junit:junit:4.10'
testCompile 'nl.jqno.equalsverifier:equalsverifier:1.4.1'
}
jacocoTestReport {
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
reports {
xml.enabled false
csv.enabled false
html.destination "${buildDir}/reports/jacoco"
}
}
task copyDepsToBuild << {
['compile', 'runtime', 'testCompile', 'testRuntime'].each { conf ->
delete "${buildDir}/dependencies/${conf}"
copy {
from configurations[conf]
into "${buildDir}/dependencies/${conf}"
}
}
}
}
project(':helloworld-servlet') {
dependencies {
compile 'com.google.inject:guice:3.0'
compile 'com.google.inject.extensions:guice-servlet:3.0'
compile 'com.netflix.eureka:eureka-client:1.1.141'
compile 'com.netflix.ribbon:ribbon-eureka:2.0-RC9'
compile 'com.netflix.ribbon:ribbon-httpclient:2.0-RC9'
compile 'com.netflix.ribbon:ribbon-loadbalancer:2.0-RC9'
compile 'com.netflix.ribbon:ribbon-transport:2.0-RC9'
compile 'javax.servlet:servlet-api:2.5'
}
}
project(':helloworld-war') {
apply plugin: 'jetty'
apply plugin: 'war'
dependencies {
compile project(':helloworld-servlet')
compile 'com.google.inject:guice:3.0'
compile 'com.google.inject.extensions:guice-servlet:3.0'
compile 'com.netflix.eureka:eureka-client:1.1.141'
compile 'com.netflix.karyon:karyon-admin:2.1.00-RC6'
compile 'com.netflix.karyon:karyon-admin-web:2.1.00-RC6'
//compile 'com.sun.jersey:jersey-json:1.11'
}
}