-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
30 lines (27 loc) · 1.07 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
plugins {
id("com.android.application") version "7.1.3" apply false
id("com.android.library") version "7.1.3" apply false
kotlin("android") version "1.6.20" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.8.0"
}
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}
apply(from = "$rootDir/scripts/publish-root.gradle.kts")
// Set up Sonatype repository
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)
// Add these lines if using new Sonatype infra
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}