generated from yonatankarp/spring-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (47 loc) · 1.46 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 {
id("domain-gateway-demo.java-conventions")
id("domain-gateway-demo.publishing-conventions")
alias(libs.plugins.spotless) apply true
alias(libs.plugins.spring.boot) apply false
alias(libs.plugins.spring.dependency.management) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.kotlin.spring) apply false
alias(libs.plugins.openapi.generator) apply false
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url = uri("https://packages.confluent.io/maven/") }
maven {
url = uri("https://maven.pkg.github.com/yonatankarp/domain-gateway-demo")
credentials {
username = findProperty("gpr.user")?.toString() ?: System.getenv("GITHUB_ACTOR")
password = findProperty("gpr.key")?.toString() ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
allprojects {
apply(plugin = "com.diffplug.spotless")
repositories {
mavenCentral()
}
spotless {
kotlin {
target(
fileTree(projectDir) {
include("**/*.kt")
exclude(
"**/.gradle/**",
"**/build/generated/**"
)
}
)
trimTrailingWhitespace()
endWithNewline()
// see https://github.com/shyiko/ktlint#standard-rules
ktlint()
}
}
}