forked from linkedin/transport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (68 loc) · 1.81 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
// Copyright 2019 LinkedIn Corporation. All rights reserved.
// Licensed under the BSD-2 Clause license.
// See LICENSE in the project root for license information.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:1.0.1'
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0'
}
}
allprojects {
group = 'com.linkedin.transport'
apply plugin: 'idea'
}
subprojects {
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
repositories {
mavenCentral()
maven {
url "https://conjars.org/repo"
}
}
project.ext.setProperty('presto-version', '333')
project.ext.setProperty('airlift-slice-version', '0.38')
project.ext.setProperty('spark-group', 'org.apache.spark')
project.ext.setProperty('spark-version', '2.3.0')
}
subprojects {
apply plugin: "com.github.hierynomus.license"
license {
header = file("${rootDir}/../gradle/license/LICENSE_HEADER")
ext.year = Calendar.getInstance().get(Calendar.YEAR)
skipExistingHeaders true
ignoreFailures false
strictCheck true
}
plugins.withType(JavaPlugin) {
project.apply(plugin: 'checkstyle')
dependencies {
testCompile 'org.testng:testng:6.11'
}
test {
useTestNG()
}
checkstyle {
configFile = file("${rootDir}/../gradle/checkstyle/linkedin-checkstyle.xml")
}
}
plugins.withType(ScalaPlugin) {
project.apply(plugin: 'scalaStyle')
scalaStyle {
configLocation = "${rootDir}/../gradle/scalastyle/scalastyle-config.xml"
source = sourceSets.main.allScala
testSource = sourceSets.test.allScala
includeTestSourceDirectory = true
}
check.dependsOn scalaStyle
}
}