forked from a-sit-plus/vck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
65 lines (53 loc) · 1.52 KB
/
settings.gradle.kts
File metadata and controls
65 lines (53 loc) · 1.52 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
import org.tomlj.Toml
import org.tomlj.TomlParseResult
import java.io.FileInputStream
pluginManagement {
includeBuild("conventions-vclib")
repositories {
google()
gradlePluginPortal()
mavenCentral()
maven {
url = uri("https://raw.githubusercontent.com/a-sit-plus/gradle-conventions-plugin/mvn/repo")
name = "aspConventions"
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}
rootProject.name = "vc-k"
include(":dif-data-classes")
include(":openid-data-classes")
include(":csc-data-classes")
include(":vck")
include(":vck-openid")
include(":vck-openid-ktor")
val signumFile = file("../signum/build.gradle.kts")
if (signumFile.exists()) {
logger.warn("Detected signum in ${signumFile.absolutePath}.")
logger.warn("Including signum as composite build.")
includeBuild("../signum")
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.tomlj:tomlj:1.1.1")
}
}
val versionCatalogSource: TomlParseResult by lazy {
Toml.parse(FileInputStream(rootProject.projectDir.absolutePath + ("/gradle/libs.versions.toml")))
}
/**
* Gets the version for the dependencies managed by shorthands. Can be overridden by `gradle/libs.versions.toml`
*/
internal fun versionOf(dependency: String) =
versionCatalogSource.getTable("versions")?.getString(dependency) as String
dependencyResolutionManagement {
repositories {
mavenLocal()
mavenCentral()
}
}