-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (43 loc) · 1.66 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
import org.jetbrains.kotlin.gradle.internal.ensureParentDirsCreated
plugins {
kotlin("jvm")
}
val generatedPath = "$buildDir/generated/main/kotlin"
sourceSets {
main {
java.srcDir(generatedPath)
}
}
dependencies {
val arcadeDbVersion: String by project
val tinkerpopVersion: String by project
val coroutinesVersion: String by project
val kmpUUIDVersion: String by project
val testContainersVersion: String by project
implementation(project(":ok-marketplace-common"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("com.benasher44:uuid:$kmpUUIDVersion")
testImplementation(project(":ok-marketplace-repo-tests"))
implementation(kotlin("stdlib-jdk8"))
implementation("org.apache.tinkerpop:gremlin-driver:$tinkerpopVersion")
implementation("com.arcadedb:arcadedb-engine:$arcadeDbVersion")
implementation("com.arcadedb:arcadedb-network:$arcadeDbVersion")
implementation("com.arcadedb:arcadedb-gremlin:$arcadeDbVersion")
testImplementation(kotlin("test-junit"))
testImplementation("org.testcontainers:testcontainers:$testContainersVersion")
}
val arcadeDbVersion: String by project
tasks {
val gradleConstants by creating {
file("$generatedPath/GradleConstants.kt").apply {
ensureParentDirsCreated()
writeText(
"""
package ru.otus.otuskotlin.marketplace.backend.repository.gremlin
const val ARCADEDB_VERSION = "$arcadeDbVersion"
""".trimIndent()
)
}
}
compileKotlin.get().dependsOn(gradleConstants)
}