-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
42 lines (35 loc) · 993 Bytes
/
build.gradle.kts
File metadata and controls
42 lines (35 loc) · 993 Bytes
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
plugins {
java
alias(libs.plugins.jacoco)
alias(libs.plugins.nexus)
id("openapi-parser.publish-central")
}
repositories {
mavenCentral()
}
// check
tasks.named("build") {
dependsOn ("jacocoLogAggregatedCoverage")
}
group = "io.openapiprocessor"
version = libs.versions.openapiparser.get()
println("version: $version")
extra["publishUser"] = buildProperty("PUBLISH_USER")
extra["publishKey"] = buildProperty("PUBLISH_KEY")
val publishUser: String by extra
val publishKey: String by extra
centralPublishing {
username = publishUser
password = publishKey
stagingDir = layout.buildDirectory.dir("central")
}
nexusPublishing {
this.repositories {
sonatype {
username.set(publishUser)
password.set(publishKey)
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
}
}
}