-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
67 lines (56 loc) · 1.5 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
55
56
57
58
59
60
61
62
63
64
65
66
67
import com.github.gradle.node.npm.task.NpmTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "1.9.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.github.node-gradle.node") version "5.0.0"
application
eclipse
}
node {
nodeProjectDir.set(File(project.projectDir, "src/main/resources"))
}
tasks.register("run-dev", NpmTask::class) {
this.args.set(arrayListOf("run", "build"))
}
tasks.processResources {
if(!project.hasProperty("docker")) dependsOn(tasks.npmInstall, tasks.getByName("run-dev"))
filesNotMatching(arrayListOf("dist/*")) { this.exclude() }
exclude(".vscode", "node_modules", "src/")
}
repositories {
mavenCentral()
}
dependencies {
//HTTP
implementation("io.javalin:javalin:5.6.2")
implementation("org.slf4j:slf4j-simple:2.0.7")
//DB
implementation("org.mongodb:mongodb-driver-sync:4.9.1")
implementation("com.google.code.gson:gson:2.10.1")
//Auth
implementation("com.auth0:java-jwt:4.4.0")
implementation("at.favre.lib:bcrypt:0.10.2")
//Tests
testImplementation("com.github.kittinunf.fuel:fuel:3.0.0-alpha1")
}
testing {
suites {
val test by getting(JvmTestSuite::class) {
useKotlinTest("1.9.0")
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
application {
mainClass.set("fr.minemobs.citracloudsaves.AppKt")
}