forked from opensensorhub/osh-android
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
83 lines (70 loc) · 2.69 KB
/
build.gradle
File metadata and controls
83 lines (70 loc) · 2.69 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
ext.oshCoreVersion = '2.0.0-beta'
ext.compileSdkVersion = 33
ext.minSdkVersion = 34
ext.targetSdkVersion = 30
ext.buildToolsVersion = "30.0.2"
version = '3.1.2'
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
subprojects {
group = 'org.sensorhub'
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
}
if (!project.projectDir.parent.endsWith('osh-android')) {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
ext.details = null
ext.pom = {}
dependencies {
api 'org.slf4j:slf4j-api:2.0.9'
}
if (project.name == 'sensorhub-core') {
dependencies {
compileOnly 'ch.qos.logback:logback-classic:1.3.14'
}
}
configurations {
embeddedApi
embeddedImpl
embedded
embedded.extendsFrom(embeddedApi, embeddedImpl)
api.extendsFrom(embeddedApi)
implementation.extendsFrom(embeddedImpl)
compile {
extendsFrom embedded
}
}
task osgi {
// dummy osgi task since just to make subprojects happy
}
}
configurations.all {
exclude group: 'org.sensorhub', module: 'sensorhub-comm-ble-dbus'
resolutionStrategy.dependencySubstitution {
// force use of local projects
substitute(module('org.sensorhub:sensorhub-core')).using(project(':sensorhub-core'))
substitute(module('org.sensorhub:sensorhub-comm-ble')).using(project(':sensorhub-comm-ble'))
substitute(module('org.sensorhub:sensorhub-service-swe')).using(project(':sensorhub-service-swe'))
substitute(module('org.sensorhub:sensorhub-service-video')).using(project(':sensorhub-service-video'))
// substitute(module('org.vast.opengis:ogc-services-sps')).using(project(':ogc-services-sps'))
substitute(module('org.sensorhub:sensorhub-service-consys')).using(project(':sensorhub-service-consys'))
// override objenesis version to get new android instantiators
substitute(module('uk.com.robust-it:cloning:1.9.1')).using(module('uk.com.robust-it:cloning:1.9.10'))
substitute(module('org.slf4j:slf4j-android:1.6.1-RC1')).using(module('org.slf4j:slf4j-api:1.7.25'))
// substitute(module('org.slf4j:slf4j-android')).using(module('org.slf4j:slf4j-android:1.7.36'))
}
}
version = oshCoreVersion
}