1// Copyright 2020 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// https://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15apply plugin: 'java' 16apply plugin: 'com.google.protobuf' 17 18repositories { 19 mavenCentral() 20} 21 22buildscript { 23 repositories { 24 mavenCentral() 25 } 26 dependencies { 27 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12' 28 } 29} 30 31dependencies { 32 compile group: 'com.google.truth.extensions', name: 'truth-java8-extension', version: '0.41' 33 testCompile group: 'com.google.guava', name: 'guava-testlib', version: '29.0-jre' 34 testImplementation 'junit:junit:4.13' 35 compile "com.google.code.findbugs:jsr305:3.0.0" 36 compile "com.google.protobuf:protobuf-java:3.8.0" 37 compile "com.google.guava:guava:19.0" 38} 39 40sourceSets { 41 main { 42 java { 43 srcDir 'src/main/java' 44 srcDir 'build/generated/source/proto/main/java' 45 } 46 } 47 test { 48 java { 49 srcDir 'src/main/javatest' 50 srcDir 'build/generated/source/proto/main/java' 51 } 52 } 53} 54 55test { 56 useJUnit() 57 58 maxHeapSize = '1G' 59} 60