-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathbuild.gradle
More file actions
124 lines (118 loc) · 4.87 KB
/
build.gradle
File metadata and controls
124 lines (118 loc) · 4.87 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
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.23'
repositories {
google()
mavenCentral()
mavenLocal()
}
dependencies {
//classpath 'com.android.tools.build:gradle:3.5.4'
classpath "com.android.tools.build:gradle:8.2.2"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//classpath('org.jfrog.buildinfo:build-info-extractor-gradle:4.21.0')
}
}
// Plugin used to upload authenticated files to BinTray through Gradle
/*plugins {
id "com.jfrog.artifactory" version "4.21.0"
}
apply plugin: 'com.jfrog.artifactory'
*/
apply plugin: 'maven-publish'
allprojects {
repositories {
google()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ShimmerEngineering/Shimmer-Java-Android-API")
credentials {
/* Create gradle.properties file in GRADLE_USER_HOME/.gradle/
(e.g. C:/Users/YourUsername/.gradle/) with the two lines listed below. Fill in your
Github ID and personal access token - as generated through the Github Developer
Settings page. The token needs to have "read:packages" scope enabled on it:
gpr.usr=GITHUB_USER_ID
gpr.key=PERSONAL_ACCESS_TOKEN
*/
username = project.findProperty("gpr.usr") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
/* should the above not work key in your username and password directly e.g.
username = "username"
password = "password"
DO NOT commit your username and password
*/
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ShimmerEngineering/ShimmerAndroidAPI")
credentials {
/* Create gradle.properties file in GRADLE_USER_HOME/.gradle/
(e.g. C:/Users/YourUsername/.gradle/) with the two lines listed below. Fill in your
Github ID and personal access token - as generated through the Github Developer
Settings page. The token needs to have "read:packages" scope enabled on it:
gpr.usr=GITHUB_USER_ID
gpr.key=PERSONAL_ACCESS_TOKEN
*/
username = project.findProperty("gpr.usr") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
/* should the above not work key in your username and password directly e.g.
username = "username"
password = "password"
DO NOT commit your username and password
*/
}
}
mavenCentral()
mavenLocal()
jcenter()
maven { url 'https://jitpack.io' }
}
subprojects {
afterEvaluate {
dependencies {
implementation 'com.google.guava:guava:20.0'
implementation 'java3d:vecmath:1.3.1'
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.github.Jasonchenlijian:FastBle:2.4.0'
implementation (group: 'com.shimmerresearch', name: 'shimmerbluetoothmanager', version:'0.11.7_beta'){
// excluding org.json which is provided by Android
exclude group: 'io.netty'
exclude group: 'com.google.protobuf'
exclude group: 'org.apache.commons.math'
}
implementation (group: 'com.shimmerresearch', name: 'shimmerdriver', version:'0.11.7_beta'){
// excluding org.json which is provided by Android
exclude group: 'io.netty'
exclude group: 'com.google.protobuf'
}
}
}
}
// artifactory {
// contextUrl = "${artifactory_contextUrl}"
// publish {
// repository {
// repoKey = 'ShimmerAPI'
// username = "${artifactory_user}"
// password = "${artifactory_password}"
// maven = true
// }
// defaults {
// publications('mavenJava')
// }
// publishBuildInfo = true
// publishArtifacts = true
// publishPom = true
// }
// resolve {
// repository {
// repoKey = 'ShimmerAPI'
// username = "${artifactory_user}"
// password = "${artifactory_password}"
// maven = true
// }
// }
// }
}