forked from Netflix/genie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (108 loc) · 4.14 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// Establish version and status
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
buildscript {
repositories {
mavenCentral() // maven { url 'http://jcenter.bintray.com' }
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
repositories {
mavenCentral() // maven { url: 'http://jcenter.bintray.com' }
mavenLocal()
}
}
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')
apply plugin: 'eclipse'
subprojects {
group = "com.netflix.${githubProjectName}" // set to organization of project
dependencies {
compile 'javax.ws.rs:jsr311-api:1.1.1'
compile 'com.sun.jersey:jersey-json:1.11'
compile 'org.apache.openjpa:openjpa:2.2.1'
compile 'org.slf4j:slf4j-log4j12:1.6.1'
compile 'com.netflix.ribbon:ribbon-core:0.3.4'
compile 'com.netflix.ribbon:ribbon-eureka:0.3.4'
compile 'com.netflix.ribbon:ribbon-httpclient:0.3.4'
compile 'com.netflix.eureka:eureka-client:1.1.123'
testCompile 'junit:junit:4.10'
}
}
project(':genie-common') {
apply plugin: 'java'
}
project(':genie-client') {
apply plugin: 'java'
// we are doing this to include genie-common classes in client's javadocs
sourceSets.main.java.srcDirs += '../genie-common/src/main/java'
dependencies {
compile 'commons-configuration:commons-configuration:1.8'
}
}
project(':genie-server') {
apply plugin: 'java'
// we are doing this rather than a dependency since we
// must perform build-time enhancement for OpenJPA
sourceSets.main.java.srcDirs += '../genie-common/src/main/java'
dependencies {
compile 'com.netflix.archaius:archaius-core:0.5.8'
compile 'commons-collections:commons-collections:3.2.1'
compile 'com.google.inject.extensions:guice-servlet:3.0'
compile 'com.sun.jersey.contribs:jersey-guice:1.11'
compile 'com.netflix.servo:servo-core:0.4.34'
compile 'com.netflix.karyon:karyon-extensions:1.0.22'
compile 'commons-httpclient:commons-httpclient:3.1'
compile 'javax.mail:mail:1.4.1'
runtime 'org.apache.derby:derby:10.2.2.0'
runtime 'mysql:mysql-connector-java:5.1.16'
runtime 'com.mchange:c3p0:0.9.2'
runtime 'com.mchange:mchange-commons-java:0.2.3.3'
provided 'javax.servlet:servlet-api:2.5'
}
task enhance << {
ant.taskdef(
name : 'openjpaenhancer',
classpath : project.runtimeClasspath.asPath,
classname : 'org.apache.openjpa.ant.PCEnhancerTask'
)
ant.openjpaenhancer(
classpath : project.runtimeClasspath.asPath)
}
jar {
it.dependsOn enhance
}
test {
it.dependsOn enhance
}
}
project(':genie-web') {
apply plugin: 'war'
dependencies {
compile 'com.netflix.karyon:karyon-admin-web:1.0.22'
compile 'com.sun.jersey:jersey-servlet:1.11'
compile project(':genie-server')
}
}
project(':genie-web-int-tests') {
apply plugin: 'java'
// dummy test - since integration tests are run by build task
task test(overwrite:true)
dependencies {
compile project(':genie-web')
testCompile 'com.sun.jersey:jersey-servlet:1.11'
testCompile 'com.netflix.karyon:karyon-extensions-testsuite:1.0.22'
testCompile 'org.jboss.arquillian.junit:arquillian-junit-container:1.1.0.Final'
testCompile 'org.jboss.shrinkwrap:shrinkwrap-impl-base:1.1.2'
testCompile 'org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:2.0.0'
testRuntime 'org.jboss.arquillian.container:arquillian-tomcat-embedded-7:1.0.0.CR5'
testRuntime 'org.apache.tomcat.embed:tomcat-embed-core:7.0.42'
testRuntime 'org.apache.tomcat.embed:tomcat-embed-logging-juli:7.0.42'
testRuntime ('org.apache.tomcat.embed:tomcat-embed-jasper:7.0.42') {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
}
}