-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
33 lines (29 loc) · 1.17 KB
/
build.gradle
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.0.0' apply false
id 'com.android.library' version '7.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.5.30' apply false
id 'dagger.hilt.android.plugin' version '2.39.1' apply false
id 'org.jetbrains.dokka' version '1.5.0' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def local = new Properties()
File file = project.rootProject.file('local.properties')
if (file.exists()) local.load(file.newDataInputStream())
local.each { prop ->
project.ext.setProperty(prop.key, prop.value)
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = findProperty('OSSRH_USERNAME')
password = findProperty('OSSRH_PASSWORD')
stagingProfileId = findProperty('OSS_STAGING_PROFILE_ID')
}
}
}