-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
90 lines (80 loc) · 2.3 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
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.dsl.*
plugins {
alias(libs.plugins.android)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.kotest)
alias(libs.plugins.dokka)
alias(libs.plugins.kotlin.serialization)
`maven-publish`
}
android {
compileSdk = 35
defaultConfig {
minSdk = 21
consumerProguardFile("src/androidMain/consumer-proguard-rules.pro")
}
namespace = "com.adsbynimbus.openrtb"
}
kotlin {
explicitApi()
androidTarget {
compilations.configureEach {
compileTaskProvider.configure {
compilerOptions.jvmTarget = JvmTarget.JVM_1_8
}
}
publishLibraryVariants("release")
}
iosArm64()
iosSimulatorArm64()
sourceSets {
configureEach {
languageSettings {
apiVersion = KotlinVersion.KOTLIN_1_7.version
languageVersion = KotlinVersion.KOTLIN_1_7.version
optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}
commonMain.dependencies {
implementation(libs.serialization.json)
}
commonTest.dependencies {
implementation(libs.bundles.test.common)
}
androidUnitTest.dependencies {
implementation(libs.bundles.test.android)
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<DokkaTask>().configureEach {
moduleName = "nimbus-openrtb"
dokkaSourceSets {
named("commonMain") {
sourceLink {
localDirectory = layout.projectDirectory.file("src/$name/kotlin").asFile
remoteUrl = uri("https://github.com/timehop/nimbus-openrtb/kotlin/src/$name/kotlin").toURL()
remoteLineSuffix = "#L"
}
}
}
}
publishing {
repositories {
maven("s3://adsbynimbus-public/android/sdks") {
name = "aws"
authentication {
create<AwsImAuthentication>("awsIm")
}
}
providers.environmentVariable("GITHUB_REPOSITORY").orNull?.let {
maven("https://maven.pkg.github.com/$it") {
name = "github"
credentials(PasswordCredentials::class)
}
}
}
}