Skip to content

Quarkus ArC complains about a split package when the package combines Java and Kotlin in quarkusDev #48493

@rodcheater

Description

@rodcheater

Describe the bug

I’m using quarkus.index-dependency to add the beans from a library dependency to the Jandex index. Some of the packages contain both Java and Kotlin code. Running the application in dev mode emits a build warning about split packages; for example:

2025-06-20 15:16:16,605 WARN  [io.qua.arc.dep.SplitPackageProcessor] (build-11) Detected a split package usage which is considered a bad practice and should be avoided. Following packages were detected in multiple archives: 
- "org.acme.lib" found in [org.acme.lib:lib:1.0.0-SNAPSHOT]

Expected behavior

Packages containing both Java and Kotlin code are not considered split packages.

Actual behavior

A warning about split packages is emitted.

How to Reproduce?

Reproducer: quarkus-reproducer.zip

Steps to reproduce

  1. ./gradlew quarkusDev

Expected result

No warning about split packages are emitted.

Actual result

A warning about split packages is emitted.

Output of uname -a or ver

Darwin Rods-MacBook-Pro.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:52:00 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6031 arm64

Output of java -version

openjdk version "21.0.7" 2025-04-15 OpenJDK Runtime Environment Homebrew (build 21.0.7) OpenJDK 64-Bit Server VM Homebrew (build 21.0.7, mixed mode, sharing)

Quarkus version or git rev

3.23.4

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 8.9

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/arcIssue related to ARC (dependency injection)area/kotlinkind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions