This repository has been archived by the owner on May 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·166 lines (143 loc) · 6.16 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
// was 2.0.0
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}
allprojects {
repositories {
jcenter()
maven {
//for demo app
url "https://jitpack.io"
}
tasks.withType(JavaCompile) {
sourceCompatibility = "1.7"
targetCompatibility = "1.7"
}
}
}
subprojects {
tasks.withType(Javadoc).all {
failOnError = false
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
ext.globalCfg = [
minSdkVersion: 18,
compileSdkVersion: 23,
buildToolsVersion: "23.0.2",
publishedVersion: "0.9.4",
publishedGroupId : 'com.taptrack.tcmptappy',
]
ext.bintrayCfg = [
mavenInstallScript: rootProject.file('mavenInstaller.gradle'),
bintrayScript: rootProject.file('bintrayUpload.gradle'),
bintrayRepo : 'maven',
publishedArtifacts : [
bleService: [
bintrayName : 'tappyble-service',
libraryName : 'TappyBLE Communication',
artifact : 'tappyble-service',
libraryDescription : 'Communication service for TappyBLE communication'
],
simpleManager: [
bintrayName : 'tappyble-simplemanager',
libraryName : 'TappyBLE Simple Manager',
artifact : 'tappyble-simplemanager',
libraryDescription : 'Simple manager for communicating with a single tappy'
],
bleScanner : [
bintrayName : 'tappyble-scanner',
libraryName : 'TappyBLE Scanner',
artifact : 'tappyble-scanner',
libraryDescription : 'Tool to scan for TappyBLEs',
],
scannerCompat : [
bintrayName : 'blescannercompat',
libraryName : 'BLE Scanner Compatibility Library Scanner',
artifact : 'blescannercompat',
libraryDescription : 'Compat library for JellyBean/Lollipop BLE APIs',
],
commonCommandFamily: [
bintrayName : 'commandfamily-common',
libraryName : 'Abstract TCMP Command Family',
artifact : 'commandfamily-common',
libraryDescription : 'Base command family for implementing specific families',
],
commlinkCommon: [
bintrayName : 'commlink-common',
libraryName : 'Commlink Common',
artifact : 'commlink-common',
libraryDescription : 'Common files for TCMP Tappy Communication Links',
],
commlinkBle: [
bintrayName : 'commlink-ble',
libraryName : 'Commlink BLE',
artifact : 'commlink-ble',
libraryDescription : 'Tappy BLE communication link',
],
hdlc: [
bintrayName : 'hdlc',
libraryName : 'HDLC',
artifact : 'hdlc',
libraryDescription : 'Tappy BLE HDLC implementation',
],
messageCommon: [
bintrayName : 'message-common',
libraryName : 'Message Common',
artifact : 'message-common',
libraryDescription : 'TCMP Tappy common message implementations',
],
tappyBleDevice: [
bintrayName : 'tappyble-device',
libraryName : 'TappyBLE Device',
artifact : 'tappyble-device',
libraryDescription : 'Tappy BLE Device',
],
tappyConstants: [
bintrayName : 'tappy-constants',
libraryName : 'Tappy Constants',
artifact : 'tappy-constants',
libraryDescription : 'Constants for TCMP Tappy devices',
]
],
siteUrl : 'https://github.com/TapTrack/TappyBLE',
gitUrl : 'https://github.com/TapTrack/TappyBLE.git',
developerId : "TapTrack",
developerName : "TapTrack",
developerEmail : "[email protected]",
licenseName : 'The Apache Software License, Version 2.0',
licenseUrl : "http://www.apache.org/licenses/LICENSE-2.0.txt",
allLicenses : ["Apache-2.0"],
]
ext.libraries = [
androidSupportAnnotations: "com.android.support:support-annotations:23.1.1",
// common libraries
tcmpHdlc : project(':hdlc'),
tcmpMessage : project(':message-common'),
tcmpCommandFamilyCommon : project(':commandfamily-common'),
tcmpCommlinkCommon : project(':commlink-common'),
tcmpBleScannerCompat : project(':blescannercompat'),
tcmpTappyBle : project(':tappy-bledevice'),
tcmpTappyConstants : project(':tappy-constants'),
// commlinks
tcmpCommlinkBle : project(':commlink-ble'),
tcmpCommlinkBleService : project(':tappyble-service'),
// command families
tcmpSystemCommandFamily : "com.taptrack.tcmptappy:commandfamily-system:0.8.0",
tcmpTappyCommandFamily : "com.taptrack.tcmptappy:commandfamily-basicnfc:0.8.1",
tcmpClassicCommandFamily : "com.taptrack.tcmptappy:commandfamily-mifareclassic:0.4.0",
tcmpType4CommandFamily : "com.taptrack.tcmptappy:commandfamily-type4:0.3.0",
tcmpTappyBleScanner : project(':tappyble-scanner'),
junit : 'junit:junit:4.12'
]