-
Notifications
You must be signed in to change notification settings - Fork 293
/
Copy pathdd-trace-java.gradle
68 lines (52 loc) · 1.84 KB
/
dd-trace-java.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
plugins {
id 'io.franzbecker.gradle-lombok' version '1.14' // Last to support Java 7
id 'com.jfrog.artifactory' version '4.9.8'
// ^ Last version to not have problems with NoSuchMethodError HttpClientBuilder.setPublicSuffixMatcher...
// See also https://www.jfrog.com/jira/browse/GAP-317
id 'com.jfrog.bintray' version '1.8.5'
id 'org.unbroken-dome.test-sets' version '3.0.1'
id 'com.github.ben-manes.versions' version '0.27.0'
id 'com.diffplug.gradle.spotless' version '4.3.0'
id 'com.dorongold.task-tree' version '1.5'
id 'pl.allegro.tech.build.axion-release' version '1.10.3'
}
def isCI = System.getenv("CI") != null
apply from: "$rootDir/gradle/scm.gradle"
apply from: "$rootDir/gradle/spotless.gradle"
allprojects {
group = 'com.datadoghq'
version = scmVersion.version
if (isCI) {
buildDir = "$rootDir/workspace/${projectDir.path.replace(rootDir.path, '')}/build/"
}
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/util.gradle"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
description = 'dd-trace-java'
tasks.register("latestDepTest")
// Applied here to allow publishing of artifactory build info
apply from: "$rootDir/gradle/publish.gradle"
wrapper {
distributionType = Wrapper.DistributionType.ALL
}
allprojects {
tasks.withType(JavaForkOptions).configureEach {
maxHeapSize = System.properties["datadog.forkedMaxHeapSize"]
minHeapSize = System.properties["datadog.forkedMinHeapSize"]
jvmArgs "-XX:ErrorFile=/tmp/hs_err_pid%p.log"
}
}
task writeMuzzleTasksToFile {
doLast {
def muzzleFile = file("${buildDir}/muzzleTasks")
assert muzzleFile.parentFile.mkdirs() || muzzleFile.parentFile.directory
muzzleFile.text = subprojects.findAll { subproject -> subproject.plugins.hasPlugin('muzzle') }
.collect { it.path + ":muzzle" }
.join('\n')
}
}