-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
97 lines (79 loc) · 2.31 KB
/
build.gradle.kts
File metadata and controls
97 lines (79 loc) · 2.31 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
import com.google.protobuf.gradle.*
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.25"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.25"
id("org.jetbrains.intellij") version "1.17.4"
id("com.google.protobuf") version "0.9.4"
}
group = "ai.codemaker.jetbrains"
version = "1.64.0-SNAPSHOT"
repositories {
mavenCentral()
}
configurations.all {
exclude(group = "org.slf4j")
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
implementation("io.grpc:grpc-protobuf:1.64.0")
implementation("io.grpc:grpc-services:1.64.0")
implementation("io.grpc:grpc-stub:1.64.0")
implementation("com.google.protobuf:protobuf-java-util:4.27.0")
implementation("com.google.protobuf:protobuf-java:4.27.0")
implementation("io.undertow:undertow-core:2.3.18.Final")
runtimeOnly("io.grpc:grpc-netty-shaded:1.64.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.12.0")
}
tasks {
test {
useJUnitPlatform()
}
}
// Configure Gradle IntelliJ Plugin
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
intellij {
version.set("2024.1.7")
type.set("IC") // Target IDE Platform
plugins.set(listOf(/* Plugin Dependencies */))
}
tasks {
// Set the JVM compatibility versions
withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
patchPluginXml {
sinceBuild.set("231")
untilBuild.set("243.*")
}
signPlugin {
certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
privateKey.set(System.getenv("PRIVATE_KEY"))
password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
}
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
}
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:4.27.0"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:1.64.0"
}
}
generateProtoTasks {
ofSourceSet("main").forEach {
it.plugins {
id("grpc") { }
}
}
}
}