-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
66 lines (53 loc) · 1.22 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
plugins {
id 'java'
id 'org.springframework.boot' version "${springBootPluginVersion}" apply false
id 'org.cadixdev.licenser' version '0.6.1'
id 'com.diffplug.spotless' version '6.22.0' apply false
id 'io.spring.dependency-management' version '1.1.4' apply false
}
group = 'io.temporal.jumpstart'
version = '1.0-SNAPSHOT'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
subprojects {
apply plugin: 'java'
apply plugin: 'org.cadixdev.licenser'
apply plugin: 'com.diffplug.spotless'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
compileJava {
options.compilerArgs << "-Werror"
}
ext {
javaSDKVersion = '1.22.2'
jarVersion = '1.0.0'
}
repositories {
mavenCentral()
}
dependencies {
}
license {
header rootProject.file('LICENSE')
include '**/*.java'
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'
tasks.named('test') {
useJUnitPlatform()
}
}