Is there any known issue with import statement res...
# gradle
l
Is there any known issue with import statement resolution for Gradle Kotlin DSL? I'm trying to split a big script into multiple scripts, but Gradle 4.8.1 keeps throwing an error.
build.gradle.kts
Copy code
plugins {
    application
    id("com.github.johnrengelman.shadow") version "2.0.4"
}

apply {
    from("jar.gradle.kts")
}
jar.gradle.kts
Copy code
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

tasks {
    withType<ShadowJar> {}
}
Copy code
> Configure project :
e: /home/lucas/plugin/jar.gradle.kts:1:12: Unresolved reference: github
e: /home/lucas/plugin/jar.gradle.kts:8:14: Unresolved reference: ShadowJar

FAILURE: Build failed with an exception.

* Where:
Script '/home/lucas/plugin/jar.gradle.kts' line: 1

* What went wrong:
Script compilation errors:

  Line 1: import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
                     ^ Unresolved reference: github

  Line 8:     withType<ShadowJar> {
                       ^ Unresolved reference: ShadowJar

2 errors