-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
76 lines (64 loc) · 1.72 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
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
plugins {
id "java"
id "idea"
id "com.google.protobuf" version "0.9.0"
}
group 'com.clementjean.proto'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
protoVersion = "3.21.9"
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protoVersion"
}
}
dependencies {
implementation "com.google.protobuf:protobuf-java:$protoVersion"
implementation "com.google.protobuf:protobuf-java-util:$protoVersion"
}
task simple(type: JavaExec) {
group = "Execution"
description = "Run the simple example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'simple.SimpleMain'
}
task complex(type: JavaExec) {
group = "Execution"
description = "Run the complex example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'complex.ComplexMain'
}
task enums(type: JavaExec) {
group = "Execution"
description = "Run the enumerations example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'enumerations.EnumerationsMain'
}
task maps(type: JavaExec) {
group = "Execution"
description = "Run the maps example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'maps.MapsMain'
}
task oneofs(type: JavaExec) {
group = "Execution"
description = "Run the oneofs example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'oneofs.OneOfMain'
}
task io(type: JavaExec) {
group = "Execution"
description = "Run the enumerations example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'io.IoMain'
}
task json(type: JavaExec) {
group = "Execution"
description = "Run the json example"
classpath = sourceSets.main.runtimeClasspath
mainClass = 'json.JsonMain'
}