This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
/
build.gradle
89 lines (72 loc) · 3 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
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
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
}
// HttpClient is not supported in Android SDK 23
useLibrary 'org.apache.http.legacy'
}
dependencies {
compile 'com.google.code.gson:gson:2.4'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
compile('org.apache.httpcomponents:httpmime:4.3') {
exclude module: "httpclient"
}
}
apply plugin: 'maven'
apply plugin: 'signing'
signing {
sign configurations.archives
}
// Group ID is the project name
group = "com.microsoft.cognitive"
// Artifact name is the name of the technology
archivesBaseName = "speakerrecognition"
// Update your version
version = "1.1.0"
// Upload artifacts to maven central repository staging servers
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
// The readable name of the artifact
name 'Microsoft Cognitive Services Speaker Recognition Client Library'
packaging 'jar'
// optionally artifactId can be defined here
// Descriptions of the artifacts.
description 'This client library allows the use of Microsoft\'s state-of-the-art cloud-based speaker recognition algorithms to identify and verify a speaker\'s voice. See https://www.microsoft.com/cognitive-services/en-us/speaker-recognition-api for more information.'
// Project URL
url 'https://github.com/Microsoft/Cognitive-SpeakerRecognition-Android'
// Github information
scm {
connection 'scm:git:https://github.com/Microsoft/Cognitive-SpeakerRecognition-Android'
developerConnection 'scm:git:https://github.com/Microsoft/Cognitive-SpeakerRecognition-Android'
url 'scm:git:https://github.com/Microsoft/Cognitive-SpeakerRecognition-Android'
}
licenses {
license {
name 'MIT'
url 'https://github.com/Microsoft/Cognitive-SpeakerRecognition-Android/blob/master/LICENSE.md'
}
}
developers {
developer {
id 'cognitiveservicesSDK'
name 'Cognitive Services Client SDK'
email 'cognitiveSDKs@microsoft.com'
}
}
}
}
}
}