-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
43 lines (37 loc) · 1.03 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
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
plugins {
id "java"
id "application"
id "org.springframework.boot"
id "com.google.protobuf"
id "com.bmuschko.docker-remote-api"
}
dependencies {
protobuf project(':service-idl')
implementation "com.netifi:netifi-spring-boot-starter"
}
mainClassName = 'example.service.ExampleServiceApplication'
// Packaging
task buildImage(type: DockerBuildImage, dependsOn: build) {
buildArgs = ['JAR_FILE': "${bootJar.archiveName}"]
dockerFile = file("${projectDir}/Dockerfile")
inputDir = file("${projectDir}")
tags = ["netifi-broadcast-example/${projectDir.name}", "netifi-broadcast-example/${projectDir.name}:${version}"]
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc'
}
plugins {
rsocketRpc {
artifact = 'io.rsocket.rpc:rsocket-rpc-protobuf'
}
}
generateProtoTasks {
all().each { task ->
task.plugins {
rsocketRpc {}
}
}
}
}