-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (41 loc) · 1.26 KB
/
build.gradle
File metadata and controls
48 lines (41 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
}
}
plugins {
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def getSonatypeRepositoryToken() { return hasProperty('ossrhToken') ? ossrhToken : "" }
def getSonatypeRepositoryTokenPassword() { return hasProperty('ossrhTokenPassword') ? ossrhTokenPassword : "" }
nexusPublishing {
packageGroup = GROUP //optional if packageGroup == project.getGroup()
repositories {
sonatype {
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
snapshotRepositoryUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
username = getSonatypeRepositoryToken()
password = getSonatypeRepositoryTokenPassword()
}
}
transitionCheckOptions {
maxRetries.set(240)
delayBetween.set(Duration.ofMillis(30000))
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: "io.github.gradle-nexus.publish-plugin"