-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
40 lines (32 loc) · 1003 Bytes
/
build.gradle.kts
File metadata and controls
40 lines (32 loc) · 1003 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
plugins {
alias(libs.plugins.nexusPublish)
}
group = "com.teamscale"
val appVersion by extra("36.5.2")
val snapshotVersion = appVersion + if (VersionUtils.isTaggedRelease()) "" else "-SNAPSHOT"
allprojects {
version = snapshotVersion
}
// Installs all Maven artifacts to your local Maven repository
val publishToMavenLocal by tasks.registering
subprojects {
// must be run after evaluation because the publishToMavenLocal tasks are generated by our plugin during
// project evaluation
afterEvaluate {
val publishTask = tasks.findByPath("publishToMavenLocal")
if (publishTask != null) {
publishToMavenLocal.configure {
dependsOn(publishTask)
}
}
}
}
nexusPublishing {
repositories {
// see https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#configuration
sonatype {
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
}
}
}