-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (47 loc) · 1.46 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
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.micronaut.application") version "3.7.10"
}
version = "0.1"
group = "mastocli"
repositories {
mavenCentral()
}
dependencies {
annotationProcessor("info.picocli:picocli-codegen")
annotationProcessor("io.micronaut:micronaut-http-validation")
annotationProcessor("io.micronaut.serde:micronaut-serde-processor")
implementation("info.picocli:picocli")
implementation("io.micronaut:micronaut-http-client")
implementation("io.micronaut.picocli:micronaut-picocli")
implementation("io.micronaut.serde:micronaut-serde-jackson")
implementation("jakarta.annotation:jakarta.annotation-api")
implementation("org.jsoup:jsoup:1.15.4") {
because("cleanup HTML from toots")
}
compileOnly("com.fasterxml.jackson.core:jackson-databind")
runtimeOnly("ch.qos.logback:logback-classic")
}
tasks.named<JavaExec>("run") {
args("-u", "melix")
}
application {
mainClass.set("mastocli.MastocliCommand")
}
java {
sourceCompatibility = JavaVersion.toVersion("17")
targetCompatibility = JavaVersion.toVersion("17")
}
micronaut {
testRuntime("junit5")
processing {
incremental(true)
annotations("mastocli.*")
}
}
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute(module("io.micronaut:micronaut-jackson-databind"))
.using(module("io.micronaut.serde:micronaut-serde-jackson:1.5.3"))
}
}