-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (58 loc) · 1.57 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
plugins {
id "com.commercehub.gradle.plugin.avro" version "0.8.0"
}
version '1.0-SNAPSHOT'
allprojects {
group = 'group com.ryonday.avro.test'
apply plugin: 'idea'
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
}
project('common') {
proj ->
dependencies {
compile("org.apache.avro:avro:1.7.7}")
compile("org.apache.avro:avro-ipc:1.7.7")
}
}
project('schema') {
apply plugin: "com.commercehub.gradle.plugin.avro"
avro {
stringType = "string"
}
dependencies {
compile("org.apache.avro:avro:1.7.7}")
compile("org.apache.avro:avro-ipc:1.7.7")
}
}
configure(subprojects.findAll { it.name != 'schema' }) {
proj ->
dependencies {
compile("org.slf4j:log4j-over-slf4j:1.7.12")
compile("com.google.guava:guava:19.0")
compile('ch.qos.logback:logback-classic:0.9.26')
testCompile("junit:junit:4.11")
testCompile("org.assertj:assertj-core:3.2.0")
}
}
configure(subprojects.findAll { it.name != 'schema' && it.name != 'common' }) {
proj ->
dependencies {
compile project(':schema')
compile project(':common')
compile("org.apache.avro:avro:${proj.name}")
compile("org.apache.avro:avro-ipc:${proj.name}")
}
}
//
//processResources {
// doLast {
// copy {
// from 'src/main/avro/avrodecodinghelp.avsc'
// into 'build/resources/main/'
// }
// }
//}