-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
79 lines (66 loc) · 2.04 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
apply from: file('gradle/license.gradle')
apply from: file('gradle/environment.gradle')
apply from: file("gradle/dependency-versions.gradle")
buildscript {
repositories {
mavenCentral()
}
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
allprojects {
group = "com.github.samza"
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'project-report'
apply plugin: 'checkstyle'
repositories {
mavenCentral()
jcenter()
mavenLocal()
}
}
idea {
project {
languageLevel = 1.8
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'pegasus'
testReportDirName = "${project.rootDir}/out/${project.name}/"
// Avoid failure in internal LinkedIn build validation
if (!ext.has('spec')) {
ext.spec = [:]
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
checkstyle {
configFile = file("${project.rootDir}/checkstyle/checkstyle.xml")
sourceSets = [ getProject().sourceSets.main, getProject().sourceSets.test ]
toolVersion = "6.7"
ignoreFailures = false
}
}
project(':samza-sql-demo') {
dependencies {
compile "log4j:log4j:$log4jVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-log4j12:$slf4jVersion"
compile "commons-cli:commons-cli:$commonsCliVersion"
compile "org.apache.avro:avro:$avroVersion"
compile "org.apache.commons:commons-lang3:$commonslang3Version"
compile "org.apache.kafka:kafka-clients:$kafkaVersion"
compile "org.apache.samza:samza-sql:$samzaVersion"
compile "org.apache.samza:samza-api:$samzaVersion"
compile "org.apache.samza:samza-azure:$samzaVersion"
}
tasks.create(name: "releaseTarGz", dependsOn: configurations.archives.artifacts, type: Tar) {
into "samza-sql-demo-${version}"
compression = Compression.GZIP
from(project.file("./scripts")) { into "scripts/" }
from(project.file("./config")) { into "config/" }
from(configurations.runtime) { into("libs/") }
from(configurations.archives.artifacts.files) { into("libs/") }
duplicatesStrategy 'exclude'
}
}