forked from palantir/encrypted-config-value
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (89 loc) · 3.08 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
101
102
103
104
105
buildscript {
repositories {
jcenter()
maven { url "http://palantir.bintray.com/releases" }
}
dependencies {
classpath 'com.netflix.nebula:nebula-dependency-recommender:3.6.3'
classpath 'gradle.plugin.com.palantir.configurationresolver:gradle-configuration-resolver-plugin:0.2.0'
classpath 'com.palantir.gradle.docker:gradle-docker:0.12.0'
classpath 'com.palantir.baseline:gradle-baseline-java:0.13.0-rc3'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.14'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.0.0'
}
}
plugins {
id 'com.palantir.git-version' version '0.5.2'
id 'org.inferred.processors' version '1.2.3'
id 'com.palantir.jacoco-full-report' version '0.3.0'
id 'org.unbroken-dome.test-sets' version '1.3.2'
}
repositories {
jcenter()
maven { url "http://palantir.bintray.com/releases" }
}
apply plugin: 'com.palantir.baseline-config'
apply plugin: 'com.palantir.baseline-idea'
apply plugin: 'org.inferred.processors'
dependencies {
baseline 'com.palantir.baseline:gradle-baseline-java-config:0.13.0-rc3@zip'
}
allprojects {
apply plugin: 'nebula.dependency-recommender'
apply plugin: 'com.palantir.configuration-resolver'
version gitVersion()
group 'com.palantir.config.crypto'
dependencyRecommendations {
strategy OverrideTransitives
propertiesFile file: project.rootProject.file('version.props')
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'com.palantir.baseline-checkstyle'
apply plugin: 'com.palantir.baseline-eclipse'
apply plugin: 'com.palantir.baseline-error-prone'
apply plugin: 'com.palantir.baseline-idea'
apply plugin: 'org.inferred.processors'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
repositories {
jcenter()
maven { url "http://palantir.bintray.com/releases" }
}
javadoc {
classpath = sourceSets.main.compileClasspath + configurations.processor
}
sourceCompatibility = 1.8
jacocoTestReport {
reports {
xml.enabled = true
}
// Ignore Immutables-generated code from coverage checks
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
// Exclusion path is project-relative and has a base of compiled classes
fileTree(dir: it, exclude: '**/Immutable*.class')
})
}
}
tasks.jacocoTestReport.dependsOn(tasks.test)
tasks.check.dependsOn(tasks.jacocoTestReport)
tasks.check.dependsOn(javadoc)
if (System.env.CIRCLECI) {
test.reports.junitXml.destination = new File(System.env.TESTS_DIR, it.getName())
}
compileJava {
options.compilerArgs += [
'-XepDisableWarningsInGeneratedCode',
'-Xep:OptionalEquality:WARN'
]
}
}