Skip to content

Instantly share code, notes, and snippets.

@MFlisar
Created October 25, 2018 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MFlisar/eca8ae6c2e6a619913ab05d503a4368f to your computer and use it in GitHub Desktop.
Save MFlisar/eca8ae6c2e6a619913ab05d503a4368f to your computer and use it in GitHub Desktop.
Example Project build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: './versions.gradle'
buildscript {
repositories {
// ...
}
dependencies {
classpath 'com.android.tools.build:gradle:' + versions.gradlePlugin
// ...
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
// ...
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile.class) {
options.compilerArgs << "-Xmaxerrs" << "10000"
}
}
afterEvaluate {
if (project.plugins.hasPlugin("kotlin-kapt")) {
kapt {
javacOptions {
option("-Xmaxerrs", 10000)
}
}
}
}
}
@Edijae
Copy link

Edijae commented Oct 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment