blob: 12c0d329c22776692e828cd0b5f499d948fc0965 [file] [log] [blame]
Alex Klyubin381b7e62016-09-01 19:04:38 -07001// Generic Gradle project
2
Alex Klyubinc2f7b712016-08-29 14:49:40 -07003apply plugin: 'java'
Songchun Fand4044512020-01-16 16:06:51 -08004apply plugin: 'com.google.protobuf'
Alex Klyubin44132f62016-11-28 10:55:19 -08005
6sourceCompatibility = '1.8'
7
8repositories {
9 jcenter()
10}
11
Songchun Fand4044512020-01-16 16:06:51 -080012buildscript {
13 repositories {
14 jcenter()
15 }
16 dependencies {
17 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.11'
18 }
Alex Klyubin44132f62016-11-28 10:55:19 -080019}
Songchun Fand4044512020-01-16 16:06:51 -080020
21dependencies {
22 implementation 'com.google.protobuf:protobuf-javalite:3.8.0'
Khaled Abdelmohsencb9fe1e2020-02-20 17:32:28 +000023 testImplementation 'junit:junit:4.13'
Songchun Fand4044512020-01-16 16:06:51 -080024}
25
26protobuf {
27 protoc {
28 artifact = 'com.google.protobuf:protoc:3.8.0'
29 }
30 generateProtoTasks {
31 all().each { task ->
32 task.builtins {
33 java {
34 option "lite"
35 }
36 }
37 }
38 }
39}