grandstaish
06/16/2020, 7:58 PMgenerated/source/kapt
folder, even though they are being generated? (They’re in the AAR and final APK of my app)rdhruva
06/29/2020, 11:46 PMiseki
07/31/2020, 3:42 PMkapt{ annotationProcessor("foo.bar.Aprocessor") }
. The gradle show me that Can't find annotation processor.
Before that, I use kapt/compileOnly("com.google.auto.service:auto-service:1.0-rc7")
in the processor build file.
And use kapt/compileOnly(project("codegen", "default"))
in the parent project (which use the annotation in fact.)
Thank you for your help.iseki
08/01/2020, 9:54 AMArpan Sarkar
09/02/2020, 2:29 PMrbares
11/12/2020, 12:48 PMEugen Martynov
11/30/2020, 10:15 AMinterface ListOptionsInterface : Serializable {
val caption: Int
}
@Parcelize
data class PreferenceOptionModel<T : ListOptionsInterface>(
var options: T,
var isSelected: Boolean = false
) : Parcelable
I can not also find details about this change in CHANGELOGEugen Martynov
11/30/2020, 3:21 PMbod
12/24/2020, 10:32 AM./gradlew clean :app:assembleDebug -Pkapt.verbose=true --no-build-cache
I don't see the Incremental KAPT support is disabled
log (I'm certain we used to have it some time ago). But I do see a bunch of Incremental annotation processing (apt mode): false
which worries me. Does this mean it's disabled? (We do have kapt.incremental.apt=true
in our build.properties
).
💡 Ideas?
[1] https://medium.com/@daniel_novak/making-incremental-kapt-work-speed-up-your-kotlin-projects-539db1a771cfTimo Gruen
01/22/2021, 3:02 PMFAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':connector:example:connector-confluence-cloud:kaptKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
The processor has been written by myself, so I can change something on that end, but I’m not finding any solution for that.
I keep logging using processingEnv.error()
but can’t find any results in the actual log. Is there any way to improve the logging here?
Thanks in advance!Michal Klimczak
02/02/2021, 9:56 PMkapt
and kaptKotlin
directories in generated/source
? When should I use one or the other? Can't really find anything about it. Dagger and moshi seem to generate to kapt
.
From my tests it seems that I need to manually tell gradle where to look for these files for either of these (via kotlin.srcDir("${buildDir.absolutePath}/generated/source/kapt/")
or kotlin.srcDir("${buildDir.absolutePath}/generated/source/kaptKotlin/")
. Yet it doesn't seem to be necessary for dagger etc.
If that makes any difference, I'm asking about kotlin multiplatform module.Luca Piccinelli
03/22/2021, 2:12 PMLuca Piccinelli
03/24/2021, 9:06 AM@TestAnnotation
, a Hello
class annotated, and a TestProcessor
that generates a new class named "<AnnotatedClassName>_Banana" with a method eat
, in this case Hello_Banana
.
Everything is in place correctly, and from maven it works just fine. How should I let Intellij use the annotation processor as well? I tried like in the second screendshot but with no luck...
Thank you in advance you for your helpTimo Drick
04/11/2021, 12:18 AMTwoClocks
04/16/2021, 7:18 PMkapt.incremental.apt=true
in the props file but I get this message when gradle runs : Incremental annotation processing (apt mode): false
I don't get any errors about processors that are not incremental.
Any idea of where to look? I'm using kotlin & kapt version 1.4.32iseki
04/25/2021, 10:17 AMStephan Schroeder
04/26/2021, 11:36 AMMichael Böiers
05/05/2021, 11:24 AMSha Sha Chu
05/11/2021, 10:24 PMeduardog3000
05/18/2021, 8:19 PMhho
05/27/2021, 6:36 PMtools.jar
(which is correct, because I'm not using Java 8 anymore) – what doesn't work then? Any way to suppress that warning (I'm using Maven)?dsvoronin
09/02/2021, 9:33 PMkapt.classloaders.cache.size
option, and have really nice results:
KaptWithoutKotlincTask:
Found 243 tasks executed in 243 projects totaling 6m 59.605s (without cache)
Found 243 tasks executed in 243 projects totaling 2m 3.507s (with cache)
my question: is 250 a sane number for cache.size option?
it says
# use the same value as the number of modules that use kapt
but something tells me that it might be an overkill, or it's ok?Zac Sweers
09/08/2021, 12:52 AMmagnumrocha
09/17/2021, 3:50 PMjava.lang.IllegalAccessError: class org.jetbrains.kotlin.kapt3.base.KaptContext (in unnamed module @0x50148e28) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x50148e28
I am having this after update gradle to version 7.2…Slackbot
11/29/2021, 8:13 AMRobert
01/15/2022, 8:21 AMimplementation fileTree(dir: "lib", include: "*.jar")
Execution failed for task ':kaptKotlin'.
> Could not resolve all files for configuration ':_classStructurekaptKotlin'.
> Failed to transfor Some.jar to match attributes {artifactType=class-structure, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for StructureTransformAction: /lib/some.jar.
> java.lang.IllegalArgumentException (no error message)
Is this a gradle or kapt issue?ankushg
02/08/2022, 7:59 PMZac Sweers
03/18/2022, 6:24 AMRohan Maity
06/08/2022, 7:54 AMmartmists
07/13/2022, 11:34 AMtasks {
val kaptKotlin by named<Kapt>("kaptKotlin") {
}
val processResources by named<ProcessResources>("processResources") {
from(kaptKotlin.outputs)
}
}
But that gives Task with name 'kaptKotlin' not found in project ':myproject'
, and I think this would also include any classes generated to resources