1// Generic Gradle project 2 3apply plugin: 'java' 4apply plugin: 'com.google.protobuf' 5 6sourceCompatibility = '1.8' 7 8repositories { 9 jcenter() 10} 11 12buildscript { 13 repositories { 14 jcenter() 15 } 16 dependencies { 17 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.11' 18 } 19} 20 21dependencies { 22 implementation 'com.google.protobuf:protobuf-javalite:3.8.0' 23 testImplementation 'junit:junit:4.13' 24 testImplementation 'org.bouncycastle:bcprov-jdk15on:1.68' 25 testImplementation 'org.conscrypt:conscrypt-openjdk-uber:2.5.1' 26} 27 28protobuf { 29 protoc { 30 artifact = 'com.google.protobuf:protoc:3.8.0' 31 } 32 generateProtoTasks { 33 all().each { task -> 34 task.builtins { 35 java { 36 option "lite" 37 } 38 } 39 } 40 } 41}