-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
94 lines (80 loc) · 2.63 KB
/
build.gradle
File metadata and controls
94 lines (80 loc) · 2.63 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
apply plugin: 'com.android.library'
apply plugin: 'maven'
apply plugin: 'signing'
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
android {
compileSdkVersion 23
buildToolsVersion '30.0.2'
}
version = "1.1.0"
group = "com.indicative.client.android"
def isSnapshot() {
return version.endsWith("SNAPSHOT")
}
if (!isSnapshot()) {
signing {
required { gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
if (isSnapshot()) {
repository(url:'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath)
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
} else {
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
}
pom.project {
name 'Indicative-Android'
packaging 'aar'
description 'Android client for Indicative\'s REST API'
url 'https://github.com/Indicative/Indicative-Android'
scm {
url 'https://github.com/Indicative/Indicative-Android'
connection 'scm:git:git://github.com/Indicative/Indicative-Android.git'
developerConnection 'scm:git:https://bealeindicative@github.com/Indicative/Indicative-Android.git'
}
licenses {
license {
name 'Simplified BSD License'
url 'https://github.com/Indicative/Indicative-Android/blob/master/LICENSE.txt'
distribution 'repo'
comments '2-clause BSD License, aka the FreeBSD License. See LICENSE.txt'
}
}
developers {
developer {
id 'andrewbeale'
name 'Andrew Beale'
email 'andrew.beale@indicative.com'
}
developer {
id 'jackiebenowitz'
name 'Jackie Benowitz'
email 'jackie@indicative.com'
}
}
}
}
}