-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
52 lines (43 loc) · 1.24 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
plugins {
id "net.ltgt.errorprone" version "3.1.0"
id 'com.diffplug.spotless' version '6.17.0' apply false
id 'org.springframework.boot' version '2.7.12'
}
subprojects {
apply plugin: 'java'
apply plugin: 'net.ltgt.errorprone'
apply plugin: 'com.diffplug.spotless'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
ext {
otelVersion = '1.26.0'
otelVersionAlpha = "${otelVersion}-alpha"
javaSDKVersion = '1.25.1'
jarVersion = '1.0.0'
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
mavenCentral()
}
dependencies {
}
if (JavaVersion.current().isJava11Compatible()) {
// Code should be formatted using the latest googleJavaFormat, but it doesn't support Java <11 since version 1.8
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target 'src/*/java/**/*.java'
targetExclude '**/.idea/**'
googleJavaFormat('1.16.0')
}
}
compileJava.dependsOn 'spotlessApply'
}
test {
useJUnitPlatform()
}
}