summaryrefslogtreecommitdiff
path: root/nexus/build.gradle
blob: be202f45faf5d0906bc94455df98163d49da4938 (plain)
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
plugins {
    id("kotlin")
    id("application")
    id("com.github.johnrengelman.shadow") version "8.1.1"
    id("org.jetbrains.kotlin.plugin.serialization") version "$kotlin_version"
}

version = rootProject.version

java {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}

compileKotlin.kotlinOptions.jvmTarget = "17"
compileTestKotlin.kotlinOptions.jvmTarget = "17"

sourceSets.main.java.srcDirs = ["src/main/kotlin"]

dependencies {
    // Core language libraries
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")

    implementation(project(":common"))
    implementation(project(":ebics"))

    // XML parsing/binding and encryption
    implementation("jakarta.xml.bind:jakarta.xml.bind-api:2.3.3")

    // Command line parsing
    implementation("com.github.ajalt.clikt:clikt:$clikt_version")
    implementation("org.postgresql:postgresql:$postgres_version")
    // Ktor client library
    implementation("io.ktor:ktor-client-apache:$ktor_version")

    // PDF generation
    implementation("com.itextpdf:itext-core:8.0.2")

    // UNIX domain sockets support (used to connect to PostgreSQL)
    implementation("com.kohlschutter.junixsocket:junixsocket-core:$junixsocket_version")

    // Serialization
    implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")

    // Unit testing
    testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlin_version")
    testImplementation("io.ktor:ktor-client-mock:$ktor_version")
}

application {
    mainClassName = "tech.libeufin.nexus.MainKt"
    applicationName = "libeufin-nexus"
}

run {
    standardInput = System.in
}