Alexey Polyudov | 65a1750 | 2020-06-16 01:29:46 -0700 | [diff] [blame] | 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 | |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 15 | apply plugin: 'java' |
| 16 | apply plugin: 'com.google.protobuf' |
| 17 | |
| 18 | repositories { |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 19 | mavenCentral() |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | buildscript { |
| 23 | repositories { |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 24 | mavenCentral() |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 25 | } |
| 26 | dependencies { |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 27 | classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12' |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 28 | } |
| 29 | } |
| 30 | |
| 31 | dependencies { |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 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' |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 35 | compile "com.google.code.findbugs:jsr305:3.0.0" |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 36 | compile "com.google.protobuf:protobuf-java:3.8.0" |
| 37 | compile "com.google.guava:guava:19.0" |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 38 | } |
| 39 | |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 40 | sourceSets { |
| 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 | } |
Michal Palczewski | b77f370 | 2019-01-17 15:46:19 -0800 | [diff] [blame] | 54 | |
Alexey Polyudov | 9d82f67 | 2020-06-17 20:07:50 -0700 | [diff] [blame] | 55 | test { |
| 56 | useJUnit() |
| 57 | |
| 58 | maxHeapSize = '1G' |
| 59 | } |