-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
31 lines (28 loc) · 898 Bytes
/
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
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2"
}
}
apply plugin: 'io.codearte.nexus-staging'
def getSonatypeRepositoryToken() { return hasProperty('ossrhToken') ? ossrhToken : "" }
def getSonatypeRepositoryTokenPassword() { return hasProperty('ossrhTokenPassword') ? ossrhTokenPassword : "" }
nexusStaging {
packageGroup = GROUP // optional if packageGroup == project.getGroup()
username = getSonatypeRepositoryToken()
password = getSonatypeRepositoryTokenPassword()
delayBetweenRetriesInMillis = 30000
numberOfRetries = 120
}
allprojects {
repositories {
mavenCentral()
google()
}
}
task clean(type: Delete) { delete rootProject.buildDir }