Issue details / Repro steps / Use case background:
I have 1 LibraryGlideModule in an AGP library module, that applies ksp and generates the index.
No other GlideModule annotated classes.
I imagine that having an empty list in that warning message is a bug.
Note: build\generated\ksp\debug\kotlin\com\bumptech\glide\annotation\ksp\GlideIndexer_GlideModule_com_example_MyGlideLibModule.kt is generated with contents:
package com.bumptech.glide.`annotation`.ksp
@Index(modules = [
"com.example.MyGlideLibModule",
])
public class GlideIndexer_GlideModule_com_example_MyGlideLibModule
which seems correct.
Stack trace / LogCat:
> Task :glide4-helpers:kspDebugKotlin
w: [ksp] LibraryGlideModules [] are included more than once, keeping only one!
Glide Version: 4.16.0, 5.0.0-rc01
Integration libraries: none
Device/Android Version: N/A
Issue details / Repro steps / Use case background: I have 1
LibraryGlideModule
in an AGP library module, that applies ksp and generates the index. No otherGlideModule
annotated classes.I imagine that having an empty list in that warning message is a bug.
Repro:
gradlew compileDebugSources
(includeskspDebugKotlin
)Note:
build\generated\ksp\debug\kotlin\com\bumptech\glide\annotation\ksp\GlideIndexer_GlideModule_com_example_MyGlideLibModule.kt
is generated with contents:which seems correct.
Stack trace / LogCat:
Related code: https://github.com/bumptech/glide/blob/b3fd2bc1b68b988202e50fac757a318274c16be8/annotation/ksp/src/main/kotlin/com/bumptech/glide/annotation/ksp/LibraryGlideModules.kt#L40-L54