forked from rharter/auto-value-gson
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
50 lines (45 loc) · 1.55 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.19"
}
}
allprojects { project ->
project.repositories {
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenCentral()
}
project.plugins.withId("net.ltgt.apt") {
try {
// automatically apply net.ltgt.apt-idea whenever net.ltgt.apt is used
project.apply plugin: "net.ltgt.apt-idea"
// disable addAptDependencies (if you delegate build actions to Gradle)
project.plugins.withType(JavaPlugin) {
project.afterEvaluate {
project.idea.module.apt.addAptDependencies = false
}
}
} catch (ignored) {
// ignore, in case an older version of net.ltgt.apt is being used
// that doesn't come with net.ltgt.apt-idea.
}
}
}
ext.deps = [
autotransient: 'io.sweers.autotransient:autotransient:1.0.0',
errorProneAnnotations: 'com.google.errorprone:error_prone_annotations:2.3.1',
jetbrainsAnnotations: 'org.jetbrains:annotations-java5:16.0.2',
gson: 'com.google.code.gson:gson:2.8.5'
]
task wrapper(type: Wrapper) {
gradleVersion = '4.10.2'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}