-
Notifications
You must be signed in to change notification settings - Fork 105
/
build.gradle
100 lines (77 loc) · 2.65 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
buildscript {
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2'
}
}
dependencies {
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:latest.release'
classpath 'org.gretty:gretty:3.0.1'
}
}
plugins {
id 'nebula.netflixoss' version '9.3.0'
}
ext.githubProjectName = rootProject.name // Change if github project name is not the same as the root project's name
/*apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
apply from: file('gradle/license.gradle')
apply from: file('gradle/release.gradle')
*/
allprojects {
// https://www.developerfeed.com/how-do-disable-low-level-logging-apache-common-packages/
// handy command display all transitive dependencies of each subproject
task allDeps(type: DependencyReportTask) {}
}
subprojects {
apply plugin: 'nebula.netflixoss'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'pmd'
group = "com.netflix.${githubProjectName}"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
/**
* This repository locates artifacts that don't exist in maven central but we had to backup from jcenter or palantir repositories
* The exclusiveContent makes sure that we don't hit this repository for other dependencies
*/
exclusiveContent {
forRepository {
maven {
url "https://artifactory-oss.prod.netflix.net/artifactory/required-jcenter-modules-backup"
}
}
filter {
includeGroupByRegex "com\\.palantir\\.docker.*"
}
}
}
dependencies {
//StringUtils
compile 'commons-lang:commons-lang:2.6'
//Jersey & Servlet
compileOnly 'javax.servlet:servlet-api:2.5'
//Logging
compile 'org.slf4j:slf4j-api:1.6.1'
compile 'org.slf4j:slf4j-log4j12:1.6.1'
// Archaius-2
compile group: 'com.netflix.archaius', name: 'archaius2-core', version: '2.1.11'
compile group: 'com.netflix.archaius', name: 'archaius2-api', version: '2.1.11'
compile 'org.apache.commons:commons-lang3:3.3.2'
//Unit Testing
testCompile 'org.jmockit:jmockit:1.19'
testCompile 'junit:junit:latest.release'
//Google Injections
compile 'com.google.inject:guice:4.0'
compile 'com.google.inject.extensions:guice-multibindings:4.0'
compile 'javax.inject:javax.inject:1'
}
pmd {
ignoreFailures = true
}
}