Nikky
01/14/2019, 3:45 AMthana
01/19/2019, 1:09 PMid 'org.jetbrains.kotlin.kapt' version '1.3.11'
to my plugins
block, but it seems the kapt
configuration is still missing. i always get an error Could not find method kapt() for arguments [com.github.dzuvic:jtsgen-processor:0.4.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Any idea?tddmonkey
01/25/2019, 2:40 PMkapt {
arguments {
arg("kapt.kotlin.generated", yourDir)
}
}
galex
01/31/2019, 10:41 AMNikky
01/31/2019, 10:59 AMkgl-opengl/build.gradle.kts
and buildSrc
Marc Knaup
02/03/2019, 11:05 AMimport io.ktor.http.Url
@JSON
typealias Url = Url
Then in the annotation processor I could access the aliased type and apply the annotation logic there.
Unfortunately that doesn't work with source-only annotations.jw
02/07/2019, 3:18 PMStéphane Nicoll
02/21/2019, 5:38 PMSam
02/24/2019, 9:57 PMMarc Knaup
03/01/2019, 8:57 PMMarc Knaup
03/03/2019, 10:06 PMcom.sun.tools.javac.main.JavaCompiler
(etc.) to javax.tools.JavaCompiler
(etc.)?
The former causes a lot of issues when using Kapt in-process on Java 9+.
…
oh, the Kotlin Compiler uses it too 😕rafaeltoledo
03/11/2019, 4:15 PMgildor
03/14/2019, 8:09 AMsam
03/20/2019, 10:51 PMkapt "io.arrow-kt:arrow-meta:$arrow_version"
to jvmMain for example, it complains it doesn't know what kapt is. I guess perhaps that's because the kapt plugin doesn't understand the mpp layout?juliocbcotta
03/25/2019, 12:05 PMjw
03/26/2019, 4:05 PMEugen Martynov
04/12/2019, 9:53 AMEugen Martynov
04/12/2019, 9:53 AMjw
04/21/2019, 4:59 PMtapchicoma
04/25/2019, 11:13 AMkapt
in kotlin 1.3.30
picks up wrong build cache entries?
In our case build cache is populated only on CI builds and kapt sometimes picks up results from master
branch that has new generated classes and fails local branch build with message "Can't find this new generated class type."ansman
04/25/2019, 5:37 PMExecution failed for task ':common:kaptDebugKotlin'.
> Could not resolve all files for configuration ':common:_classStructurekaptDebugKotlin'.
> Failed to transform file 'classes.jar' to match attributes {artifactType=class-structure, org.gradle.usage=java-runtime-jars}
> Execution failed for StructureArtifactTransform: /Users/nicklas/.gradle/caches/transforms-2/files-2.1/3b26390363c49f3a73506646bd39f9c5/jars/classes.jar.
> java.lang.IllegalArgumentException (no error message)
poohbar
05/01/2019, 1:21 PMtevjef
05/02/2019, 3:31 PM@Inject
may still have code generated for it.
- Moved classes with @Inject
may still have code generated in the old location.
This behavior is enabled by default in Kotlin 1.3.31. Is there something I need to configure to ensure the cache is properly invalidated?
This is causing some issues for my team, especially when we switch between branched.Marc Knaup
05/09/2019, 1:21 PMproject
kapt dependency?
old (Gradle 5.2.1, Kotlin 1.3.21)
kapt(project(":fluid-json-annotation-processor"))
runs kapt just fine using processor from different subproject
new (Gradle 5.4.1 with modules, Kotlin 1.3.31)
kapt(project(":fluid-json-annotation-processor", "compile"))
annotation processor is not used anymore and no error 😕thana
05/20/2019, 1:04 PMSnowmanX95
05/28/2019, 10:58 PMval metadataAnnotation = typeElement.getAnnotation(Metadata::class.java)
val header = KotlinClassHeader(
metadataAnnotation.kind,
metadataAnnotation.metadataVersion,
metadataAnnotation.bytecodeVersion,
metadataAnnotation.data1,
metadataAnnotation.data2,
metadataAnnotation.extraString,
metadataAnnotation.packageName,
metadataAnnotation.extraInt
)
val metadata = KotlinClassMetadata.read(header)
when (metadata) {
is KotlinClassMetadata.Class -> {
metadata.accept(object: KmClassVisitor() {
override fun visitProperty(
flags: Flags,
name: String,
getterFlags: Flags,
setterFlags: Flags
): KmPropertyVisitor? {
val nullable = Flag.Type.IS_NULLABLE(flags)
Logger.logW("* visiting property $name, flags: $flags, nullable: $nullable")
return super.visitProperty(flags, name, getterFlags, setterFlags)
}
})
}
else -> {
Logger.logW("bummer ... not a class: $metadata")
}
}
Anyone can see anything?laimiux
05/30/2019, 12:11 AMrdhruva
06/10/2019, 11:59 PMkaptTest
failing until I apply plugin 'kotlin-kapt'
— is that really necessary? am I doing it right? any idea where i can find documentation / release notes about breaking changes like these? 🙂Imran/Malic
06/14/2019, 10:27 AMMatej Drobnič
06/16/2019, 9:40 AMMatej Drobnič
06/16/2019, 9:40 AMSergey Chelombitko
06/16/2019, 2:22 PMMatej Drobnič
06/16/2019, 7:39 PMSergey Chelombitko
06/16/2019, 8:29 PMMatej Drobnič
06/17/2019, 5:07 AMSergey Chelombitko
06/17/2019, 8:38 AMMatej Drobnič
06/17/2019, 9:28 AM