blob: e3194223e2ca6f774d75f68752a1e6eb5c79bd6f [file] [log] [blame]
Alexey Polyudov65a17502020-06-16 01:29:46 -07001// 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 Palczewskib77f3702019-01-17 15:46:19 -080015apply plugin: 'java'
16apply plugin: 'com.google.protobuf'
17
18repositories {
Alexey Polyudov9d82f672020-06-17 20:07:50 -070019 mavenCentral()
Michal Palczewskib77f3702019-01-17 15:46:19 -080020}
21
22buildscript {
23 repositories {
Alexey Polyudov9d82f672020-06-17 20:07:50 -070024 mavenCentral()
Michal Palczewskib77f3702019-01-17 15:46:19 -080025 }
26 dependencies {
Alexey Polyudov9d82f672020-06-17 20:07:50 -070027 classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.12'
Michal Palczewskib77f3702019-01-17 15:46:19 -080028 }
29}
30
31dependencies {
Alexey Polyudov9d82f672020-06-17 20:07:50 -070032 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 Palczewskib77f3702019-01-17 15:46:19 -080035 compile "com.google.code.findbugs:jsr305:3.0.0"
Alexey Polyudov9d82f672020-06-17 20:07:50 -070036 compile "com.google.protobuf:protobuf-java:3.8.0"
37 compile "com.google.guava:guava:19.0"
Michal Palczewskib77f3702019-01-17 15:46:19 -080038}
39
Alexey Polyudov9d82f672020-06-17 20:07:50 -070040sourceSets {
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 Palczewskib77f3702019-01-17 15:46:19 -080054
Alexey Polyudov9d82f672020-06-17 20:07:50 -070055test {
56 useJUnit()
57
58 maxHeapSize = '1G'
59}