forked from temporalio/samples-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (59 loc) · 1.65 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
64
65
66
67
68
69
70
71
plugins {
id 'org.cadixdev.licenser' version '0.6.1'
id "net.ltgt.errorprone" version "3.1.0"
id 'com.diffplug.spotless' version '6.22.0' apply false
id "org.springframework.boot" version "${springBootPluginVersion}"
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.cadixdev.licenser'
apply plugin: 'net.ltgt.errorprone'
apply plugin: 'com.diffplug.spotless'
compileJava {
options.compilerArgs << "-Werror"
}
java {
if(project.property("springBootPluginVersion") == "2.7.13") {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
} else {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
ext {
otelVersion = '1.30.1'
otelVersionAlpha = "${otelVersion}-alpha"
javaSDKVersion = '1.22.3'
camelVersion = '3.22.1'
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'
exclude '**/*.js'
}
apply plugin: 'com.diffplug.spotless'
spotless {
java {
target 'src/*/java/**/*.java'
targetExclude '**/.idea/**'
googleJavaFormat('1.16.0')
}
}
compileJava.dependsOn 'spotlessApply'
test {
useJUnitPlatform()
}
}