-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
83 lines (68 loc) · 1.57 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
72
73
74
75
76
77
78
79
80
81
82
83
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.13'
id 'io.spring.dependency-management' version '1.1.2'
id 'com.diffplug.spotless' version "6.13.0"
}
group = 'io.workflow'
version = '0.0.1-SNAPSHOT'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation "io.iworkflow:iwf-java-sdk:2.3.0"
implementation 'com.google.guava:guava:32.1.1-jre'
}
tasks.named('test') {
useJUnitPlatform()
}
dependencyLocking {
lockAllConfigurations()
}
spotless {
def prettierPlugins = [
"prettier": "2.5.1",
"prettier-plugin-java": "1.6.1",
]
def ignoredDirs = [
'.gradle/**',
'.idea/**',
'build/**'
]
format 'misc', {
// define the files to apply `misc` to
target '*.gradle', '.gitignore'
targetExclude(ignoredDirs)
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithTabs() // or spaces. Takes an integer argument if you don't like 4
endWithNewline()
}
format 'markdown', {
target '*.md'
targetExclude(ignoredDirs)
prettier(prettierPlugins).config([
'parser': 'markdown'
])
}
java {
targetExclude(ignoredDirs)
// Use the default importOrder configuration
importOrder()
removeUnusedImports()
prettier(prettierPlugins).config([
'parser': 'java',
'tabWidth': 4,
'printWidth': 120
])
}
}