Skip to content

Consider moving Kotlin examples to their own package #46172

Open
@snicoll

Description

@snicoll

With the move to Kotlin 2, the compiler forbids the use of a Java class and a Kotlin class with the same FQN. We've temporarily removed java source code from the kotlin compilation to work around this but we should probably offer a better option

// To avoid a redeclaration error with Kotlin compiler
tasks.named('compileKotlin', KotlinCompilationTask.class) {
javaSources.from = []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions