-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
85 lines (73 loc) · 2.32 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import com.google.protobuf.gradle.id
plugins {
application
java
id("com.autonomousapps.dependency-analysis") version "1.32.0"
id("com.diffplug.spotless") version "6.25.0"
id("com.github.ben-manes.versions") version "0.51.0"
id("com.google.protobuf") version "0.9.4"
id("se.ascp.gradle.gradle-versions-filter") version "0.1.16"
}
repositories {
mavenCentral()
}
dependencies {
implementation(platform("io.github.ngyewch.twirp:twirp-bom:0.2.0"))
implementation("io.github.ngyewch.twirp:twirp-helidon-common")
implementation("io.github.ngyewch.twirp:twirp-helidon-client")
implementation("io.github.ngyewch.twirp:twirp-helidon-server")
implementation("com.google.protobuf:protobuf-java")
implementation("info.picocli:picocli:4.7.6")
implementation("io.helidon.common:helidon-common-http")
implementation("io.helidon.common:helidon-common-reactive")
implementation("io.helidon.webserver:helidon-webserver")
testImplementation(platform("org.junit:junit-bom:5.10.3"))
testImplementation("io.github.ngyewch.twirp:twirp-common")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
protobuf {
plugins {
id("twirp-java") {
artifact = "io.github.ngyewch.twirp:protoc-gen-twirp-java:0.2.0"
}
}
protoc {
artifact = "com.google.protobuf:protoc:4.27.2"
}
generateProtoTasks {
ofSourceSet("main").forEach {
it.plugins {
id("twirp-java") {
option("gen-helidon-client=true")
option("gen-helidon-server=true")
}
}
}
}
}
application {
mainClass = "Main"
}
tasks {
named<Test>("test") {
useJUnitPlatform()
testLogging {
events("PASSED", "SKIPPED", "FAILED", "STANDARD_OUT", "STANDARD_ERROR")
}
}
}
versionsFilter {
gradleReleaseChannel.set("current")
checkConstraints.set(true)
outPutFormatter.set("json")
}
spotless {
java {
googleJavaFormat("1.22.0").reflowLongStrings().skipJavadocFormatting()
formatAnnotations()
targetExclude("build/**")
}
}