This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.5 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
allprojects {
group = "com.newrelic.telemetry"
def isRelease = project.hasProperty("release") && "true" == release
version project.findProperty("baseVersion") + (isRelease ? "" : "-SNAPSHOT")
}
subprojects {
apply plugin: "java"
apply plugin: "checkstyle"
ext {
versions = [
opentelemetryExportersNewRelic : "0.12.0",
opentelemetryJavaagent : "0.12.1"
]
}
repositories {
jcenter()
maven {
url = uri("https://oss.sonatype.org/content/repositories/snapshots")
}
maven {
url = uri("https://oss.jfrog.org/artifactory/oss-snapshot-local")
}
mavenCentral()
}
checkstyle {
configFile = rootProject.file('checkstyle.xml') as File
configProperties = [
'licenseHeader': rootProject.file('license_header.txt')
]
}
dependencies {
testImplementation("org.mockito:mockito-core:3.3.3")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
}
tasks.withType(JavaCompile).configureEach {
javaCompiler = javaToolchains.compilerFor {
languageVersion = JavaLanguageVersion.of(8)
}
}
test {
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(11)
}
}
tasks {
test {
useJUnitPlatform()
}
}
}