orangy
orangy
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xmaxerrs" << "1000"
}
}
}
E.g. like thispavlospt
04/03/2017, 8:21 AMpavlospt
04/03/2017, 8:21 AMpavlospt
04/03/2017, 8:21 AMpavlospt
04/03/2017, 8:21 AMorangy
pavlospt
04/03/2017, 8:22 AMpavlospt
04/03/2017, 8:22 AMpavlospt
04/03/2017, 8:22 AMorangy
pavlospt
04/03/2017, 8:23 AMorangy
pavlospt
04/03/2017, 8:25 AMalexey.tsvetkov
04/03/2017, 11:16 AMapply plugin: 'kotlin-kapt'
). In the issue compiler arguments were not copied from compileKotlin
task to compileKapt
task. The new implementation does not use javac, so I'm afraid it does not support -Xmaxerrs
(you can add a feature request at https://youtrack.jetbrains.com/issues/KT).
The old implementation (kotlin-kapt
plugin is not applied) is expected to work as it was in 1.0.x.
// cc @yanpavlospt
04/03/2017, 11:31 AMpavlospt
04/03/2017, 11:31 AMalexey.tsvetkov
04/03/2017, 12:03 PMkotlin-kapt
.
kapt1 is expected to support -Xmaxerrs
because it is run via javac.
kapt3 is not expected to support -Xmaxerrs
. I also not sure if it is needed, because AFAIK Kotlin compiler does not have a limit for a number of compile errors.
Am I right that your issue is not related to 1.0.x
->`1.1` switch (that would be a regression), but rather it is related to kapt1
->`kapt3` switch?pavlospt
04/03/2017, 12:05 PMpavlospt
04/03/2017, 12:06 PMpavlospt
04/03/2017, 12:07 PMalexey.tsvetkov
04/03/2017, 12:16 PMpavlospt
04/03/2017, 12:16 PMpavlospt
04/03/2017, 12:16 PMyan
04/03/2017, 12:59 PMpavlospt
04/03/2017, 1:00 PMpavlospt
04/03/2017, 1:00 PMpavlospt
04/03/2017, 3:01 PMyan
04/03/2017, 3:02 PMbuild.gradle
file is appreciated. I will try to reproduce this.pavlospt
04/03/2017, 3:03 PMbuild.gradle
files ?