Kotlin: Kotlin-script (.kts) cannot use regular code?
<p>In my library's codebase, I have this package function: <code>fun sayHello() = println("Hello there!")</code><br>
The function is defined in the package <code>org.jire.pomade</code></p>

<p>I would like to use this function in a <em>.kts</em> file like so: <code>sayHello()</code></p>

<p>Unfortunately I can't seem to get code apart from Kotlin's own stdlib to work in Kotlin-script files.</p>

<p>The entirety of my script:</p>

<pre><code>import org.jire.pomade.sayHello

sayHello()
</code></pre>

<p>The result of running the script:</p>

<pre><code>pomade.kts:1:12: error: unresolved reference: jire
import org.jire.pomade.sayHello
           ^
pomade.kts:3:1: error: unresolved reference: sayHello
sayHello()
^
</code></pre>

<p>Anybody know why this is happening? Thanks.</p>