-
Notifications
You must be signed in to change notification settings - Fork 189
/
build.gradle
81 lines (72 loc) · 1.87 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-2020 LinkedIn Corporation. All rights reserved.
// Licensed under the BSD-2 Clause license.
// See LICENSE in the project root for license information.
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath "org.shipkit:shipkit-auto-version:1.1.1"
classpath "org.shipkit:shipkit-changelog:1.1.10"
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
}
}
plugins {
id "com.diffplug.spotless" version "5.9.0"
}
apply from: "gradle/shipkit.gradle"
configurations {
provided
}
allprojects {
group = "com.linkedin.coral"
apply plugin: "com.diffplug.spotless"
repositories {
mavenCentral()
maven {
url 'https://linkedin.jfrog.io/artifactory/avro-util/'
}
maven {
url 'https://linkedin.bintray.com/maven/'
}
}
spotless {
ratchetFrom 'origin/master'
groovyGradle {
target '**/*.gradle'
endWithNewline()
greclipse().configFile("${rootDir}/gradle/spotless/codestyle-eclipse.xml")
}
format 'markdown', {
target '**/*.md'
targetExclude 'docs/release-notes.md'
endWithNewline()
// Disabling Prettier since it causes TravisCI to barf
// prettier()
}
}
}
subprojects {
plugins.withType(JavaPlugin) {
dependencies {
testCompile deps.'testing'
}
test {
useTestNG()
}
spotless {
java {
importOrder('java', 'javax', 'com', 'org', 'com.linkedin.coral', '\\#')
removeUnusedImports()
eclipse().configFile("${rootDir}/gradle/spotless/codestyle-eclipse.xml")
licenseHeaderFile file("${rootDir}/gradle/license/LICENSE_HEADER")
}
}
}
apply from: "${rootDir}/gradle/dependencies.gradle"
apply from: "${rootDir}/gradle/java-publication.gradle"
}