-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
39 lines (34 loc) · 1.01 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
31
32
33
34
35
36
37
38
39
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
id("org.jetbrains.kotlin.plugin.serialization") version "1.6.21"
}
buildscript {
repositories {
mavenCentral()
google()
maven { url = uri("https://repo.gradle.org/gradle/libs-releases") }
}
dependencies {
classpath("com.android.tools.build:gradle:8.1.4")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
nexusPublishing {
repositories {
sonatype {
val properties = gradleLocalProperties(rootDir)
username.set(properties.getProperty("ossrhUsername"))
password.set(properties.getProperty("ossrhPassword"))
stagingProfileId.set(properties.getProperty("sonatypeStagingProfileId"))
nexusUrl.set(uri(properties.getProperty("nexusUrl")))
snapshotRepositoryUrl.set(uri(properties.getProperty("snapshotRepositoryUrl")))
}
}
}