-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
50 lines (49 loc) · 1.54 KB
/
build.gradle.kts
File metadata and controls
50 lines (49 loc) · 1.54 KB
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
plugins {
id("com.diffplug.spotless") version "6.23.3"
}
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlinGradle {
target("**/*.kts")
ktlint()
}
java {
target("**/*.java")
googleJavaFormat()
.reflowLongStrings()
.skipJavadocFormatting()
.reorderImports(false)
}
yaml {
target("**/*.yaml")
targetExclude("**/.gradle/**")
jackson()
.feature("ORDER_MAP_ENTRIES_BY_KEYS", false)
.yamlFeature("MINIMIZE_QUOTES", true)
.yamlFeature("ALWAYS_QUOTE_NUMBERS_AS_STRINGS", true)
.yamlFeature("SPLIT_LINES", false)
.yamlFeature("LITERAL_BLOCK_STYLE", true)
}
json {
target("**/*.json")
targetExclude("**/.gradle/**")
jackson()
.feature("ORDER_MAP_ENTRIES_BY_KEYS", true)
}
python {
target("**/*.py")
black("24.4.2")
}
}
allprojects {
repositories {
maven { setUrl("https://maven.aliyun.com/repository/public") }
maven { setUrl("https://maven.aliyun.com/repository/spring") }
maven { setUrl("https://maven.aliyun.com/repository/mapr-public") }
maven { setUrl("https://maven.aliyun.com/repository/spring-plugin") }
maven { setUrl("https://maven.aliyun.com/repository/gradle-plugin") }
maven { setUrl("https://maven.aliyun.com/repository/google") }
maven { setUrl("https://maven.aliyun.com/repository/jcenter") }
mavenCentral()
}
version = "1.0.0"
}