-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
54 lines (43 loc) · 1.74 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
rootProject.name = "apgdiff"
// load the local properties file if it exists
file("local.properties").takeIf { it.exists() }?.let {
val p = java.util.Properties()
p.load(it.reader())
for (entry in p) {
settings.extra.set(entry.key as String, entry.value)
}
}
val kotlinMultiplatformDiff: String? by settings.extra
// if kotlinMultiplatformDiff is defined, we use it as path to the
// https://github.com/petertrr/kotlin-multiplatform-diff checkout and include it as a build
kotlinMultiplatformDiff?.let {
includeBuild(it) {
dependencySubstitution {
substitute(module("io.github.petertrr:kotlin-multiplatform-diff"))
.using(project(":"))
}
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
// Catalogs
versionCatalogs {
create("libs") {
library("kotlin-multiplatform-diff", "io.github.petertrr", "kotlin-multiplatform-diff")
.version("0.7.0")
library("kotlinx-io-core", "org.jetbrains.kotlinx", "kotlinx-io-core")
.version("0.4.0")
library("clikt", "com.github.ajalt.clikt", "clikt").version("4.4.0")
library("logback-classic", "ch.qos.logback", "logback-classic").version("1.4.11")
}
// Testing
create("testLibs") {
library("kotest-assertions-core", "io.kotest", "kotest-assertions-core").version("5.9.1")
library("testcontainers", "org.testcontainers", "testcontainers").version("1.18.3")
library("junit-jupiter-api", "org.junit.jupiter", "junit-jupiter-api").withoutVersion()
library("junit-jupiter-params", "org.junit.jupiter", "junit-jupiter-params").withoutVersion()
}
}
}