forked from moxie0/AndroidPinning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (73 loc) · 2.39 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4.2'
}
}
apply plugin: 'android-library'
android {
compileSdkVersion 17
buildToolsVersion '17.0.0'
android {
defaultConfig {
testPackageName "org.thoughtcrime.ssl.pinning.tests"
testInstrumentationRunner "android.test.InstrumentationTestRunner"
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aild.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
instrumentTest.setRoot('test')
}
}
}
apply plugin: 'maven'
apply plugin: 'signing'
version = "1.0.0"
group = "org.thoughtcrime.ssl.pinning"
signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
uploadArchives {
configuration = configurations.archives
repositories.mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: sonatypeRepo) {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'AndroidPinning Library'
packaging 'aar'
description 'An Android library that facilitates certificate pinning for SSL connections in Android apps, in order to minimize dependence on Certificate Authorities.'
url 'https://github.com/moxie0/AndroidPinning'
scm {
url 'scm:git@github.com:moxie0/AndroidPinning.git'
connection 'scm:git@github.com:moxie0/AndroidPinning.git'
developerConnection 'scm:git@github.com:moxie0/AndroidPinning.git'
}
licenses {
license {
name 'GPLv3'
url 'http://www.gnu.org/licenses/gpl-3.0.html'
distribution 'repo'
}
}
developers {
developer {
id 'moxie'
name 'Moxie Marlinspike'
email 'moxie@thoughtcrime.org'
}
}
}
}
}