how do i convert this into a valid kotlin compilab...
# gradle
s
how do i convert this into a valid kotlin compilable package (
A.A.kt
so it can be imported in
build.gradle.kts
via
import A.A
so i can test if it actually compiled in gradle as to how it should be converted from gradle to a
kotlinc-jvm
compilable package) A/A.kt
Copy code
package A
import A.B.B

fun main() {
    B().main()
}
A/B/B.kt
Copy code
package A.B

class B {
    fun main() {
        println("hello")
    }
}
Copy code
$ 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()
        ^
i
If you want to use that
A
class in your
build.gradle.kts
, compile it as a part of
buildSrc
special project in your project.
s
i know
i
how it should be converted from gradle to a
kotlinc-jvm
compilable package
And if you're looking for the options gradle starts
kotlinc
with, you can pass
-d
option to gradle and then search for the compileKotlin taks execution in logs. But be prepared that the log will be huge.
s
never mind ill just ignore this for now and live with my build process eating up all my RAM