-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathbuild.gradle
49 lines (42 loc) · 978 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
}
}
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
allprojects {
repositories {
mavenCentral()
google()
}
}
ext {
version = '2.2.0'
versionCode = 15
minSdkVersion = 14
compileSdkVersion = 30
targetSdkVersion = compileSdkVersion
sourceCompatibility = JavaVersion.VERSION_1_8
}
group = 'com.jraska'
version = ext.version
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 = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PASSWORD")
stagingProfileId = System.getenv("SONATYPE_STAGING_PROFILE_ID")
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}