forked from google/android-fhir
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
40 lines (31 loc) · 984 Bytes
/
build.gradle.kts
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
import Dependencies.removeIncompatibleDependencies
plugins {
id(Plugins.BuildPlugins.androidLib)
id(Plugins.BuildPlugins.kotlinAndroid)
id(Plugins.BuildPlugins.mavenPublish)
jacoco
}
publishArtifact(Releases.Common)
createJacocoTestReportTask()
android {
namespace = "com.google.android.fhir.common"
compileSdk = Sdk.compileSdk
defaultConfig { minSdk = Sdk.minSdk }
configureJacocoTestOptions()
kotlin { jvmToolchain(11) }
}
configurations { all { removeIncompatibleDependencies() } }
dependencies {
api(Dependencies.HapiFhir.structuresR4)
implementation(Dependencies.fhirUcum)
testImplementation(Dependencies.Kotlin.kotlinTestJunit)
testImplementation(Dependencies.AndroidxTest.core)
testImplementation(Dependencies.junit)
testImplementation(Dependencies.robolectric)
testImplementation(Dependencies.truth)
constraints {
Dependencies.hapiFhirConstraints().forEach { (libName, constraints) ->
api(libName, constraints)
}
}
}