-
I'm new to Quarkus, and just got my team to agree to let me move a small project into Quarkus instead of Spring (which we use for most of our other projects). The project was a small JAX-RS service written in Java. I got it moved over into Quarkus in a few hours. I later added the Kotlin extension and refactored some code into Kotlin. Java⟷Kotlin interoperability was working great. … Until today. I was adding some new functionality to the codebase, and at some point After lots of trial and error I finally tracked it down to an empty Kotlin file. The first file I'd added to Something about adding a file to that directory changed something in the build process. Previously, my
But the addition of a file to my Does this sound possible? I expect maybe someone didn't test something w/ both Java and Kotlin code in the same project. That should work, right? I hope so, because one of the nice things about Kotlin is being able to incrementally replace Java. 😊 I did verify that the sourceSets in Gradle are unchanged: // These are unchanged:
val showSourceSets = task("showSourceSets") {
doLast {
for (ss in sourceSets) {
println(ss.name)
println("Source dirs: ${ss.allJava.srcDirs}")
println("Output dirs: ${ss.output.classesDirs.files}")
println()
}
}
}
tasks.compileJava { dependsOn(showSourceSets) }
tasks.compileKotlin { dependsOn(showSourceSets) } … So I think it must be in some steps that the quarkus binary/extension performs after that. I'll try creating a minimal reproduction to create a bug from. But wanted to make sure I'm not going off on the wrong path first. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
/cc @evanchooly(kotlin), @geoand(kotlin) |
Beta Was this translation helpful? Give feedback.
-
It does sound like a bug |
Beta Was this translation helpful? Give feedback.
It does sound like a bug