This repository has been archived by the owner on Nov 7, 2018. It is now read-only.
/
build.gradle
63 lines (56 loc) · 2.04 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url 'https://dl.bintray.com/palantir/releases/'
}
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:${shadowJarVersion}"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${bintrayVersion}"
classpath "com.palantir.gradle.javadist:gradle-java-distribution:${javaDistributionVersion}"
classpath "com.palantir.launchconfig:gradle-launch-config-plugin:${launchConfigVersion}"
classpath "com.palantir:gradle-baseline-java:${gradleBaselineVersion}"
classpath "gradle.plugin.com.palantir.configurationresolver:gradle-configuration-resolver-plugin:${configurationResolverVersion}"
}
}
plugins {
id 'com.palantir.git-version' version "0.5.1"
id 'com.palantir.jacoco-full-report' version "0.3.0"
id 'org.inferred.processors' version "1.1.3"
id 'org.unbroken-dome.test-sets' version "1.2.0"
}
apply plugin: 'com.palantir.baseline-config' // provides baselineUpdateConfig task
apply plugin: 'com.palantir.baseline-eclipse'
apply plugin: 'com.palantir.baseline-idea'
repositories {
jcenter() // needed for baselineUpdateConfig task
}
allprojects {
group 'com.palantir.ls'
version gitVersion()
repositories {
jcenter()
}
if (System.env.CIRCLE_ARTIFACTS) {
task copyCiArtifactsToCircle {
outputs.upToDateWhen { false }
doLast {
[
file("${projectDir}/contiperf-report"), // contiperf benchmark results
file("${buildDir}/reports"), // jacoco, checkstyle, findbugs
file("${buildDir}/docs/javadoc/")
].each { src ->
copy {
from src
into "${System.env.CIRCLE_ARTIFACTS}/${project.name}/${src.name}"
}
}
}
}
}
}