-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (44 loc) · 1.11 KB
/
build.gradle.kts
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
plugins {
base
alias(libs.plugins.sonar)
alias(libs.plugins.nexusPublish)
alias(libs.plugins.spotless)
}
repositories { mavenCentral() }
sonar {
properties {
property("sonar.projectKey", "mkutz_stubit")
property("sonar.organization", "mkutz")
property("sonar.host.url", "https://sonarcloud.io")
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
spotless {
format("misc") {
target("**/*.md", "**/*.xml", "**/*.yml", "**/*.yaml", "**/*.html", "**/*.css", ".gitignore")
targetExclude("**/build/**/*", "**/.idea/**")
trimTrailingWhitespace()
endWithNewline()
indentWithSpaces(2)
}
java {
target("**/*.java")
targetExclude("**/build/**/*")
googleJavaFormat().reflowLongStrings()
removeUnusedImports()
indentWithSpaces(2)
}
kotlinGradle {
target("**/*.gradle.kts")
targetExclude("**/build/**/*.gradle.kts")
ktfmt().googleStyle()
}
freshmark { target("*.md") }
}