Smallville7123
A.A.kt
build.gradle.kts
import A.A
kotlinc-jvm
package A import A.B.B fun main() { B().main() }
package A.B class B { fun main() { println("hello") } }
$ kotlinc-jvm -include-runtime -d main.jar A/A.kt -classpath ./ A/A.kt:2:12: error: unresolved reference: B import A.B.B ^ A/A.kt:6:9: error: unresolved reference: B B().main() ^
ilya.gorbunov
A
buildSrc
how it should be converted from gradle to a kotlinc-jvm compilable package
kotlinc
-d
A modern programming language that makes developers happier.