-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
30 lines (27 loc) · 1.09 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "7.2.2" apply false
id("com.android.library") version "7.2.2" apply false
kotlin("android") version "1.7.10" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
apply(from = "$rootDir/scripts/publish-root.gradle.kts")
// Sonatype repository setup
nexusPublishing {
repositories {
sonatype {
val ossrhUsername: String by extra
val ossrhPassword: String by extra
val sonatypeStagingProfileId: String by extra
stagingProfileId.set(sonatypeStagingProfileId)
username.set(ossrhUsername)
password.set(ossrhPassword)
// needed for new Sonatype infrastructure
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}