forked from temporalio/samples-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (52 loc) · 1.51 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
plugins {
id 'org.cadixdev.licenser' version '0.6.1'
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: 'org.cadixdev.licenser'
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.20.0'
jarVersion = '1.0.0'
}
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
mavenCentral()
}
dependencies {
}
license {
header rootProject.file('license-header.txt')
exclude '**/*.json'
exclude '**/*.yaml'
exclude '**/*.yml'
exclude '**/*.html'
}
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()
}
}