-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (88 loc) · 2.77 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
buildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
android {
compileSdkVersion 30
defaultConfig {
minSdkVersion 19
targetSdkVersion 30
versionCode 1
versionName "1.0.5"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
testOptions {
unitTests.returnDefaultValues = true
}
buildToolsVersion '30.0.3'
}
tasks.withType(Javadoc).all { enabled = false }
dependencies {
implementation 'commons-codec:commons-codec:1.3'
implementation 'com.haventec.common.android.sdk:common-android-sdk:0.3@aar'
api 'org.bitbucket.b_c:jose4j:0.5.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
task sourceJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier "sources"
}
publishing {
publications {
maven(MavenPublication) {
groupId 'com.haventec.authenticate.android.sdk'
artifactId 'authenticate-android-sdk'
version '1.0.5'
artifact(sourceJar)
artifact("$buildDir/outputs/aar/authenticate-android-sdk-1.0.5.aar")
}
}
repositories {
mavenLocal()
}
}
ext {
organisation = 'haventec'
bintrayRepo = 'maven'
bintrayName = 'authenticate-android-sdk'
publishedGroupId = 'com.haventec.authenticate.android.sdk'
libraryName = 'authenticate-android-sdk'
artifact = 'authenticate-android-sdk'
libraryDescription = 'A collection of functions for native Android apps to facilitate the integration with Haventec Authenticate.'
siteUrl = 'https://github.com/Haventec/authenticate-android-sdk'
gitUrl = 'https://github.com/Haventec/authenticate-android-sdk.git'
libraryVersion = '1.0.5'
developerId = 'Haventec'
developerName = 'Haventec'
developerEmail = 'info@haventec.com'
licenseName = 'MIT'
licenseUrl = 'https://tldrlegal.com/license/mit-license'
allLicenses = ["MIT"]
}
apply from: 'bintray.gradle'