-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
43 lines (36 loc) · 893 Bytes
/
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
plugins {
alias(libs.plugins.kotlin.mutliplatform) apply false
alias(libs.plugins.kotlin.binaryCompatibility)
alias(libs.plugins.nexus.publish)
convention.properties
}
allprojects {
repositories {
mavenCentral()
}
}
apiValidation {
ignoredProjects += listOf("benchmark", "test-suites")
}
val ossrhUsername: String by project.ext
val ossrhPassword: String by project.ext
nexusPublishing {
this.repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(ossrhUsername)
password.set(ossrhPassword)
}
}
}
tasks.register("printKtlintVersion") {
doLast {
println(libs.versions.ktlint.get())
}
}
tasks.register("printDetektVersion") {
doLast {
println(libs.versions.detekt.get())
}
}