-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.gradle
81 lines (69 loc) · 1.7 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
// 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'
}
}
plugins {
id "com.github.hierynomus.license" version "0.16.1"
}
allprojects {
group = 'com.linkedin.transport'
apply plugin: 'idea'
}
subprojects {
buildscript {
repositories {
gradlePluginPortal()
jcenter()
mavenCentral()
}
}
repositories {
mavenCentral()
}
}
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 {
testImplementation 'org.testng:testng:6.11'
}
test {
useTestNG()
}
checkstyle {
configFile = rootProject.file('../gradle/checkstyle/checkstyle.xml')
configProperties = [
'configDir': rootProject.file('../gradle/checkstyle'),
'baseDir': "${rootDir}/.."
]
toolVersion '8.23'
}
}
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
}
}