-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
103 lines (92 loc) · 4.49 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
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
rootProject.name = "common"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
fun addProject(projectIdentifier: String){
include(projectIdentifier)
project(projectIdentifier).name = projectIdentifier.trimStart(':').replace(':', '-')
}
addProject(":configuration")
addProject(":data")
addProject(":eventstore")
addProject(":eventstore:mongodb-models")
addProject(":http")
addProject(":mongodb")
addProject(":optional")
addProject(":rabbitmq")
addProject(":result")
addProject(":server")
addProject(":time")
addProject(":validation")
pluginManagement {
val axionReleaseVersion: String by settings
val kotlinVersion: String by settings
val spotlessVersion: String by settings
repositories {
gradlePluginPortal()
}
plugins {
id("com.diffplug.spotless") version spotlessVersion
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.serialization") version kotlinVersion
id("pl.allegro.tech.build.axion-release") version axionReleaseVersion
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
}
@Suppress("UnstableApiUsage")
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
versionCatalogs {
val eventStoreClientVersion: String by settings
val hopliteVersion: String by settings
val jUnitVersion: String by settings
val kodeinVersion: String by settings
val kotlinVersion: String by settings
val kotlinxCoroutinesVersion: String by settings
val kotlinxSerializationVersion: String by settings
val ktorVersion: String by settings
val mongoDBDriverVersion: String by settings
val rabbitMQClientVersion: String by settings
val striktVersion: String by settings
create("libraries") {
library("eventStore-client", "com.eventstore", "db-client-java").version(eventStoreClientVersion)
library("hoplite-core","com.sksamuel.hoplite","hoplite-core").version(hopliteVersion)
library("hoplite-json","com.sksamuel.hoplite","hoplite-json").version(hopliteVersion)
library("kodein-di", "org.kodein.di", "kodein-di").version(kodeinVersion)
library("kodein-di-framework-ktor-server", "org.kodein.di", "kodein-di-framework-ktor-server-jvm").version(kodeinVersion)
library("kotlin-reflect", "org.jetbrains.kotlin", "kotlin-reflect").version(
kotlinVersion
)
library("kotlinx-coroutines-core", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").version(
kotlinxCoroutinesVersion
)
library("kotlinx-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version(
kotlinxSerializationVersion
)
library("ktor-client-core", "io.ktor", "ktor-client-core").version(ktorVersion)
library("ktor-serialization-kotlinx-json", "io.ktor", "ktor-serialization-kotlinx-json").version(
ktorVersion
)
library("ktor-server-callId","io.ktor", "ktor-server-call-id").version(ktorVersion)
library("ktor-server-callLogging","io.ktor", "ktor-server-call-logging").version(ktorVersion)
library("ktor-server-cio", "io.ktor", "ktor-server-cio").version(ktorVersion)
library("ktor-server-contentNegotiation", "io.ktor", "ktor-server-content-negotiation").version(
ktorVersion
)
library("ktor-server-core", "io.ktor", "ktor-server-core").version(ktorVersion)
library("ktor-server-requestValidation", "io.ktor","ktor-server-request-validation").version(ktorVersion)
library("ktor-server-statusPages", "io.ktor","ktor-server-status-pages").version(ktorVersion)
library("mongoDB-driver", "org.mongodb", "mongodb-driver-kotlin-coroutine").version(mongoDBDriverVersion)
library("rabbitMQ-client", "com.rabbitmq", "amqp-client").version(
rabbitMQClientVersion
)
}
create("testingLibraries") {
library("jUnit-jupiter", "org.junit.jupiter", "junit-jupiter").version(jUnitVersion)
library("jUnit-jupiter-engine", "org.junit.jupiter", "junit-jupiter-engine").version(jUnitVersion)
library("jUnit-jupiter-params", "org.junit.jupiter", "junit-jupiter-params").version(jUnitVersion)
library("strikt.core", "io.strikt", "strikt-core").version(striktVersion)
}
}
}