-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathbuild.gradle.kts
108 lines (98 loc) · 3.23 KB
/
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
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
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("signing")
id("maven-publish")
id("org.jlleitschuh.gradle.ktlint")
}
val releaseVersion = project.extra["version"].toString()
android {
namespace = "org.gofeatureflag.openfeature"
compileSdk = 33
testOptions {
unitTests {
isIncludeAndroidResources = true
}
}
defaultConfig {
minSdk = 21
version = releaseVersion
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro"
)
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
}
publishing {
publications {
register<MavenPublication>("release") {
groupId = project.extra["groupId"].toString()
artifactId = "gofeatureflag-kotlin-provider"
version = releaseVersion
pom {
name.set("GO Feature Flag OpenFeature Provider for Android")
description.set(
"This is the Android provider implementation of OpenFeature for GO Feature Flag."
)
url.set("https://gofeatureflag.org")
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("thomaspoignant")
name.set("Thomas Poignant")
email.set("[email protected]")
}
}
scm {
connection.set(
"scm:git:https://github.com/thomaspoignant/go-feature-flag.git"
)
developerConnection.set(
"scm:git:ssh://[email protected]:thomaspoignant/go-feature-flag.git"
)
url.set("https://github.com/thomaspoignant/go-feature-flag/tree/main/openfeature/providers/kotlin-provider")
}
}
afterEvaluate {
from(components["release"])
}
}
}
}
dependencies {
api("dev.openfeature:android-sdk:0.3.2")
api("com.squareup.okhttp3:okhttp:4.12.0")
api("com.google.code.gson:gson:2.11.0")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
testImplementation("junit:junit:4.13.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1")
testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0")
testImplementation("org.skyscreamer:jsonassert:1.5.3")
}
signing {
sign(publishing.publications["release"])
}