Skip to content

Commit 970e17d

Browse files
author
Alexander Litus
committed
Update protobuf plugin dependency and fix build.
1 parent beece23 commit 970e17d

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

examples/build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
44
}
55
dependencies {
6-
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.2', changing: true
6+
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.3.1', changing: true
77
}
88
}
99

@@ -16,4 +16,16 @@ dependencies {
1616
compile project(path: ':server');
1717
}
1818

19+
protobuf {
20+
generateProtoTasks {
21+
all().each { final task ->
22+
task.plugins {
23+
task.generateDescriptorSet = true
24+
task.descriptorSetOptions.path = "${projectDir}/build/descriptors/${task.sourceSet.name}.desc"
25+
task.descriptorSetOptions.includeImports = true
26+
}
27+
}
28+
}
29+
}
30+
1931
apply plugin: 'org.spine3.tools.protobuf-plugin';

server/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
44
}
55
dependencies {
6-
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.2', changing: true
6+
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.3.1', changing: true
77
}
88
}
99

@@ -36,9 +36,10 @@ protobuf {
3636
generateProtoTasks {
3737
all().each { final task ->
3838
task.plugins {
39-
grpc {
40-
// option 'nano=true'
41-
}
39+
grpc {}
40+
task.generateDescriptorSet = true
41+
task.descriptorSetOptions.path = "${projectDir}/build/descriptors/${task.sourceSet.name}.desc"
42+
task.descriptorSetOptions.includeImports = true
4243
}
4344
}
4445
}

values/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
55
}
66
dependencies {
7-
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.2', changing: true
7+
classpath group: 'org.spine3.tools', name: 'protobuf-plugin', version: '1.3.1', changing: true
88
}
99
}
1010

@@ -36,9 +36,10 @@ protobuf {
3636
generateProtoTasks {
3737
all().each { final task ->
3838
task.plugins {
39-
grpc {
40-
// option 'nano=true'
41-
}
39+
grpc {}
40+
task.generateDescriptorSet = true
41+
task.descriptorSetOptions.path = "${projectDir}/build/descriptors/${task.sourceSet.name}.desc"
42+
task.descriptorSetOptions.includeImports = true
4243
}
4344
}
4445
}

0 commit comments

Comments
 (0)