-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
60 lines (50 loc) · 2.61 KB
/
settings.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
import java.util.Properties
dependencyResolutionManagement {
versionCatalogs {
val kotlinVersion = "1.9.10"
create("libs") {
version("kotlin", kotlinVersion)
version("android-build-tools", "8.1.2")
version("jvm", "17")
plugin("android-library", "com.android.library").versionRef("android-build-tools")
plugin("multiplatform", "org.jetbrains.kotlin.multiplatform").versionRef("kotlin")
plugin("cocoapods", "org.jetbrains.kotlin.native.cocoapods").versionRef("kotlin")
library("android-build-tools", "com.android.tools.build", "gradle").versionRef("android-build-tools")
library("gradle-plugin", "org.jetbrains.kotlin", "kotlin-gradle-plugin").versionRef("kotlin")
}
create("testingLibs") {
version("kotlin", kotlinVersion)
version("kotest", "5.6.2")
library("detekt", "io.gitlab.arturbosch.detekt", "detekt-gradle-plugin").version("1.23.0")
library("detekt-formatting", "io.gitlab.arturbosch.detekt", "detekt-formatting").version("1.23.0")
library("kotest-plugin", "io.kotest", "kotest-framework-multiplatform-plugin-gradle").versionRef("kotest")
plugin("kover", "org.jetbrains.kotlinx.kover").version("0.6.1")
library("test-junit", "org.jetbrains.kotlin","kotlin-test-junit").withoutVersion()
library("junit", "junit", "junit").version("4.13.2")
library("kotest-core", "io.kotest", "kotest-assertions-core").versionRef("kotest")
library("kotest-engine", "io.kotest", "kotest-framework-engine").versionRef("kotest")
library("turbine", "app.cash.turbine", "turbine").version("1.0.0")
library("test-annotations-common", "org.jetbrains.kotlin", "kotlin-test-annotations-common").withoutVersion()
library("test-common", "org.jetbrains.kotlin", "kotlin-test-common").versionRef("kotlin")
library("robolectric", "org.robolectric", "robolectric").version("4.8")
}
// Android is a reserved keyword
create("androidVersions") {
version("compileSdk", "34")
version("buildToolsVersion", "33.0.1")
version("minSdk", "28")
version("targetSdk", "34")
}
}
}
include(":library")
val properties = Properties()
val propertiesFile = File("library/gradle.properties")
if (propertiesFile.exists()) {
properties.load(propertiesFile.inputStream())
}
val PUBLISH_NAME = properties.getProperty("PUBLISH_NAME")
rootProject.name = PUBLISH_NAME
rootProject.children.forEach {
it.name = PUBLISH_NAME
}