• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// NOTE: The only changes that belong in this file are the definitions
2// of tool versions (gradle plugin, compile SDK, build tools), so that
3// Volley can be built via gradle as a standalone project.
4//
5// Any other changes to the build config belong in rules.gradle, which
6// is used by projects that depend on Volley but define their own
7// tools versions across all dependencies to ensure a consistent build.
8//
9// Most users should just add this line to settings.gradle:
10//     include(":volley")
11//
12// If you have a more complicated Gradle setup you can choose to use
13// this instead:
14//     include(":volley")
15//     project(':volley').buildFileName = 'rules.gradle'
16
17buildscript {
18    repositories {
19        jcenter()
20        google()
21    }
22    dependencies {
23        classpath 'com.android.tools.build:gradle:3.2.1'
24    }
25}
26
27plugins {
28    id "com.github.sherter.google-java-format" version "0.6"
29    id "net.ltgt.errorprone" version "0.0.13"
30}
31
32googleJavaFormat {
33    toolVersion = '1.5'
34    options style: 'AOSP'
35}
36
37apply plugin: 'com.android.library'
38
39repositories {
40    jcenter()
41    google()
42}
43
44group = 'com.android.volley'
45version = '1.2.0-SNAPSHOT'
46
47android {
48    compileSdkVersion 28
49    buildToolsVersion = '28.0.3'
50
51    defaultConfig {
52        // Keep in sync with src/main/AndroidManifest.xml
53        minSdkVersion 8
54    }
55}
56
57tasks.withType(JavaCompile) {
58    options.compilerArgs << "-Xep:ParameterComment:ERROR"
59}
60
61apply from: 'rules.gradle'
62apply from: 'bintray.gradle'
63