-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
133 lines (121 loc) · 3.87 KB
/
build.gradle.kts
File metadata and controls
133 lines (121 loc) · 3.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
125
126
127
128
129
130
131
132
133
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("maven-publish")
id("org.jlleitschuh.gradle.ktlint")
id("org.jetbrains.kotlin.plugin.serialization") apply true
id("signing")
id("org.jetbrains.kotlinx.binary-compatibility-validator")
id("org.jetbrains.kotlinx.kover")
}
val providerVersion = project.extra["version"].toString()
object Versions {
const val okHttp = "4.10.0"
const val kotlinxSerialization = "1.6.0"
const val coroutines = "1.7.3"
const val junit = "4.13.2"
const val kotlinMockito = "4.1.0"
const val mockWebServer = "4.9.1"
}
android {
namespace = "com.spotify.confidence"
compileSdk = 33
defaultConfig {
minSdk = 21
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
testOptions {
unitTests.isReturnDefaultValues = true
}
}
dependencies {
implementation(libs.okHttp)
implementation(libs.kotlinxSerialization)
implementation(libs.coroutines)
testImplementation(libs.junit)
testImplementation(libs.coroutines)
testImplementation(libs.kotlinMockito)
testImplementation(libs.mockWebServer)
testImplementation(libs.mockk)
testImplementation(libs.kotlinxCoroutinesTest)
}
publishing {
publications {
register<MavenPublication>("release") {
groupId = project.extra["groupId"].toString()
artifactId = "confidence-sdk-android"
version = providerVersion
pom {
name.set("Confidence SDK Android")
description.set("Android SDK for Confidence")
url.set("https://github.com/spotify/confidence-openfeature-provider-kotlin")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("vahidlazio")
name.set("Vahid Torkaman")
email.set("vahidt@spotify.com")
}
developer {
id.set("fabriziodemaria")
name.set("Fabrizio Demaria")
email.set("fdema@spotify.com")
}
developer {
id.set("nicklasl")
name.set("Nicklas Lundin")
email.set("nicklasl@spotify.com")
}
developer {
id.set("nickybondarenko")
name.set("Nicky Bondarenko")
email.set("nickyb@spotify.com")
}
}
scm {
connection.set(
"scm:git:git://spotify/confidence-openfeature-provider-kotlin.git"
)
developerConnection.set(
"scm:git:ssh://spotify/confidence-openfeature-provider-kotlin.git"
)
url.set("https://github.com/spotify/confidence-openfeature-provider-kotlin")
}
}
afterEvaluate {
from(components["release"])
}
}
}
}
signing {
sign(publishing.publications["release"])
}
kover {
reports {
verify {
rule {
minBound(78)
}
}
}
}