Unexpected behavior when excluding files from artifacts
When trying to write a library (more on the why I need to do this at the bottom of the post), I got blocked by an unexpected behavior in the Kotlin compiler. In Java this works, and I can’t figure out why it shouldn’t work in Kotlin.
Minimal examples
First the Java version, which compiles and runs fine:
//
* foo-utils Maven artifact *
// The Foo class is excluded from the artifact (using maven-jar-plugin)
// Foo.java
class Foo {}
// FooUtils.java
class FooUtils {
public static void...