Skip to content

Commit c895019

Browse files
author
Chris Bellew
committed
Ignore lint errors for lambdas.
1 parent 967b8e8 commit c895019

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
buildscript {
33
repositories {
44
mavenCentral()
5+
jcenter()
56
}
67

78
dependencies {
89
classpath 'com.android.tools.build:gradle:+'
910
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
11+
classpath 'me.tatarka.retrolambda.projectlombok:lombok.ast:0.2.3.a2'
1012
}
13+
14+
// Exclude the version that the android plugin depends on.
15+
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
1116
}
1217

1318
plugins {

mobile/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ buildscript {
66
dependencies {
77
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
88
}
9+
10+
// Exclude the version that the android plugin depends on.
11+
configurations.classpath.exclude group: 'com.android.tools.external.lombok'
912
}
1013

1114
repositories {
@@ -111,6 +114,9 @@ android {
111114
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
112115
}
113116
}
117+
task printBuildScriptClasspath << {
118+
println project.buildscript.configurations.classpath.asPath
119+
}
114120
}
115121

116122
dependencies {

0 commit comments

Comments
 (0)