-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (49 loc) · 1.32 KB
/
build.gradle
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 {
alias(libs.plugins.allopen)
alias(libs.plugins.jvm)
alias(libs.plugins.ksp)
alias(libs.plugins.ktlint)
alias(libs.plugins.micronaut.docker)
alias(libs.plugins.micronaut.minimal.application)
}
version = "0.1"
group = "info.mapes.weekend"
repositories {
mavenCentral()
gradlePluginPortal()
// maven { url "https://binrepo.mapes.info/repository/maven-central/" }
// maven { url "https://binrepo.mapes.info/repository/gradle/" }
}
micronaut {
coreVersion.set(libs.versions.micronaut.core)
runtime("netty")
processing {
incremental(true)
annotations("info.mapes.weekend.*")
}
}
dependencies {
implementation(libs.bundles.kotlin)
implementation(libs.bundles.micronaut)
implementation(libs.bundles.mongock)
implementation(libs.discord4j)
implementation(libs.kmongo.coroutine)
implementation(libs.kotlinx.coroutines.core)
runtimeOnly(libs.jackson.module.kotlin)
runtimeOnly(libs.logback.classic)
runtimeOnly(libs.snakeyaml)
}
allOpen {
annotations("jakarta.inject.Singleton", "io.micronaut.aop.Around")
}
application {
mainClass.set("info.mapes.weekend.ApplicationKt")
}
tasks.build {
// we use buildLayers, not the distributions
distTar.enabled = false
distZip.enabled = false
}
kotlin {
jvmToolchain(21)
}